r - How to retrieve person names from DBPedia in different language versions? -
i querying dbpedia list of person names using sparql package in r. noticed when use sparql query english dbpedia this:
endpoint = "http://live.dbpedia.org/sparql" query= "select *{ dbpedia:veit_dietrich ?p ?o }" qd=sparql(endpoint,query) df=qd$results
everything fine, if want query german dbpedia , change endpoint, turns out wrong:
endpoint = "http://de.dbpedia.org/sparql" query= "select *{ dbpedia:veit_dietrich ?p ?o }" qd=sparql(endpoint,query) df=qd$results
i think problem might related "dbpedia:veit_dietrich", don't know how modify it.
the namespaces of dbpeida in different languages different. need change namespace:
select *{ dbpedia-de:veit_dietrich ?p ?o }
Comments
Post a Comment