Reputation: 6963
I want to download all object of type d0:Loaction from dbpedia in N-Triple format. The query in http://dbpedia.org/sparql is :
DESCRIBE ?x
WHERE { ?x rdf:type d0:Location
}
But i will give timeout. Is there any simpler approach for downloading such database?
Upvotes: 4
Views: 1248
Reputation: 85913
If you're downloading a lot of data from DBpedia, you should probably just download the data dumps and run your own endpoint locally. But if you just want a list of list of individuals of a given type, you can use a select query:
select ?location where {
?location a d0:Location
}
order by ?location #-- need an order for offset to work
limit 1000 #-- how many to get each time
offset 3000 #-- where to start in the list
If you actually want RDF data back, you can just change that to a construct query:
construct where {
?location a d0:Location
}
order by ?location
limit 1000
offset 3000
Upvotes: 3