org.ontoware.rdf2go.model
Interface FindableModelSet
- All Known Subinterfaces:
- ModelSet
public interface FindableModelSet
- Author:
- voelkel
findStatements
ClosableIterator<Statement> findStatements(UriOrVariable contextURI,
ResourceOrVariable subject,
UriOrVariable predicate,
NodeOrVariable object)
throws ModelRuntimeException
- Search across all existing models
- Parameters:
contextURI - subject - predicate - object -
- Returns:
-
- Throws:
ModelRuntimeException
findStatements
ClosableIterator<Statement> findStatements(QuadPattern pattern)
throws ModelRuntimeException
- Search across all existing models and retunrs all statements matching the
quad pattern
- Parameters:
pattern -
- Returns:
-
- Throws:
ModelRuntimeException
containsStatements
boolean containsStatements(UriOrVariable contextURI,
ResourceOrVariable subject,
UriOrVariable predicate,
NodeOrVariable object)
throws ModelRuntimeException
- Parameters:
contextURI - subject - predicate - object -
- Returns:
- true, if a Model named 'contextURI' contains the statement
(s,p,o)
- Throws:
ModelRuntimeException
contains
boolean contains(Statement s)
throws ModelRuntimeException
- Parameters:
s - a Statement
- Returns:
- true if the modelset contains a model with context s.getContext()
which contains the statement s. If the context is null, the
default graph is checked.
- Throws:
ModelRuntimeException
countStatements
long countStatements(QuadPattern pattern)
throws ModelRuntimeException
- Parameters:
pattern -
- Returns:
- the number of statements matchingthe pattern. This is for all
graphs matching the context of the pattern (this is none, one or
all graphs). In matching graphs the number of matching statements
is accumulated and returned.
- Throws:
ModelRuntimeException
createQuadPattern
QuadPattern createQuadPattern(UriOrVariable context,
ResourceOrVariable subject,
UriOrVariable predicate,
NodeOrVariable object)
- Parameters:
context - subject - predicate - object -
- Returns:
- a QuadPattern
Copyright © 2005-2008 FZI - Forschungszentrum Informatik | Karlsruhe | Germany. All Rights Reserved.