After I query dbpedia over its Sparql endpoint, I get results as Jena ResourceImpl
objects. Then how I can get details of this resource? For example if this resource is a person; how can I get his/her birthDate
?
I tried this one; but it always returns null.
QuerySolution querySolution = resultSet.next();
RDFNode x = querySolution.get("x");
ResourceImpl resource = (ResourceImpl) x;
Property property = new PropertyImpl("http://dbpedia.org/property/birthDate");
Resource propertyResourceValue = resource.getPropertyResourceValue(property); // NULL