| org.ontoware.rdf2go.model.ReificationSupport
ReificationSupport | public interface ReificationSupport (Code) | | Support for reification, as defined in
http://www.w3.org/TR/rdf-mt/#Reif author: voelkel |
createReficationOf | BlankNode createReficationOf(Statement statement)(Code) | | A convenience function for createReficationOf( createBlankNode(),
statement );
Parameters: statement - a new BlankNode which holds the reification of the givenstatement. |
createReficationOf | Resource createReficationOf(Statement statement, Resource resource)(Code) | | Reifies the statement, whether the statement was present in the model or
not. The statement itself is never added to the model, but it might have
been in the model before this method call. This method creates only
triples like (resource )rdf:subject s; rdf:predicate p; rdf:object o.
Where s,p, and o are taken from the given statement.
Adds the following statemens, as defined in
http://www.w3.org/TR/rdf-mt/#Reif
(resource) rdf:type rdf:Statement .
(resource) rdf:subject (statement.getSubject()) .
(resource) rdf:predicate (statement.getPredicate()) .
(resource) rdf:object (statement.getObject()) .
Parameters: statement - which will be reified Parameters: resource - used to represent the reified statement the given resource |
deleteReification | void deleteReification(Resource reificationResource)(Code) | | Delete reifications made by this resource. More technically, this method
will remove the following patterns:
(reificationResource) rdf:type rdf:Statement .
(reificationResource) rdf:subject * .
(reificationResource) rdf:predicate * .
(reificationResource) rdf:object * .
Note that one resource might have been used in several reifications.
Although semantic nonsense, this can happen. This method cleans up also these cases.
Parameters: reificationResource - |
getAllReificationsOf | Collection<Resource> getAllReificationsOf(Statement statement)(Code) | | Parameters: statement - a collection which contains all resources that are a reificationof the given statement. |
hasReifications | boolean hasReifications(Statement stmt)(Code) | | Parameters: stmt - true if the model contains results to the query?reificationResource rdf:type rdf:Statement . ?reificationResource rdf:subject ?s .?reificationResource rdf:predicate ?p .?reificationResource rdf:object ?o .
|
|
|