| java.lang.Object com.hp.hpl.jena.graph.impl.GraphBase com.hp.hpl.jena.graph.compose.CompositionBase
All known Subclasses: com.hp.hpl.jena.graph.compose.Polyadic, com.hp.hpl.jena.graph.compose.Dyadic,
CompositionBase | abstract public class CompositionBase extends GraphBase (Code) | |
Base class for graphs that are composed of multiple sub-graphs. This is to provide
a home for shared functionality that was previously in
Dyadic before
refactoring.
author: Ian Dickinson, moved kers' code from Dyadic to this class, added commentage author: Chris Dollin (kers) version: CVS $Id: CompositionBase.java,v 1.15 2008/01/02 12:10:19 andy_seaborne Exp $ |
butNot | public static ClosableIterator butNot(ClosableIterator a, ClosableIterator b)(Code) | |
Answer an iterator over the elements of iterator a that are not members of iterator b.
As a side-effect, iterator b will be closed.
Parameters: a - An iterator that will be filtered by rejecting the elements of b Parameters: b - A closable iterator The iteration of elements in a but not in b. |
ifIn | public static Filter ifIn(ClosableIterator i)(Code) | |
Answer a
Filter that will accept any object that is an element of
iterator i. As a side-effect, i will be evaluated and closed.
Parameters: i - A closable iterator A Filter that will accept any object in iterator i. |
ifIn | public static Filter ifIn(Graph g)(Code) | |
Answer a
Filter that will accept any triple that is an edge of
graph g.
Parameters: g - A graph A Filter that will accept any triple that is an edge in g. |
recording | public static ExtendedIterator recording(ClosableIterator i, Set seen)(Code) | |
Answer an iterator that will record every element delived by next() in
the set seen .
Parameters: i - A closable iterator Parameters: seen - A set that will record each element of i in turn An iterator that records the elements of i. |
reject | public static Filter reject(ClosableIterator i)(Code) | |
Answer a
Filter that will reject any element that is a member of iterator i.
As a side-effect, i will be closed.
Parameters: i - A closable iterator A Filter that will accept any object not a member of i. |
rejecting | public static ExtendedIterator rejecting(ExtendedIterator i, Set seen)(Code) | |
Answer an iterator over the elements of iterator i that are not in the set seen .
Parameters: i - An extended iterator Parameters: seen - A set of objects An iterator over the elements of i that are not in the set seen . |
|
|