Package cz.cvut.kbss.ontodriver.jena
Class JenaContainers
java.lang.Object
cz.cvut.kbss.ontodriver.jena.JenaContainers
- All Implemented Interfaces:
Containers
-
Constructor Summary
ConstructorsConstructorDescriptionJenaContainers
(JenaAdapter adapter, Procedure beforeCallback, Procedure afterCallback) -
Method Summary
Modifier and TypeMethodDescription<T> void
persistContainer
(ContainerValueDescriptor<T> descriptor) Persists values to an RDF container specified by the given descriptor.Collection<Axiom<?>>
readContainer
(ContainerDescriptor descriptor) Reads values from an RDF container specified by the given descriptor.<T> void
updateContainer
(ContainerValueDescriptor<T> descriptor) Updates values in an RDF container specified by the given descriptor.
-
Constructor Details
-
JenaContainers
-
-
Method Details
-
readContainer
public Collection<Axiom<?>> readContainer(ContainerDescriptor descriptor) throws OntoDriverException Description copied from interface:Containers
Reads values from an RDF container specified by the given descriptor.- Specified by:
readContainer
in interfaceContainers
- Parameters:
descriptor
- Container descriptor- Returns:
- Collection of axioms representing the values in the container. The property of the axioms corresponds to the property specified in the container descriptor (i.e., property reference the container from the owner).
- Throws:
OntoDriverException
- If an ontology access error occurs
-
persistContainer
Description copied from interface:Containers
Persists values to an RDF container specified by the given descriptor.- Specified by:
persistContainer
in interfaceContainers
- Type Parameters:
T
- Container value type- Parameters:
descriptor
- Container descriptor- Throws:
OntoDriverException
- If an ontology access error occurs
-
updateContainer
Description copied from interface:Containers
Updates values in an RDF container specified by the given descriptor.- Specified by:
updateContainer
in interfaceContainers
- Type Parameters:
T
- Container value type- Parameters:
descriptor
- Container descriptor- Throws:
OntoDriverException
- If an ontology access error occurs
-