org.semanticweb.owlapi.rdf.syntax
Interface RDFConsumer

All Known Implementing Classes:
OWLRDFConsumer, OWLRDFConsumerAdapter

public interface RDFConsumer

Receives notifications about triples generated during the parsing process.


Method Summary
 void addModelAttribte(java.lang.String key, java.lang.String value)
          Receives the notification that the attribute and its value has been parsed.
 void endModel()
          Called when model parsing is finished.
 void includeModel(java.lang.String logicalURI, java.lang.String physicalURI)
          Receives the notification that the model being parsed includes another model with supplied URIs.
 void logicalURI(java.lang.String logicalURI)
          Receives the logical URI of the model.
 void startModel(java.lang.String physicalURI)
          Called when model parsing is started.
 void statementWithLiteralValue(java.lang.String subject, java.lang.String predicate, java.lang.String object, java.lang.String language, java.lang.String datatype)
          Called when a statement with literal value is added to the model.
 void statementWithResourceValue(java.lang.String subject, java.lang.String predicate, java.lang.String object)
          Called when a statement with resource value is added to the model.
 

Method Detail

startModel

void startModel(java.lang.String physicalURI)
                throws org.xml.sax.SAXException
Called when model parsing is started.

Parameters:
physicalURI - physical URI of the model
Throws:
org.xml.sax.SAXException

endModel

void endModel()
              throws org.xml.sax.SAXException
Called when model parsing is finished.

Throws:
org.xml.sax.SAXException

statementWithResourceValue

void statementWithResourceValue(java.lang.String subject,
                                java.lang.String predicate,
                                java.lang.String object)
                                throws org.xml.sax.SAXException
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
Throws:
org.xml.sax.SAXException

statementWithLiteralValue

void statementWithLiteralValue(java.lang.String subject,
                               java.lang.String predicate,
                               java.lang.String object,
                               java.lang.String language,
                               java.lang.String datatype)
                               throws org.xml.sax.SAXException
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)
Throws:
org.xml.sax.SAXException

logicalURI

void logicalURI(java.lang.String logicalURI)
                throws org.xml.sax.SAXException
Receives the logical URI of the model.

Parameters:
logicalURI - logical URI of the model
Throws:
org.xml.sax.SAXException

includeModel

void includeModel(java.lang.String logicalURI,
                  java.lang.String physicalURI)
                  throws org.xml.sax.SAXException
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
Throws:
org.xml.sax.SAXException

addModelAttribte

void addModelAttribte(java.lang.String key,
                      java.lang.String value)
                      throws org.xml.sax.SAXException
Receives the notification that the attribute and its value has been parsed.

Parameters:
key - the key of the attribute
value - the value of the attribute
Throws:
org.xml.sax.SAXException