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

為生存而奔跑

   :: 首頁 :: 聯系 :: 聚合  :: 管理
  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>
            亚洲娇小video精品| 欧美一区二区三区视频免费播放| 久久久噜噜噜久久| 久久噜噜噜精品国产亚洲综合 | 亚洲二区在线视频| 在线观看不卡| 99re6这里只有精品| 亚洲少妇中出一区| 欧美在线一二三四区| 老色批av在线精品| 亚洲精品人人| 香蕉久久久久久久av网站| 久久超碰97中文字幕| 免费影视亚洲| 国产精品黄色| 亚洲福利视频三区| 亚洲天堂av综合网| 久久久久久久网| 亚洲欧洲一区二区三区| 亚洲精品免费网站| 欧美一区二区三区在线看| 欧美freesex8一10精品| 国产精品日韩欧美一区二区三区| 激情亚洲网站| 亚洲自拍三区| 亚洲福利专区| 午夜欧美大片免费观看| 欧美成人按摩| 黑人巨大精品欧美黑白配亚洲| 亚洲精品国产精品国自产观看浪潮| 亚洲图片在线| 亚洲高清在线观看一区| 亚欧美中日韩视频| 欧美视频中文字幕在线| 最新中文字幕亚洲| 久久精品国亚洲| 一区二区三区**美女毛片 | 亚洲欧美成人综合| 老巨人导航500精品| 国产精品资源| 亚洲一区二区三区视频播放| 免费欧美在线视频| 久久成人羞羞网站| 国产精品外国| 一区二区欧美在线| 亚洲国产精品久久久| 久久久综合精品| 国产性猛交xxxx免费看久久| 亚洲一区视频| 9i看片成人免费高清| 欧美成人精品1314www| 在线播放中文一区| 久色成人在线| 久久久久久久欧美精品| 国产三级欧美三级| 午夜在线a亚洲v天堂网2018| 99xxxx成人网| 亚洲日韩欧美一区二区在线| 久久久久久亚洲精品不卡4k岛国| av成人手机在线| 欧美日韩另类综合| 亚洲一区在线看| 亚洲一区二区免费| 国产精品专区一| 久久婷婷国产麻豆91天堂| 久久国产88| 一区二区三区在线不卡| 麻豆成人在线观看| 欧美a级一区| 洋洋av久久久久久久一区| 亚洲黄色影院| 欧美日韩一区二区三区视频| 亚洲一区二区免费在线| 亚洲欧美变态国产另类| 国内精品伊人久久久久av影院| 老色鬼久久亚洲一区二区| 另类春色校园亚洲| 一本色道久久综合亚洲91 | 久久蜜桃精品| 最新中文字幕亚洲| 一区二区三区欧美在线| 国产农村妇女精品一二区| 美女主播精品视频一二三四| 亚洲日本在线视频观看| 一本色道久久综合亚洲精品不卡| 国产精品日产欧美久久久久| 久久久久国色av免费观看性色| 噜噜噜久久亚洲精品国产品小说| 99视频一区| 欧美一区二区三区婷婷月色| 91久久精品网| 午夜精品福利在线观看| 亚洲黄网站在线观看| 国产精品99久久久久久久vr | 欧美精品三级日韩久久| 午夜欧美大片免费观看| 久久夜色精品国产欧美乱极品| 一区二区免费在线视频| 欧美专区在线| 亚洲性xxxx| 久久中文久久字幕| 亚洲欧美日韩中文视频| 老鸭窝91久久精品色噜噜导演| 亚洲综合好骚| 欧美国产三区| 久久精品一区| 欧美日韩国产大片| 美女视频黄 久久| 国产精品三级视频| 亚洲人成人一区二区三区| 国产一区二区久久久| 亚洲精选成人| 亚洲国产一区二区三区在线播 | 免费成人在线观看视频| 亚洲视频观看| 美女视频一区免费观看| 欧美制服丝袜| 国产精品久久久久久久久免费桃花 | 亚洲国产mv| 国模精品娜娜一二三区| 亚洲激情成人网| 久久精品国产亚洲a| 亚洲综合清纯丝袜自拍| 欧美日韩成人综合在线一区二区| 欧美1区3d| 在线精品视频一区二区| 欧美一区二区精品在线| 欧美一区二区在线| 国产精品美女www爽爽爽| 亚洲精品一区在线观看| 99re66热这里只有精品3直播| 久久免费少妇高潮久久精品99| 久久成人一区| 一区二区三区日韩| 亚洲精选在线观看| 欧美高清视频一区二区| 亚洲福利视频免费观看| 亚洲精品欧洲| 欧美乱人伦中文字幕在线| 亚洲国产精品久久久久婷婷884 | 国产精品99一区| 9l国产精品久久久久麻豆| 夜夜夜精品看看| 欧美久久一级| 中文亚洲字幕| 久久久91精品国产| 伊人精品在线| 欧美fxxxxxx另类| 亚洲精选久久| 亚洲欧美变态国产另类| 国产精品视频xxxx| 欧美在线观看视频在线| 男人的天堂成人在线| 亚洲美女网站| 国产精品视频第一区| 久久精品在线视频| 亚洲国产精品专区久久 | 久久亚洲精品视频| 亚洲高清不卡av| 亚洲免费在线精品一区| 久久福利精品| 亚洲精品影视| 国产精品区一区二区三| 欧美一区二区三区在| 欧美激情亚洲激情| 亚洲一区亚洲| 亚洲国产精品高清久久久| 欧美日韩国产首页| 欧美一区二区啪啪| 亚洲巨乳在线| 久久久久国内| 亚洲午夜在线| 久久天堂精品| 国产精品欧美久久| 久久久久在线观看| 日韩亚洲精品视频| 久久伊伊香蕉| 亚洲一级免费视频| 在线播放豆国产99亚洲| 欧美午夜无遮挡| 久久综合给合| 亚洲自拍啪啪| 亚洲毛片在线免费观看| 美女黄网久久| 欧美专区日韩视频| 在线亚洲一区| 亚洲欧洲精品一区二区三区| 国产女主播一区二区三区| 欧美精品国产一区二区| 久久久999精品| 亚洲女优在线| 一区二区三区精品视频| 亚洲国产精品一区二区第一页| 久久久噜噜噜久久| 欧美在线播放一区| 亚洲欧美日韩国产中文在线| 一本久久综合亚洲鲁鲁| 亚洲国产精品123| 在线日韩电影| 在线日韩欧美视频|