Class JenaProperties

java.lang.Object
cz.cvut.kbss.ontodriver.jena.JenaProperties
All Implemented Interfaces:
Properties

public class JenaProperties extends Object implements Properties
  • 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 interface Properties
      Parameters:
      individual - Individual for which property values should be loaded
      context - Context from which to load the property values
      includeInferred - 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 JenaDriverException
      Description 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 interface Properties
      Parameters:
      individual - Property subject
      context - Context into which to store the property values
      properties - The values to add
      Throws:
      JenaDriverException
    • removeProperties

      public void removeProperties(NamedResource individual, URI context, Map<Assertion,Set<Value<?>>> properties) throws JenaDriverException
      Description 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 interface Properties
      Parameters:
      individual - Property subject
      context - Context from which to remove the property values
      properties - The values to remove
      Throws:
      JenaDriverException