Reputation: 7588
I would like to get class information from DBpedia in a machine-readable format (like JSON).
For example, how do I get this page as JSON or JSON-LD?
I did find this JSON file, but it doesn't contain the properties.
Upvotes: 0
Views: 485
Reputation: 734
Why not use the ontology file? Published alongside each release in .nt and .owl
For 2016-10:
Then just query for http://dbpedia.org/ontology/Galaxy
Something like:
select ?domain ?prop
Where{
?class rdfs:subClassOf{0,1} ?domain.
?prop rdfs:domain ?domain.
FILTER(?class = <http://dbpedia.org/ontology/Galaxy>)
}
UPDATE
For json output append &format=json or &format=json-ld: click.
Upvotes: 1