青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品

為生存而奔跑

   :: 首頁 :: 聯系 :: 聚合  :: 管理
  271 Posts :: 0 Stories :: 58 Comments :: 0 Trackbacks

留言簿(5)

我參與的團隊

搜索

  •  

積分與排名

  • 積分 - 331734
  • 排名 - 74

最新評論

閱讀排行榜

評論排行榜

轉自http://www.snee.com/bobdc.blog/2007/11/querying-dbpedia.html

DBpedia, as its home page tells us, "is a community effort to extract structured information from Wikipedia and to make this information available on the Web." That's "available" in the sense of available as data to programs that read and process it, because the data was already available to eyeballs on Wikipedia. This availability is a big deal to the semantic web community because it's a huge amount of valuable (and often, fun) information that the public can now query with SPARQL, the W3C standard query language that is one of the pillars of the semantic web.


Although I'd dabbled in SPARQL and seen several sample SPARQL queries against DBpedia in action, I had a little trouble working out how to create my own SPARQL queries against DBpedia data. I finally managed to do it, so I thought I'd describe here how I successfully implemented my first use case. Instead of a "Hello World" example, I went with more of an "I will not publish the principal's credit report" example: a list of things written by Bart on the school blackboard at the beginning of a collection of Simpsons episodes.

For an example of the structured information available in Wikipedia, see the Infobox data on the right of the Wikipedia page for the 2001 Simpsons episode Tennis the Menace and the Categories links at the bottom of the same page. The DBpedia page for that episode shows the Infobox information with the property names that you would use in SPARQL queries; semantic web fans will recognize some of the property and namespace prefixes. I'm going to repeat this because it took a while for it to sink into my own head, and once it did it made everything much easier: most Wikipedia pages with fielded information have corresponding DBpedia pages, and those corresponding pages are where you find the names of the "fields" that you'll use in your queries.

Once I knew the following three things, I could create the SPARQL query:

  • The Simpson episode Wikipedia pages are the identified "things" that we would consider as the subjects of our RDF triples (or, put another way, as the objects in the {object, attribute name, attribute value} triplets that contain our data).

  • The bottom of the Wikipedia page for the "Tennis the Menace" episode tells us that it is a member of the Wikipedia category "The Simpsons episodes, season 12".

  • The episode's DBpedia page tells us that p:blackboard is the property name for the Wikipedia infobox "Chalkboard" field.

Knowing this, I created the following SPARQL query to list everything that Bart wrote on the blackboard in season 12:

SELECT ?episode,?chalkboard_gag WHERE {
  ?episode skos:subject 
    <http://dbpedia.org/resource/Category:The_Simpsons_episodes%2C_season_12>.
  ?episode dbpedia2:blackboard ?chalkboard_gag
}

You can paste this into the form in DBpedia's SNORQL interface (which adds the namespace declarations that I've omitted above) to run it, or you can just click here to execute the URL version of the query as created by the SNORQL interface.

