Package cz.cvut.kbss.ontodriver
Interface Properties
- All Known Implementing Classes:
JenaProperties
,OwlapiProperties
,Rdf4jProperties
public interface Properties
This interface provides access to properties not mapped by the object model.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addProperties
(NamedResource individual, URI context, Map<Assertion, Set<Value<?>>> properties) Adds the specified property values into the ontology.Collection<Axiom<?>>
getProperties
(NamedResource individual, URI context, boolean includeInferred) Loads property values for the specified individual.void
removeProperties
(NamedResource individual, URI context, Map<Assertion, Set<Value<?>>> properties) Removes the specified property values from the ontology.
-
Method Details
-
getProperties
Collection<Axiom<?>> getProperties(NamedResource individual, URI context, boolean includeInferred) throws OntoDriverException Loads property values for the specified individual.This method essentially does the same as
Connection.find(cz.cvut.kbss.ontodriver.descriptor.AxiomDescriptor)
. It is up to the OOM provider to decide which values are part of the object model and which are unmapped.- Parameters:
individual
- Individual for which property values should be loadedcontext
- Context from which to load the property valuesincludeInferred
- Whether to included inferred knowledge- Returns:
- Collection of axioms representing property values
- Throws:
OntoDriverException
- When storage access error occurs
-
addProperties
void addProperties(NamedResource individual, URI context, Map<Assertion, Set<Value<?>>> properties) throws OntoDriverExceptionAdds the specified property values into the ontology.The property values are either URIs (in case of object properties) or data literals of the appropriate Java type.
- Parameters:
individual
- Property subjectcontext
- Context into which to store the property valuesproperties
- The values to add- Throws:
OntoDriverException
- When storage access error occurs
-
removeProperties
void removeProperties(NamedResource individual, URI context, Map<Assertion, Set<Value<?>>> properties) throws OntoDriverExceptionRemoves the specified property values from the ontology.The property values are either URIs (in case of object properties) or data literals of the appropriate Java type.
- Parameters:
individual
- Property subjectcontext
- Context from which to remove the property valuesproperties
- The values to remove- Throws:
OntoDriverException
- When storage access error occurs
-