Property resultVariable = modelStreamed
.getProperty("http://www.w3.org/2001/sw/DataAccess/tests/result-set#variable");
Property resultValue = modelStreamed
.getProperty("http://www.w3.org/2001/sw/DataAccess/tests/result-set#value");
NodeIterator nodeIt = modelStreamed
.listObjectsOfProperty(resultVariable);
while (nodeIt.hasNext()) {
RDFNode node = (RDFNode) nodeIt.nextNode();
if (node.isLiteral()) {
LOG.debug(node.toString());
LOG.debug(modelStreamed.listSubjectsWithProperty(
resultVariable, node).nextResource().getURI());
}
}
NodeIterator nodeIt2 = modelStreamed.listObjectsOfProperty(resultValue);
while (nodeIt2.hasNext()) {
Resource node = (Resource) nodeIt.nextNode();
if (node.isLiteral()) {
LOG.debug(node.toString());
}
}