Writing SPARQL queries with Jena to query for IRIs like: http://pt.dbpedia.org/
I'm using Jena to write a SPARQL query to get the rdfs:label property from a URI received as a method parameter. That method only receives URIs like: http://pt.dbpedia.org/.. It should return me the rdfs:label , but it doesn't return me anything. I checked and it doesn't enter the while block supposed to iterate the results. I even made a test with the URI: <http://pt.dbpedia.org/resource/Brasil> , but it didn't work. What may be the problem? public String getLabel(String uri, String label) { Model model = ModelFactory.createDefaultModel().read( uri ); RDFNode node; String queryString =