Package cz.cvut.kbss.ontodriver
Interface Containers
- All Known Implementing Classes:
JenaContainers
,OwlapiContainers
,Rdf4jContainers
public interface Containers
Interface for managing RDF containers.
-
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.
-
Method Details
-
readContainer
Reads values from an RDF container specified by the given descriptor.- 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 occursIllegalStateException
- If called on a closed connection
-
persistContainer
Persists values to an RDF container specified by the given descriptor.- Type Parameters:
T
- Container value type- Parameters:
descriptor
- Container descriptor- Throws:
OntoDriverException
- If an ontology access error occursIllegalStateException
- If called on a closed connection
-
updateContainer
Updates values in an RDF container specified by the given descriptor.- Type Parameters:
T
- Container value type- Parameters:
descriptor
- Container descriptor- Throws:
OntoDriverException
- If an ontology access error occursIllegalStateException
- If called on a closed connection
-