Hi everyone
Similarly, this happens with a normal filter and it returns:
FILTER(?a=3)
Or
FILTER (?a>3)
My code is :
root = getRootOf(spinModel);//root has been found correctly
StmtIterator list = spinModel.listStatements(root, ResourceFactory.createProperty("
http://www.w3.org/1999/02/22-rdf-syntax-ns#type"), (String) null);
while (list.hasNext()) {
Statement s = list.next();
if (s.getObject().isResource() && s.getObject().asResource().equals(SP.CONSTRUCT)) {
Construct spinQuery = s.getSubject().as(Construct.class);
return spinQuery.toString();
}
}
How to change my code to get the correct SPARQL code?