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

為生存而奔跑

   :: 首頁 :: 聯系 :: 聚合  :: 管理
  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>
            亚洲电影免费在线观看| 免费观看一级特黄欧美大片| 亚洲精选中文字幕| 国内在线观看一区二区三区| 欧美视频在线观看一区| 欧美极品影院| 欧美韩日一区| 欧美日韩三级一区二区| 欧美色网一区二区| 国产精品黄视频| 国产精品性做久久久久久| 国产精品丝袜xxxxxxx| 国产性色一区二区| 在线成人欧美| 99国产一区| 香蕉久久一区二区不卡无毒影院| 欧美一区二区在线看| 久久精品一二三区| 欧美激情第3页| 99综合电影在线视频| 欧美亚洲系列| 欧美在线不卡| 免费久久99精品国产| 亚洲国产精品高清久久久| 亚洲国产精品一区在线观看不卡| 亚洲毛片网站| 久久精品伊人| 欧美日韩精品免费在线观看视频| 欧美午夜在线观看| 极品尤物一区二区三区| 日韩亚洲成人av在线| 欧美主播一区二区三区| 欧美福利小视频| 亚洲已满18点击进入久久| 另类成人小视频在线| 国产精品美女主播在线观看纯欲| 韩国av一区二区| 亚洲一区二区三区777| 麻豆乱码国产一区二区三区| 日韩亚洲精品在线| 久久免费高清| 国产日本亚洲高清| 一本色道久久综合狠狠躁篇的优点| 欧美一区二区三区啪啪| 亚洲精品一区二区三| 久久电影一区| 国产精品五区| 亚洲一级黄色av| 亚洲国产aⅴ天堂久久| 久久精品国产亚洲一区二区三区 | 欧美小视频在线| 韩国三级电影一区二区| 亚洲宅男天堂在线观看无病毒| 免费美女久久99| 午夜精品一区二区三区四区 | 一区二区三区免费在线观看| 久久亚洲欧洲| 午夜精品久久久久久久白皮肤| 欧美理论电影在线播放| 亚洲欧洲精品一区二区| 蜜臀a∨国产成人精品| 欧美一区二区免费观在线| 国产精品久久久999| 亚洲一区二区伦理| 亚洲视频大全| 欧美三级在线播放| 亚洲一区二区在线免费观看视频| 亚洲免费电影在线| 欧美日韩在线另类| 亚洲一区二区欧美日韩| 亚洲系列中文字幕| 国产免费一区二区三区香蕉精| 亚洲免费视频网站| 亚洲精品视频在线观看网站| 99视频日韩| 亚洲人成啪啪网站| 欧美日韩精选| 亚洲专区免费| 午夜欧美不卡精品aaaaa| 国产精品一区二区你懂的| 亚洲制服欧美中文字幕中文字幕| 一本久久青青| 国产日韩欧美精品在线| 久久视频免费观看| 麻豆九一精品爱看视频在线观看免费 | 欧美国产精品va在线观看| 毛片基地黄久久久久久天堂| 亚洲伦理在线| 亚洲综合99| 影音先锋中文字幕一区二区| 亚洲国产婷婷香蕉久久久久久99| 欧美日韩a区| 欧美在线高清| 麻豆精品在线播放| 午夜宅男久久久| 久久综合色播五月| 亚洲一品av免费观看| 欧美制服第一页| 一本色道久久综合亚洲精品按摩| 一区二区三区四区蜜桃| 红桃视频国产精品| 亚洲精品乱码久久久久久久久| 欧美午夜视频在线| 免费亚洲电影在线| 国产精品久久久久久久久久久久| 久久久久国产一区二区三区| 欧美大片91| 久久精品30| 欧美日韩免费一区二区三区| 久久在精品线影院精品国产| 欧美日韩免费一区二区三区视频| 久久青青草综合| 欧美日韩免费在线观看| 男女激情视频一区| 国产老女人精品毛片久久| 亚洲激情视频在线播放| 国模套图日韩精品一区二区| 日韩视频不卡中文| 亚洲国产国产亚洲一二三| 亚洲一区日韩在线| 99精品国产在热久久| 久久久人人人| 久久大逼视频| 国产精品视频成人| 亚洲激情欧美| 亚洲激情欧美激情| 久久久久久电影| 欧美影院成人| 国产精品va| 99在线观看免费视频精品观看| 激情一区二区三区| 欧美与黑人午夜性猛交久久久| 亚洲在线1234| 欧美午夜剧场| 夜夜嗨av一区二区三区四季av| 亚洲精品日韩激情在线电影| 欧美一区二区三区久久精品| 亚洲最黄网站| 久久久精品欧美丰满| 欧美99在线视频观看| 亚洲一区二区精品在线| 亚洲黄色高清| 国产日韩欧美电影在线观看| 久久久久久9| 欧美有码在线视频| 亚洲免费婷婷| 欧美黄色片免费观看| 欧美在线视频导航| 亚洲精品日产精品乱码不卡| 欧美制服第一页| 久久精品一区四区| 国产欧美日韩综合| 香蕉久久国产| 久久人人爽人人爽| 尤物网精品视频| 玖玖国产精品视频| 亚洲国产精品va在看黑人| 亚洲三级电影全部在线观看高清| 欧美成人激情在线| 亚洲精品中文在线| 午夜精品一区二区三区四区| 国产欧美三级| 久久久一区二区三区| 亚洲第一中文字幕在线观看| 亚洲美女精品一区| 国产精品国产精品| 欧美伊人影院| 欧美激情一区三区| 亚洲视频一区在线观看| 国产伦理精品不卡| 免费人成网站在线观看欧美高清| 亚洲国产精品成人精品| 亚洲一区精彩视频| 极品日韩久久| 欧美日韩一区二区在线观看| 欧美夜福利tv在线| 欧美激情一区二区三区高清视频| 亚洲午夜在线视频| 国产一区清纯| 欧美人成免费网站| 欧美在线观看你懂的| 亚洲精品一区在线观看| 欧美一区二区在线视频| 亚洲精品你懂的| 国产欧美高清| 欧美久久久久久久久| 欧美一级网站| 一本色道久久| 欧美国产91| 久久精品72免费观看| 99re8这里有精品热视频免费 | 亚洲精品美女久久7777777| 国产精品久久久对白| 久久中文欧美| 亚洲欧美在线免费观看| 日韩小视频在线观看| 亚洲欧美日韩国产一区二区三区| 在线日韩av片| 欧美日韩亚洲一区二区三区在线观看 | 久久精品中文字幕免费mv|