get latitude and longitude of a place dbpedia

You can use Jena’s ARQ to execute queries against remote SPARQL endpoints. The process is described in ARQ — Querying Remote SPARQL Services. Using ParameterizedSparqlStrings in SELECT queries To do this for different places that you might not know until it is time to execute the query, you can use a ParameterizedSparqlString to hold the query and … Read more

DBpedia Jena Query returning null

that is so embarassing, there is space problem in the query: String service = “http://dbpedia.org/sparql”; String queryString = “”; queryString = “PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> SELECT ?label ” + “WHERE {” + “<http://dbpedia.org/resource/Quatre_Bornes> <http://dbpedia.org/ontology/country> ?y .”+ “?y rdfs:label ?label .”+ “FILTER (LANG(?label) = ‘en’)”+ “}”;

Calculate length of path between nodes?

This is based on the same technique used to compute the position of an element in an RDF list using SPARQL that is described in: Is it possible to get the position of an element in an RDF Collection in SPARQL? If you have data like this: @prefix : <http://example.org> . :orgA :hasSuborganization :orgB, :orgC, … Read more

tech