Package cz.cvut.kbss.ontodriver.jena
Class JenaProperties
java.lang.Object
cz.cvut.kbss.ontodriver.jena.JenaProperties
- All Implemented Interfaces:
Properties
-
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
public Collection<Axiom<?>> getProperties(NamedResource individual, URI context, boolean includeInferred) throws JenaDriverException Description copied from interface:Properties
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.- Specified by:
getProperties
in interfaceProperties
- 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:
JenaDriverException
-
addProperties
public void addProperties(NamedResource individual, URI context, Map<Assertion, Set<Value<?>>> properties) throws JenaDriverExceptionDescription copied from interface:Properties
Adds 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.
- Specified by:
addProperties
in interfaceProperties
- Parameters:
individual
- Property subjectcontext
- Context into which to store the property valuesproperties
- The values to add- Throws:
JenaDriverException
-
removeProperties
public void removeProperties(NamedResource individual, URI context, Map<Assertion, Set<Value<?>>> properties) throws JenaDriverExceptionDescription copied from interface:Properties
Removes 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.
- Specified by:
removeProperties
in interfaceProperties
- Parameters:
individual
- Property subjectcontext
- Context from which to remove the property valuesproperties
- The values to remove- Throws:
JenaDriverException
-