public class ModelReifier extends Object
Constructor and Description |
---|
ModelReifier(ModelCom model)
establish the internal state of this ModelReifier: the associated
Model[Com] and its graph's Reifier.
|
Modifier and Type | Method and Description |
---|---|
ReifiedStatement |
createReifiedStatement(Statement s)
Answer a fresh reification of a statement associated with a fresh bnode.
|
ReifiedStatement |
createReifiedStatement(String uri,
Statement s)
Answer a reification of a statement with a given uri.
|
Resource |
getAnyReifiedStatement(Statement s)
Find any existing reified statement that reifies a givem statement.
|
boolean |
isReified(FrontsTriple s)
Answer true iff a given statement is reified in this model
|
RSIterator |
listReifiedStatements()
Answer an iterator that iterates over all the reified statements
in this model.
|
RSIterator |
listReifiedStatements(FrontsTriple s)
Answer an iterator that iterates over all the reified statements in
this model that reify a given statement.
|
void |
noteIfReified(RDFNode s,
RDFNode p,
RDFNode o)
the triple (s, p, o) has been asserted into the model.
|
void |
removeAllReifications(FrontsTriple s)
Remove all the reifications of a given statement in this model, whatever
their associated resources.
|
void |
removeReification(ReifiedStatement rs)
Remove a given reification from this model.
|
public ModelReifier(ModelCom model)
public ReifiedStatement createReifiedStatement(Statement s)
s
- a Statement to reifiypublic ReifiedStatement createReifiedStatement(String uri, Statement s)
uri
- the URI of the resource which will reify s
s
- the Statement to reifyuri
with s
.AlreadyReifiedException
- if uri already reifies something else.public Resource getAnyReifiedStatement(Statement s)
s
- a Statement for which to find [or create] a reificationpublic boolean isReified(FrontsTriple s)
s
- the statement for which a reification is soughtpublic void removeAllReifications(FrontsTriple s)
s
- the statement whose reifications are to be removedpublic void removeReification(ReifiedStatement rs)
rs
- the reified statement to be removedpublic RSIterator listReifiedStatements()
public RSIterator listReifiedStatements(FrontsTriple s)
s
- the statement whose reifications are sought.Licenced under the Apache License, Version 2.0