public class RDFIterators extends Object
RDFIterator
sModifier and Type | Class and Description |
---|---|
static class |
RDFIterators.DistinctRDFIterator<T> |
static class |
RDFIterators.RDFListIterator
This iterator class provides facilities for managing resources of type rdf:List It is already used in
OWL and SKOS methods such as
OWLModelImpl.parseDataRange(ARTResource, ARTResource...) |
Constructor and Description |
---|
RDFIterators() |
public static <T> void addIteratorToCollection(RDFIterator<T> rdfIt, Collection<T> collection) throws ModelAccessException
RDFIterator
. Note that the
RDFIterator is automatically closed at the end of execution of this methodT
- rdfIt
- ModelAccessException
public static <T> T getFirst(RDFIterator<T> rdfIt) throws ModelAccessException
ModelAccessException
public static <T> Collection<T> getCollectionFromIterator(RDFIterator<T> rdfIt) throws ModelAccessException
RDFIterator
. Note that the
RDFIterator is automatically closed at the end of execution of this methodT
- rdfIt
- ModelAccessException
public static <T> Set<T> getSetFromIterator(RDFIterator<T> rdfIt) throws ModelAccessException
RDFIterator
.
Note that the RDFIterator is automatically closed at the end of execution of this methodT
- rdfIt
- ModelAccessException
public static ARTNodeIterator createRDFListIterator(OWLModel model, ARTResource list, boolean inference, ARTResource... graphs) throws ModelAccessException
list
saving all the
code needed to parse the list RDF structuremodel
- list
- inference
- graphs
- ModelAccessException
public static ARTLiteralIterator toLiteralIterator(ARTNodeIterator it) throws ModelAccessException
filterLiterals(ARTNodeIterator)
call because it omits checks on
the nature of the wrapped nodes, expecting them to be Literalsit
- ModelAccessException
public static ARTResourceIterator toResourceIterator(ARTNodeIterator it) throws ModelAccessException
filterResources(ARTNodeIterator)
call because it omits checks on
the nature of the wrapped nodes, expecting them to be Resourcesit
- ModelAccessException
public static ARTURIResourceIterator toURIResourceIterator(ARTNodeIterator it) throws ModelAccessException
filterURIs(ARTNodeIterator)
call because it omits checks on the
nature of the wrapped nodes, expecting them to be URIsit
- ModelAccessException
public static ARTURIResourceIterator toURIResourceIterator(ARTResourceIterator it) throws ModelAccessException
filterURIs(ARTResourceIterator)
call because it omits checks on the
nature of the wrapped nodes, expecting them to be URIsit
- ModelAccessException
public static ARTLiteralIterator filterLiterals(ARTNodeIterator it) throws ModelAccessException
ARTLiteral
s out of a generic ARTNodeIterator
it
- ModelAccessException
public static ARTResourceIterator filterResources(ARTNodeIterator it) throws ModelAccessException
ARTResource
s out of a generic ARTNodeIterator
it
- ModelAccessException
public static ARTURIResourceIterator filterURIs(ARTNodeIterator it) throws ModelAccessException
ARTURIResource
s out of a generic ARTNodeIterator
it
- ModelAccessException
public static ARTURIResourceIterator filterURIs(ARTResourceIterator it) throws ModelAccessException
ARTURIResource
s out of a generic ARTResourceIterator
it
- ModelAccessException
public static ARTResourceIterator listSubjects(ARTStatementIterator statIt)
public static ARTURIResourceIterator listPredicates(ARTStatementIterator statIt)
public static ARTNodeIterator listObjects(ARTStatementIterator statIt)
public static ARTNodeIterator listNodes(ARTStatementIterator statIt)
public static ARTNodeIterator createARTNodeIterator(RDFIterator<ARTNode> it)
public static ARTNodeIterator createARTNodeIterator(Iterator<ARTNode> it)
public static ARTBNodeIterator createARTBNodeIterator(RDFIterator<ARTBNode> it)
public static ARTResourceIterator createARTResourceIterator(RDFIterator<ARTResource> it)
public static ARTURIResourceIterator createARTURIResourceIterator(RDFIterator<ARTURIResource> it)
public static ARTURIResourceIterator createARTURIResourceIterator(Iterator<ARTURIResource> it)
public static ARTLiteralIterator createARTLiteralIterator(RDFIterator<ARTLiteral> it)
public static ARTLiteralIterator createARTLiteralIterator(Iterator<ARTLiteral> it)
public static ARTStatementIterator createARTStatementIterator(RDFIterator<ARTStatement> it)
public static ARTStatementIterator createARTStatementIterator(Iterator<ARTStatement> it)
public static <T> RDFIterator<T> concat(RDFIterator<T> it1, RDFIterator<T> it2)
T
- it1
- it2
- it1
and
it2
.public static <T> RDFIterator<T> concat(RDFIterator<T> it, T singleton)
it
- singleton
- it
plus the single element
singleton
(tailed to them)public static <T> RDFIterator<T> concat(T singleton, RDFIterator<T> it)
singleton
- it
- it
plus the single element
singleton
(put in the head)public static ARTNodeIterator listDistinct(ARTNodeIterator it)
it
it
- public static ARTURIResourceIterator listDistinct(ARTURIResourceIterator it)
it
it
- public static ARTResourceIterator listDistinct(ARTResourceIterator it)
it
it
- Copyright © 2015 ART Group, University of Rome, Tor Vergata. All Rights Reserved.