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

為生存而奔跑

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

留言簿(5)

我參與的團隊

搜索

  •  

積分與排名

  • 積分 - 331736
  • 排名 - 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>
            香蕉乱码成人久久天堂爱免费| 国产精品视频yy9099| 亚洲精品国久久99热| 欧美大胆人体视频| 亚洲高清久久网| 国产精品激情| 亚洲一二三区在线观看| 亚洲视频网在线直播| 亚洲女人av| 欧美一区二区三区四区夜夜大片| 香蕉久久夜色精品| 久久久综合网| 欧美亚洲第一页| 一色屋精品视频免费看| 亚洲精品欧美精品| 欧美一区二区免费观在线| 久久久久久网址| 亚洲国产日韩一区| 亚洲女女做受ⅹxx高潮| 欧美福利网址| 国产伦精品一区二区三区四区免费 | 欧美亚洲一区在线| 久久免费精品视频| 91久久精品国产| 亚洲欧美日韩另类精品一区二区三区| 先锋影音久久久| 欧美精品偷拍| 在线日韩精品视频| 欧美一进一出视频| 亚洲精品国产精品国产自| 香蕉视频成人在线观看| 欧美日产一区二区三区在线观看 | 欧美α欧美αv大片| 夜色激情一区二区| 久久久噜久噜久久综合| 国产精品va| 亚洲精选91| 老妇喷水一区二区三区| 亚洲小说区图片区| 欧美日本高清一区| 亚洲成人资源| 久久乐国产精品| 亚洲免费视频成人| 欧美亚一区二区| 亚洲午夜一区| 亚洲精品在线视频观看| 免费视频一区二区三区在线观看| 国产区在线观看成人精品| 亚洲尤物影院| 99re6热在线精品视频播放速度| 久久久在线视频| 在线精品视频一区二区三四| 国产欧美日韩高清| 欧美三日本三级三级在线播放| 亚洲二区在线观看| 久久精品国产91精品亚洲| 这里是久久伊人| 国产精品v片在线观看不卡 | 亚洲免费中文| 宅男噜噜噜66一区二区| 欧美三级视频| 亚洲欧美视频在线| 亚洲午夜精品久久久久久浪潮 | 91久久精品国产91性色| 男人天堂欧美日韩| 免费观看亚洲视频大全| 亚洲人永久免费| 亚洲激情中文1区| 欧美日韩国产一区精品一区 | 亚洲免费电影在线| 欧美日韩一区二区欧美激情| 亚洲深夜福利| 亚洲一二三四区| 国产亚洲女人久久久久毛片| 久久亚洲春色中文字幕久久久| 欧美一区视频在线| 亚洲国产影院| 亚洲另类黄色| 国产精品一二三四| 另类天堂av| 欧美日本精品在线| 欧美一级免费视频| 久久综合中文色婷婷| 日韩午夜一区| 午夜精品av| 亚洲精品色图| 欧美一进一出视频| 99亚洲一区二区| 欧美一区免费| 亚洲少妇一区| 卡一卡二国产精品| 亚洲一区黄色| 美女免费视频一区| 午夜精品一区二区三区在线| 欧美在线三级| 亚洲网站在线看| 久久综合伊人77777尤物| 亚洲欧美激情一区二区| 久久伊人一区二区| 香蕉精品999视频一区二区 | 欧美激情一区二区三区在线| 国产精品v日韩精品v欧美精品网站| 久久久久久久性| 欧美日韩在线不卡一区| 麻豆成人在线| 亚洲一级黄色| 欧美极品欧美精品欧美视频| 亚洲综合国产| 蘑菇福利视频一区播放| 亚洲欧美偷拍卡通变态| 免费在线亚洲欧美| 久久精品一区| 国产精品系列在线| 99精品久久免费看蜜臀剧情介绍| 狠狠干综合网| 亚洲免费视频一区二区| 一二三四社区欧美黄| 老司机午夜精品视频| 久久精品视频在线| 国产精品视频自拍| 日韩一区二区福利| 夜夜嗨av一区二区三区网页| 久久精品一区二区| 欧美一区二区三区四区视频| 欧美日韩亚洲综合一区| 亚洲国产精品va在线看黑人| 伊人成人在线视频| 久久精品国产一区二区三区免费看| 亚洲欧美在线一区二区| 欧美午夜免费| 一区二区三区四区精品| 一区二区三区不卡视频在线观看| 欧美成va人片在线观看| 男女精品网站| 亚洲国产高清自拍| 免费成人小视频| 欧美不卡在线视频| 亚洲国产欧洲综合997久久| 久久精品2019中文字幕| 久久精品二区亚洲w码| 国产手机视频精品| 久久久国产视频91| 你懂的视频欧美| 亚洲美女电影在线| 欧美日韩在线亚洲一区蜜芽| 中国av一区| 久久婷婷国产综合国色天香| 在线观看日韩av先锋影音电影院| 久久人人超碰| 91久久精品国产91性色tv| 99re这里只有精品6| 欧美亚一区二区| 欧美伊人久久久久久午夜久久久久 | 久久久99精品免费观看不卡| 免费成人黄色av| 亚洲精品小视频| 国产精品盗摄久久久| 午夜精品美女自拍福到在线| 久久免费精品日本久久中文字幕| 在线观看久久av| 欧美日韩综合一区| 午夜精品一区二区三区电影天堂| 久久天天躁狠狠躁夜夜av| 亚洲国产精品久久久久秋霞蜜臀| 欧美人与禽猛交乱配| 欧美一区二区三区四区视频| 欧美福利小视频| 亚洲欧美国产va在线影院| 黄色精品在线看| 欧美日韩免费观看中文| 欧美亚洲视频在线看网址| 欧美阿v一级看视频| 亚洲国产欧美一区| 国产精品日韩二区| 免费成人黄色av| 一本到高清视频免费精品| 久久福利一区| 日韩亚洲欧美高清| 国产小视频国产精品| 欧美高清在线一区| 亚洲欧美国产毛片在线| 欧美国产日韩精品免费观看| 亚洲素人在线| 亚洲国产高清高潮精品美女| 国产精品无人区| 欧美日本一道本| 榴莲视频成人在线观看| 亚洲免费影视第一页| 亚洲日本理论电影| 女仆av观看一区| 久久精品视频在线播放| 亚洲一区二区三区视频| 亚洲日本va午夜在线电影| 韩日成人av| 国产欧美日韩一级| 国产精品久久久久永久免费观看| 欧美国产免费| 欧美成人精品福利| 美国十次成人| 久久综合色播五月|