Reputation: 11
I want to export all data XML/RDF/OWL (ontology) about resource from wikidata or dbpedia. (with all children elements, statements, nested data -database dump)
I'm looking for tool or api or code, and advice how to do that.
Let's say I want all data, and all statements about series How I met your mother, actors, roles, episodes, everything,also their classes and properties (statements).
Link: https://www.wikidata.org/wiki/Q147235 Entity->Q147235
Can maybe SPARQL be written for that, something like this, but with all nested classes, properties, individuals
SELECT ?himym
WHERE {
BIND(wd:Q147235 as ?himym) .
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en" }
}
So the main goal is retrieving database data in rdf/owl.
To be more specific, what I'm looking for something like this, view-source:http://dbpedia.org/data/Friends.rdf but, also statements-resources-about nested data ex. characters, actors, ... up to 3-4 levels of nesting?
Upvotes: 1
Views: 814
Reputation: 22529
You can use the linked data interface as described here.
In your specific case, this link will download as an attachment the record in rdf format:
https://www.wikidata.org/wiki/Special:EntityData/Q147235.rdf
Regarding the level of nesting, is not clear what is the specific query maybe a tool like wikidata-graph-builder by AngryLoki might help:
Upvotes: 0