Of course this is just scratching the surface. More extensive use of SPARQL features (see Leigh Dodds' excellent tutorial on XML.com) and more study of the available classes ofDBpedia data will turn up huge new possibilities. It's like having a new toy to play with, and I know I'm going to have fun.

For my next step, I was hoping to list what Bart wrote in all the episodes, not just season 12. The bottom of the Wikipedia page for season 12 tells us that that this category is part of the category The Simpsons episodes, but I haven't found a variation on the query above that makes the connection. I know that getting a handle on this category/subcategory distinction is going to open up what I can do with SPARQL and DBpedia in a lot more ways than just listing everything that Bart ever wrote on that blackboard.

posted on 2010-01-06 20:55 baby-fly 閱讀(746) 評論(0)  編輯 收藏 引用 所屬分類: Information Retrival / Data Mining
青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品
  • <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>
            久久一二三区| 欧美xxxx在线观看| 韩国av一区二区三区| 国产精品一区久久久| 国产精品久久久久久久久| 国产精品99免费看 | 在线精品高清中文字幕| 永久免费毛片在线播放不卡| 亚洲国产另类精品专区| 一本色道久久综合亚洲91| 亚洲一区二区三区四区视频| 欧美一区二区大片| 欧美大片一区| 亚洲天堂av综合网| 久久男女视频| 欧美日韩中文精品| 狠狠色丁香婷婷综合| 亚洲美女黄色| 久久成人精品| 亚洲免费av网站| 久久九九热re6这里有精品 | 国产日韩三区| 亚洲精品久久久久久一区二区 | 国产一区二区三区四区hd| 亚洲激情女人| 久久九九国产精品| 亚洲精品三级| 麻豆国产精品va在线观看不卡| 欧美日韩国产天堂| 亚洲国产综合在线| 久久久精品国产免大香伊| 亚洲精品五月天| 久久久综合网| 国产视频综合在线| 亚洲免费在线视频| 亚洲精品久久嫩草网站秘色 | 亚洲国产专区| 久久久精品性| 国产精品影视天天线| 亚洲最新视频在线| 欧美激情精品久久久| 欧美在线观看视频一区二区| 国产精品成人午夜| 亚洲第一天堂无码专区| 久久国产精品久久久| 亚洲精品久久久久久下一站| 久久久久免费视频| 国产一区二区三区免费观看| 亚洲一卡二卡三卡四卡五卡| 欧美激情精品久久久久久变态| 欧美一区二区观看视频| 国产精品成人播放| 亚洲无限av看| aa级大片欧美| 欧美色123| 亚洲永久免费视频| 在线视频欧美一区| 欧美午夜精品理论片a级按摩 | 国产午夜精品福利| 午夜电影亚洲| 午夜国产精品视频| 国产一区二区高清不卡| 久久精品女人| 久久亚洲精品中文字幕冲田杏梨| 国内精品久久久久久 | 国产精品久在线观看| 中文在线一区| 亚洲一区二区三区乱码aⅴ| 国产精品播放| 欧美中文字幕不卡| 久久精品国产亚洲一区二区| 伊人久久婷婷色综合98网| 欧美大胆a视频| 欧美精品一区三区在线观看| 亚洲天堂av电影| 亚洲无限av看| 红杏aⅴ成人免费视频| 免费欧美高清视频| 欧美日韩蜜桃| 久久久久久**毛片大全| 老牛嫩草一区二区三区日本| 亚洲人被黑人高潮完整版| 亚洲伦理精品| 国产一区二区三区高清播放| 免费成人美女女| 欧美日韩精品一区| 久久久噜噜噜久久中文字幕色伊伊| 欧美制服丝袜| 在线一区二区视频| 久久精品亚洲一区二区| 亚洲区一区二区三区| 亚洲一区二区三区久久 | 亚洲三级影院| 亚洲一区二区三区国产| 亚洲承认在线| 亚洲砖区区免费| 亚洲激情自拍| 亚洲欧美日韩直播| 一区二区三区精品视频在线观看 | 亚洲毛片av| 国内精品久久久久久久影视蜜臀 | 欧美中文字幕在线观看| 麻豆成人小视频| 欧美在线观看www| 欧美精品啪啪| 欧美+日本+国产+在线a∨观看| 国产精品av免费在线观看| 欧美va亚洲va国产综合| 国产精品视频久久一区| 亚洲第一福利视频| 好吊一区二区三区| 亚洲综合精品四区| 这里只有精品视频| 欧美va亚洲va日韩∨a综合色| 欧美影院在线播放| 国产精品jizz在线观看美国| 欧美激情一区二区三区在线视频观看| 国产精品一区二区黑丝| 99精品国产高清一区二区| 亚洲国产一区二区a毛片| 欧美中文字幕在线| 久久精品电影| 国产精品一区二区三区成人| 亚洲剧情一区二区| 99re热这里只有精品视频 | 亚洲欧美另类国产| 亚洲视频图片小说| 欧美人与禽猛交乱配视频| 欧美风情在线观看| 亚洲国内精品| 欧美激情bt| 亚洲精品美女在线观看播放| 亚洲激情精品| 欧美国产精品v| 亚洲高清视频的网址| 亚洲国产精品女人久久久| 久久久蜜桃一区二区人| 久久精品免费电影| 国模一区二区三区| 久久人人爽爽爽人久久久| 麻豆成人在线播放| 亚洲国产清纯| 欧美精品一区二区三区蜜桃| 蜜臀va亚洲va欧美va天堂| 极品尤物久久久av免费看| 久久久久久久999| 欧美激情91| 亚洲视频一区在线观看| 国产精品美女xx| 久久av在线看| 亚洲国内自拍| 亚洲欧美日韩精品久久奇米色影视| 国产精品久久一级| 久久精品一区二区| 亚洲福利视频免费观看| 艳女tv在线观看国产一区| 国产精品色婷婷| 久久婷婷久久| 欧美日韩久久精品| 亚洲欧美国产视频| 亚洲一区在线免费观看| 国产精品欧美日韩久久| 亚欧成人在线| 亚洲国产精品成人精品| 99热免费精品| 国产视频欧美视频| 美女视频黄 久久| 中文网丁香综合网| 久久综合五月| 亚洲手机成人高清视频| 国产综合香蕉五月婷在线| 美腿丝袜亚洲色图| 亚洲图片你懂的| 久久综合久久综合久久| 日韩一区二区电影网| 国产日韩欧美精品| 欧美精品福利视频| 久久精品二区| 一区二区三区国产盗摄| 麻豆国产精品一区二区三区| 一本久道久久综合中文字幕| 国产视频自拍一区| 欧美视频官网| 欧美成人国产一区二区| 午夜精品99久久免费| 日韩亚洲精品视频| 欧美国产日韩在线| 久久精品女人| 亚洲永久视频| 亚洲毛片av| 韩国一区电影| 国产精品私房写真福利视频| 欧美国产日韩一区二区| 久久精品国产v日韩v亚洲| 在线视频亚洲| 99re66热这里只有精品4| 亚洲电影免费在线观看| 久久色中文字幕| 欧美一级夜夜爽| 亚洲综合二区|