Package cz.cvut.kbss.ontodriver.owlapi
Class OwlapiContainers
java.lang.Object
cz.cvut.kbss.ontodriver.owlapi.OwlapiContainers
- All Implemented Interfaces:
Containers
-
Constructor Summary
ConstructorsConstructorDescriptionOwlapiContainers(OwlapiAdapter adapter, Procedure beforeCallback, Procedure afterChangeCallback) -
Method Summary
Modifier and TypeMethodDescription<T> voidpersistContainer(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> voidupdateContainer(ContainerValueDescriptor<T> descriptor) Updates values in an RDF container specified by the given descriptor.
-
Constructor Details
-
OwlapiContainers
public OwlapiContainers(OwlapiAdapter adapter, Procedure beforeCallback, Procedure afterChangeCallback)
-
-
Method Details
-
readContainer
public Collection<Axiom<?>> readContainer(ContainerDescriptor descriptor) throws OntoDriverException Description copied from interface:ContainersReads values from an RDF container specified by the given descriptor.- Specified by:
readContainerin 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:ContainersPersists values to an RDF container specified by the given descriptor.- Specified by:
persistContainerin interfaceContainers- Type Parameters:
T- Container value type- Parameters:
descriptor- Container descriptor- Throws:
OntoDriverException- If an ontology access error occurs
-
updateContainer
Description copied from interface:ContainersUpdates values in an RDF container specified by the given descriptor.- Specified by:
updateContainerin interfaceContainers- Type Parameters:
T- Container value type- Parameters:
descriptor- Container descriptor- Throws:
OntoDriverException- If an ontology access error occurs
-