Skip to content

Instantly share code, notes, and snippets.

@niftydigits
Created June 19, 2010 19:57
Show Gist options
  • Save niftydigits/445226 to your computer and use it in GitHub Desktop.
Save niftydigits/445226 to your computer and use it in GitHub Desktop.
DBPedia
PREFIX dbo: <http://dbpedia.org/ontology/>
SELECT ?person WHERE {
?person dbpedia2:influences <http://dbpedia.org/resource/Isaac_Newton> .
{ ?person a <http://dbpedia.org/ontology/Person> . }
}
ORDER BY ?name
select * from search.termextract where context in (select Description.abstract from xml where url="http://dbpedia.org/data/Isaac_Newton.rdf" and Description.abstract.lang="en")
select Description.about from xml where url="http://dbpedia.org/data/Isaac_Newton.rdf" and Description.influencedBy.resource="http://dbpedia.org/resource/Isaac_Newton"
select Description.about from xml where url="http://dbpedia.org/data/Isaac_Newton.rdf" and Description.influenced.resource="http://dbpedia.org/resource/Isaac_Newton"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment