Reputation: 6953
I want to download some entity profiles from dbpedia using its sparql endpoint. My query is:
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX dbpedia: <http://dbpedia.org/ontology/>
select ?x where {?x rdf:type dbpedia:Drug} LIMIT 100
The result of above query is some links for the entity profiles. For dereferencing I must click on each link. I want to dereference all entity profiles and save as dataset in my local computer. I want to use this dataset later in my project. So how I can download this entity profiles? Is there any sparql command?
Upvotes: 4
Views: 1428
Reputation: 641
If you want to get all RDF data about ?x (equivalent to dereferencing all URIs) you can change your SPARQL query to:
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX dbpedia: <http://dbpedia.org/ontology/>
DESCRIBE ?x where {?x rdf:type dbpedia:Drug} LIMIT 100
In fact, dereferencing a URI is (very often) translated into a SPARQL query by the server. The query usually has the form of:
DESCRIBE <URI>
Upvotes: 8