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

為生存而奔跑

   :: 首頁 :: 聯系 :: 聚合  :: 管理
  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>
            性欧美长视频| 日韩午夜av| 日韩视频在线观看一区二区| 亚洲欧美日韩一区在线观看| 欧美一区二区三区免费视频| 一卡二卡3卡四卡高清精品视频| 猫咪成人在线观看| 久久躁日日躁aaaaxxxx| 久久久久久穴| 欧美福利视频在线观看| 欧美gay视频| 亚洲精品1区2区| 欧美国产高潮xxxx1819| 亚洲激情综合| 一道本一区二区| 亚洲一区二区三区免费视频 | 免费观看成人| 欧美成ee人免费视频| 欧美韩日亚洲| 国产精品美女久久久浪潮软件 | 久久在精品线影院精品国产| aa日韩免费精品视频一| 日韩小视频在线观看| 亚洲一二三区在线| 国产欧美婷婷中文| 欧美日韩国产一区二区| 国产欧美在线观看| 一本久久综合| 一区二区三区不卡视频在线观看 | 精品动漫一区二区| 亚洲深夜av| 免费毛片一区二区三区久久久| 国产午夜久久| 国产精品video| 欧美不卡三区| 亚洲男人的天堂在线| 好吊视频一区二区三区四区 | 亚洲黄色免费网站| 久久久久久噜噜噜久久久精品| 欧美大片一区| 亚洲福利精品| 亚洲专区欧美专区| 午夜亚洲影视| 欧美国产日产韩国视频| 欧美午夜视频在线| 一区免费在线| 99国产精品| 性感少妇一区| 亚洲宅男天堂在线观看无病毒| 91久久香蕉国产日韩欧美9色| 夜夜嗨av色综合久久久综合网 | 暖暖成人免费视频| 久久久久久久久久久成人| 欧美一区二区三区视频在线| 亚洲国产精品黑人久久久| 亚洲调教视频在线观看| 91久久精品日日躁夜夜躁国产| 欧美视频观看一区| 国产精自产拍久久久久久蜜| 欧美日韩免费观看一区二区三区| 欧美日韩国产色站一区二区三区| 欧美国产欧美亚洲国产日韩mv天天看完整| 久久亚洲一区| 欧美精品在线看| 国产精品久久久久婷婷| 亚洲精品欧美| 欧美成人自拍| 欧美日韩另类视频| 午夜精品影院| 国产精品专区第二| 欧美在线3区| 校园激情久久| av不卡在线观看| 久久久99久久精品女同性| 美女黄网久久| 亚洲永久在线观看| 在线观看亚洲专区| 欧美日韩xxxxx| 99这里只有久久精品视频| 亚洲激情成人| 欧美激情亚洲一区| 亚洲一区视频在线观看视频| 亚洲青色在线| 欧美网站在线观看| 欧美在线网址| 久久久久久久国产| 亚洲美女黄色片| 一区二区三区欧美亚洲| 欧美丝袜一区二区| 午夜在线精品偷拍| 久久精品一二三区| 这里只有精品视频在线| 国产乱码精品一区二区三区忘忧草 | 亚洲欧美日韩在线播放| 亚洲伊人伊色伊影伊综合网| 久久久久久网址| 一本久久青青| 亚洲欧美日韩精品综合在线观看| 亚洲日本va午夜在线影院| 亚洲一级片在线看| 日韩午夜黄色| 免费欧美在线| 性xx色xx综合久久久xx| 久久激情网站| 一区二区欧美激情| 欧美寡妇偷汉性猛交| 欧美国产91| 宅男精品导航| 99国内精品| 久久综合伊人77777麻豆| 亚洲精品欧美专区| 欧美三日本三级少妇三2023 | 午夜欧美视频| 99精品99| 亚洲美女电影在线| 一本色道久久综合亚洲精品小说| 一区二区三区国产| 裸体女人亚洲精品一区| 激情欧美一区| 亚洲免费福利视频| 欧美午夜三级| 久久五月天婷婷| 欧美一级午夜免费电影| 欧美成人综合在线| 91久久在线| av不卡在线看| 国内精品国产成人| 亚洲激情自拍| 国产揄拍国内精品对白| 亚洲三级电影全部在线观看高清| 亚洲国产精品一区| 亚洲二区在线视频| 一区二区日韩精品| 在线视频你懂得一区| 性亚洲最疯狂xxxx高清| 午夜精品99久久免费| 一区二区三区久久| 国产精品一区视频| 亚洲精品国产拍免费91在线| 国产精品日韩一区二区| 国产精品一区二区久激情瑜伽 | 国产一区二区三区视频在线观看| 国产一区二区三区在线观看免费 | 亚洲第一精品电影| 999在线观看精品免费不卡网站| 久久精品国产2020观看福利| 99精品国产福利在线观看免费| 美女亚洲精品| 亚洲自拍偷拍福利| 欧美成人一区在线| 欧美日一区二区三区在线观看国产免| 亚洲第一视频网站| 一区二区三区久久精品| 性色av一区二区三区| 日韩午夜电影在线观看| 久久久噜噜噜| 在线成人欧美| 亚洲国产一区二区在线| 乱中年女人伦av一区二区| 国产一区二区三区免费在线观看 | 亚洲免费在线精品一区| 六月丁香综合| 欧美视频免费在线| 亚洲高清视频在线观看| 国产日本欧美一区二区三区在线 | 亚洲第一网站| 欧美激情精品久久久久久黑人 | 亚洲五月六月| 999亚洲国产精| 亚洲视频免费在线观看| 国产精品一区2区| 免费看成人av| 欧美午夜精品久久久久久人妖| 亚洲综合色自拍一区| 欧美一区二区三区在线| 在线日本成人| 午夜欧美视频| 一本一道久久综合狠狠老精东影业 | 日韩视频一区二区在线观看 | 亚洲视频免费看| 欧美88av| 亚洲女性裸体视频| 欧美激情1区2区| 亚洲主播在线播放| 欧美日产国产成人免费图片| 国产精品人成在线观看免费 | 欧美一级久久久久久久大片| 香蕉免费一区二区三区在线观看| 久久国产精品久久久久久| 国产麻豆9l精品三级站| 亚洲男女毛片无遮挡| 国产一区二区无遮挡| 久久伊人免费视频| 亚洲少妇诱惑| 欧美韩国日本综合| 欧美一区二区三区免费视| 亚洲福利在线视频| 国产精品夜色7777狼人| 牛夜精品久久久久久久99黑人| 正在播放亚洲一区|