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 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 loaded
      context - Context from which to load the property values
      includeInferred - 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 OntoDriverException
      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.

      Parameters:
      individual - Property subject
      context - Context into which to store the property values
      properties - The values to add
      Throws:
      OntoDriverException - When storage access error occurs
    • removeProperties

      void removeProperties(NamedResource individual, URI context, Map<Assertion,Set<Value<?>>> properties) throws OntoDriverException
      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.

      Parameters:
      individual - Property subject
      context - Context from which to remove the property values
      properties - The values to remove
      Throws:
      OntoDriverException - When storage access error occurs