public interface ReificationSupport
Modifier and Type | Method and Description |
---|---|
BlankNode |
addReificationOf(Statement statement)
A convenience function for addReficationOf( createBlankNode(), statement
);
|
Resource |
addReificationOf(Statement statement,
Resource resource)
Reifies the statement, whether the statement was present in the model or
not.
|
void |
deleteReification(Resource reificationResource)
Delete reifications made by this resource.
|
Collection<Resource> |
getAllReificationsOf(Statement statement) |
boolean |
hasReifications(Statement stmt) |
BlankNode addReificationOf(Statement statement)
statement
- Resource addReificationOf(Statement statement, Resource resource)
(resource) rdf:type rdf:Statement .
(resource) rdf:subject (statement.getSubject()) .
(resource) rdf:predicate (statement.getPredicate()) .
(resource) rdf:object (statement.getObject()) .
statement
- which will be reifiedresource
- used to represent the reified statementvoid deleteReification(Resource reificationResource)
(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.
Note that this method deletes the reification from all contexts.reificationResource
- Collection<Resource> getAllReificationsOf(Statement statement)
statement
- boolean hasReifications(Statement stmt)
stmt
-
?reificationResource rdf:type rdf:Statement .
?reificationResource rdf:subject ?s .
?reificationResource rdf:predicate ?p .
?reificationResource rdf:object ?o .
Copyright © 2005–2017 IT-Consulting Dr. Max Völkel | Project started at FZI Forschungszentrum Informatik, www.fzi.de. All rights reserved.