Queries of the day – some simple ones to start with

January 19th, 2011, By eitanb

Here are some quick ways to query “World Knowledge” information using SemantiNet’s API, in a very basic way.

Let’s break it down a bit:

  1. dbpedia:New_Zealand – brings the node in the graph that represents New Zealand. How did we know to put an “_”? DBPedia matches Wikipedia’s URLs, and New Zealand’s Wikipedia entry resides under http://en.wikipedia.org/wiki/New_Zealand. We used Google to find how New Zealand appears in Wikipedia.
  2. We added a “label” to it, in order to get a nice representation of it.
  3. dbpedia-owl:capital – gets New_Zealan’s capital.
  4. latlong – get the coordinates of the capital.

Of course that we can run similar ones:

Notice that Linked-Data (including Wikipedia) contain over 1 Billion(!) facts, so these simple queries actually give access to quite a bunch of data.

Want to play around? Give it a spin: http://www.headup.com/playground.php

Or, check out the documentation in the wiki: http://wiki.headup.com/index.php?title=Knowledge_Graph_API

Bookmark and Share

Comments feed TrackBack URL

No Comments »

No comments yet.

Leave a comment