Skip to content

Instantly share code, notes, and snippets.

@danbri
Created June 9, 2011 15:39
Show Gist options
  • Save danbri/1017007 to your computer and use it in GitHub Desktop.
Save danbri/1017007 to your computer and use it in GitHub Desktop.
OK, ... imagine this table is filled out, and we have some match for a lot of the schema.org classes.
For each type we can go to http://dbpedia.org/sparql and do:
select ?x where { ?x a <http://dbpedia.org/resource/Non-governmental_organization> . }
...and get instances back. Well this query isn't working but something like it should. We can get json too...
Corporation http://dbpedia.org/resource/Corporation
EducationalOrganization http://dbpedia.org/resource/Educational_organization
CollegeOrUniversity http://dbpedia.org/resource/College
CollegeOrUniversity http://dbpedia.org/resource/University
ElementarySchool http://dbpedia.org/resource/School
HighSchool http://dbpedia.org/resource/School
MiddleSchool http://dbpedia.org/resource/School
PreSchool http://dbpedia.org/resource/School
GovernmentOrganization http://dbpedia.org/resource/GovernmentAgency
NGO http://dbpedia.org/resource/Non-governmental_organization
PerformingGroup
DanceGroup
MusicGroup
TheaterGroup
SportTeam
Person
Product
Place
Product
# http://mappings.dbpedia.org/server/ontology/classes#College
# http://mappings.dbpedia.org/index.php/OntologyClass:College
# http://mappings.dbpedia.org/server/ontology/classes/School
# http://mappings.dbpedia.org/server/ontology/classes/GovernmentAgency
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment