How to get all rdf file about berlin from dbpedia -
in page: http://thedatahub.org/dataset/dbpedia can find information dbpedia such sparql endpoint , on. , how should ask rdf file mention berlin ?
to everything related berlin in rdf you'll have write own sparql (construct) query including regexs, triples directly featuring resource :
http://dbpedia.org/resource/berlin
you can go url (which redirect http://dbpedia.org/page/berlin about berlin) , @ bottom of page links data in various formats.
ps. ok, here's select version grabbing mentions of text "berlin" :
select distinct ?s ?p ?o { ?s ?p ?o . filter regex(?o, 'berlin', 'i') }
that may produce many results/time out, might want replace ?p known property (like abstract, not sure dbpedia term is). output rdf you'd tweak shape:
construct { ?s ?p ?o } { ?s ?p ?o . filter regex(?o, 'berlin', 'i') }
Comments
Post a Comment