Interface RDFConsumer

All Known Implementing Classes:
OWLRDFConsumer, OWLRDFConsumerAdapter

public interface RDFConsumer
Receives notifications about triples generated during the parsing process.
  • Method Details

    • startModel

      void startModel(IRI physicalURI)
      Called when model parsing is started.
      Parameters:
      physicalURI - physical URI of the model
    • endModel

      void endModel()
      Called when model parsing is finished.
    • statementWithResourceValue

      void statementWithResourceValue(String subject, String predicate, String object)
      Called when a statement with resource value is added to the model.
      Parameters:
      subject - URI of the subject resource
      predicate - URI of the predicate resource
      object - URI of the object resource
    • statementWithResourceValue

      void statementWithResourceValue(IRI subject, IRI predicate, IRI object)
      Called when a statement with resource value is added to the model.
      Parameters:
      subject - URI of the subject resource
      predicate - URI of the predicate resource
      object - URI of the object resource
    • statementWithLiteralValue

      void statementWithLiteralValue(String subject, String predicate, String object, @Nullable String language, @Nullable String datatype)
      Called when a statement with literal value is added to the model.
      Parameters:
      subject - URI of the subject resource
      predicate - URI of the predicate resource
      object - literal object value
      language - the language
      datatype - the URI of the literal's datatype (may be null)
    • statementWithLiteralValue

      void statementWithLiteralValue(IRI subject, IRI predicate, String object, @Nullable String language, @Nullable IRI datatype)
      Called when a statement with literal value is added to the model.
      Parameters:
      subject - URI of the subject resource
      predicate - URI of the predicate resource
      object - literal object value
      language - the language
      datatype - the URI of the literal's datatype (may be null)
    • logicalURI

      void logicalURI(IRI logicalURI)
      Receives the logical URI of the model.
      Parameters:
      logicalURI - logical URI of the model
    • includeModel

      void includeModel(@Nullable String logicalURI, @Nullable String physicalURI)
      Receives the notification that the model being parsed includes another model with supplied URIs.
      Parameters:
      logicalURI - logical URI of the model
      physicalURI - physical URI of the model
    • remapIRI

      IRI remapIRI(IRI i)
      for iris that need to be mapped to blank nodes, e.g., SWRL rules with an IRI - the IRI should be dropped for such constructs.
      Parameters:
      i - iri to remap if not blank
      Returns:
      blank iri remapping i
    • remapOnlyIfRemapped

      String remapOnlyIfRemapped(String i)
      for iris that have been remapped to blank nodes, e.g., SWRL rules: the triple subject swrl:body object, for example, needs the subject to be remapped consistently.
      Parameters:
      i - iri to remap if not blank
      Returns:
      blank iri remapping i, or i if i has not been remapped earlier.
    • addPrefix

      void addPrefix(String abbreviation, String value)
      Add a prefix to the underlying ontology format, if prefixes are supported.
      Parameters:
      abbreviation - short name for prefix
      value - replacement for short version
    • getConfiguration

      OWLOntologyLoaderConfiguration getConfiguration()
      Returns:
      the loader configuration