/** * Process triples with <code>rdf:type</code> predicate and given object. Type can be {@link Node.ANY} to indicate all type triples should be processed. * * @param type the object of <code>rdf:type</code> triples to be processed */ protected void processTypes(final Node type) { final ClosableIterator<Triple> i = _graph.find(null, RDF.type.asNode(), type); while (i.hasNext()) { final Triple stmt = i.next(); processType(stmt); } i.close(); }
/** * Process triples with <code>rdf:type</code> predicate and given object. Type can be {@link Node.ANY} to indicate all type triples should be processed. * * @param type the object of <code>rdf:type</code> triples to be processed */ protected void processTypes(final Node type) { final ClosableIterator<Triple> i = _graph.find(null, RDF.type.asNode(), type); while (i.hasNext()) { final Triple stmt = i.next(); processType(stmt); } i.close(); }
/** * Process triples with <code>rdf:type</code> predicate and given object. Type can be {@link Node.ANY} to indicate all type triples should be processed. * * @param type the object of <code>rdf:type</code> triples to be processed */ protected void processTypes(final Node type) { final ClosableIterator<Triple> i = _graph.find(null, RDF.type.asNode(), type); while (i.hasNext()) { final Triple stmt = i.next(); processType(stmt); } i.close(); }