| java.lang.Object com.hp.hpl.jena.rdf.model.impl.ModelReifier
ModelReifier | public class ModelReifier (Code) | | This class impedance-matches the reification requests of Model[Com] to the operations
supplied by it's Graph's Reifier.
author: kers |
Field Summary | |
final protected Map1 | mapToRS A mapper that maps modes to their corresponding ReifiedStatement objects. | public Reifier | reifier |
Constructor Summary | |
public | ModelReifier(ModelCom model) establish the internal state of this ModelReifier: the associated
Model[Com] and its graph's Reifier. |
mapToRS | final protected Map1 mapToRS(Code) | | A mapper that maps modes to their corresponding ReifiedStatement objects. This
cannot be static: getRS cannot be static, because the mapping is model-specific.
|
ModelReifier | public ModelReifier(ModelCom model)(Code) | | establish the internal state of this ModelReifier: the associated
Model[Com] and its graph's Reifier.
|
createReifiedStatement | public ReifiedStatement createReifiedStatement(Statement s)(Code) | | Answer a fresh reification of a statement associated with a fresh bnode.
Parameters: s - a Statement to reifiy a reified statement object who's name is a new bnode |
createReifiedStatement | public ReifiedStatement createReifiedStatement(String uri, Statement s)(Code) | | Answer a reification of a statement with a given uri. If that uri
already reifies a distinct Statement, throw an AlreadyReifiedException.
Parameters: uri - the URI of the resource which will reify s Parameters: s - the Statement to reify a reified statement object associating uri with s . throws: AlreadyReifiedException - if uri already reifies something else. |
getAnyReifiedStatement | public Resource getAnyReifiedStatement(Statement s)(Code) | | Find any existing reified statement that reifies a givem statement. If there isn't one,
create one.
Parameters: s - a Statement for which to find [or create] a reification a reification for s, re-using an existing one if possible |
getHiddenStatements | public Model getHiddenStatements()(Code) | | Answer a model that consists of the hidden reification statements of this model.
a new model containing the hidden statements of this model |
getHiddenTriples | protected static Graph getHiddenTriples(Model m)(Code) | | Parameters: mGraph - |
isReified | public boolean isReified(FrontsTriple s)(Code) | | Answer true iff a given statement is reified in this model
Parameters: s - the statement for which a reification is sought true iff s has a reification in this model |
listReifiedStatements | public RSIterator listReifiedStatements()(Code) | | Answer an iterator that iterates over all the reified statements
in this model.
an iterator over all the reifications of the model. |
listReifiedStatements | public RSIterator listReifiedStatements(FrontsTriple s)(Code) | | Answer an iterator that iterates over all the reified statements in
this model that reify a given statement.
Parameters: s - the statement whose reifications are sought. an iterator over the reifications of s. |
noteIfReified | public void noteIfReified(RDFNode s, RDFNode p, RDFNode o)(Code) | | the triple (s, p, o) has been asserted into the model. Any reified statements
among them need to be added to this model.
|
removeAllReifications | public void removeAllReifications(FrontsTriple s)(Code) | | Remove all the reifications of a given statement in this model, whatever
their associated resources.
Parameters: s - the statement whose reifications are to be removed |
removeReification | public void removeReification(ReifiedStatement rs)(Code) | | Remove a given reification from this model. Other reifications of the same statement
are untouched.
Parameters: rs - the reified statement to be removed |
withHiddenStatements | public static Model withHiddenStatements(Model m)(Code) | | Answer a version of the model, but with all its reifiying statements
added.
Parameters: m - a model that may have reified statements a new model, the union of m and the reification statements of m |
|
|