* Anonymous implementation of an Adapter that converts the filtered Triples of the
* resulting graph to RdfRepresentations
*/
@Override
public RdfRepresentation adapt(Triple value, Class<RdfRepresentation> type) {
Resource object = value.getObject();
if (object == null) {
return null;
} else if (object instanceof UriRef) {
return valueFavtory.createRdfRepresentation((UriRef) object, resultGraph);
} else {
log.warn("Unable to create representation for FieldQueryResult " + object
+ " because this Resource is not of Type UriRef (type: "
+ object.getClass() + ") -> result gets ignored");
return null;
}
}
}, RdfRepresentation.class);
return resultIterator;