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

為生存而奔跑

   :: 首頁 :: 聯系 :: 聚合  :: 管理
  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>
            国产精品老牛| 亚洲美女色禁图| 国产精品日韩精品欧美精品| 欧美韩日高清| 黄色精品一区| 午夜精品久久久久久久久久久久| 亚洲综合不卡| 91久久午夜| 午夜一区不卡| 最近中文字幕mv在线一区二区三区四区| 久久天天躁狠狠躁夜夜爽蜜月| 亚洲美女福利视频网站| 久久婷婷国产麻豆91天堂| 国产精品一级| 亚洲一区中文| 亚洲免费激情| 欧美日韩国产片| 亚洲毛片av在线| 亚洲国产国产亚洲一二三| 久热精品视频| 91久久精品国产91久久性色| 久久久久久综合| 国产午夜精品在线| 亚洲欧美日韩精品在线| 一区二区欧美视频| 欧美特黄视频| 亚洲淫片在线视频| 中日韩午夜理伦电影免费| 欧美色精品在线视频| 艳妇臀荡乳欲伦亚洲一区| 亚洲精品美女免费| 欧美人与性动交a欧美精品| 亚洲最黄网站| 亚洲一区二区三区精品动漫| 国产乱码精品| 久久综合九九| 蜜臀a∨国产成人精品| 亚洲乱码国产乱码精品精天堂| 欧美激情精品久久久久| 欧美顶级大胆免费视频| 日韩视频一区二区三区在线播放免费观看 | 毛片基地黄久久久久久天堂| 亚洲欧美精品suv| 国内精品免费午夜毛片| 麻豆91精品| 欧美国产精品中文字幕| 中文精品视频| 午夜精品一区二区三区在线视| 狠狠色狠狠色综合日日tαg| 欧美黄色免费网站| 欧美午夜片在线观看| 久久激情网站| 欧美国产日韩一二三区| 日韩网站在线观看| 一本久久综合亚洲鲁鲁| 国产欧美成人| 欧美1区免费| 欧美午夜不卡视频| 国产精品久久二区| 1769国内精品视频在线播放| 亚洲国产婷婷| 亚洲精选在线| 欧美二区在线播放| 亚洲激情国产精品| 久久一区精品| 99精品国产高清一区二区| 久久精品成人欧美大片古装| 亚洲一级二级在线| 一本色道久久88综合日韩精品| 午夜伦欧美伦电影理论片| 又紧又大又爽精品一区二区| 久久久91精品国产| 欧美伦理影院| 你懂的国产精品| 国产精品视频内| 亚洲高清av| 国产欧美日韩激情| 亚洲最新在线| 亚洲精品综合精品自拍| 久久精品色图| 欧美一区二视频| 欧美午夜片在线观看| 亚洲激情另类| 亚洲国产老妈| 欧美永久精品| 亚洲欧美日韩综合一区| 欧美精品aa| 女人天堂亚洲aⅴ在线观看| 国产日韩在线一区| 亚洲一区国产视频| 亚洲欧美资源在线| 欧美日韩精品综合| 亚洲日本理论电影| 亚洲精品欧美日韩专区| 免费在线日韩av| 老司机免费视频一区二区三区| 国产精品成人在线| 亚洲视频专区在线| 亚洲欧美在线x视频| 欧美日韩亚洲一区二区三区四区 | 免费黄网站欧美| 欧美1区2区| 91久久综合亚洲鲁鲁五月天| 另类天堂av| 欧美福利专区| 亚洲人被黑人高潮完整版| 欧美~级网站不卡| 亚洲专区一区二区三区| 欧美日韩在线一区二区三区| 日韩小视频在线观看| 亚洲性线免费观看视频成熟| 国产精品h在线观看| 亚洲免费一在线| 亚洲一区二区三区精品视频| 欧美不卡视频一区发布| 欧美激情片在线观看| 亚洲国产精品久久91精品| 欧美成人激情视频| 亚洲精品久久久久久久久久久久| 亚洲日本aⅴ片在线观看香蕉| 欧美大片18| 亚洲人成高清| 欧美色网一区二区| 欧美一区二区网站| 欧美成人第一页| 一区二区三区久久网| 国产精品国产自产拍高清av| 久久丁香综合五月国产三级网站| 欧美mv日韩mv国产网站app| 一本一本a久久| 国产日韩欧美成人| 美日韩在线观看| 亚洲一区二区三区久久| 欧美ed2k| 欧美一区二区三区在线视频| 亚洲国产美国国产综合一区二区| 欧美天天综合网| 久久美女艺术照精彩视频福利播放| 亚洲茄子视频| 久久资源在线| 亚洲综合999| 亚洲第一视频网站| 国产精品久久久久高潮| 久久亚洲国产精品一区二区| 在线亚洲观看| 欧美激情亚洲精品| 久久精品视频在线看| 99热免费精品在线观看| 黑丝一区二区| 国产精品三区www17con| 欧美成在线视频| 欧美在线综合| 亚洲——在线| 亚洲作爱视频| 亚洲精品乱码久久久久久按摩观 | 欧美激情亚洲| 亚洲激情av| 欧美视频一区二区三区四区| 免费一区视频| 欧美亚洲一区三区| 亚洲国产91| 国产精品久久久久久久午夜| 女仆av观看一区| 亚洲综合欧美| 亚洲精品国产拍免费91在线| 久久久久久电影| 久久激情一区| 亚洲午夜视频在线观看| 亚洲成人资源| 国产午夜精品视频免费不卡69堂| 欧美日韩综合一区| 免费成人你懂的| 久久狠狠久久综合桃花| 这里只有视频精品| 欧美风情在线观看| 久久国产婷婷国产香蕉| 亚洲亚洲精品在线观看| 日韩亚洲欧美精品| 一区精品在线| 国产精品国产亚洲精品看不卡15| 欧美电影免费观看高清完整版| 午夜在线一区| 亚洲性感激情| 亚洲精品乱码久久久久久按摩观| 狠狠色综合网站久久久久久久| 国产精品久久久久久久久久久久久久| 欧美精品在线一区| 欧美日韩91| 欧美综合国产| 亚洲片在线资源| 最新国产の精品合集bt伙计| 女人天堂亚洲aⅴ在线观看| 欧美在线亚洲| 一区二区三区产品免费精品久久75| 夜夜嗨一区二区| 99精品久久久| 一本色道久久综合亚洲91| 国产真实精品久久二三区 | 亚洲深夜福利网站| 亚洲精品国产精品国自产观看浪潮|