org.coode.owl.rdfxml.parser
Class RDFAPITest

java.lang.Object
  extended by org.coode.owl.rdfxml.parser.RDFAPITest
All Implemented Interfaces:
RDFConsumer

public class RDFAPITest
extends java.lang.Object
implements RDFConsumer

Author: Matthew Horridge
The University Of Manchester
Bio-Health Informatics Group
Date: 07-Dec-2006


Constructor Summary
RDFAPITest()
           
 
Method Summary
 void addModelAttribte(java.lang.String string, java.lang.String string1)
          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 string, java.lang.String string1)
          Receives the notification that the model being parsed includes another model with supplied URIs.
 void logicalURI(java.lang.String string)
          Receives the logical URI of the model.
static void main(java.lang.String[] args)
           
 void startModel(java.lang.String string)
          Called when model parsing is started.
 void statementWithLiteralValue(java.lang.String subject, java.lang.String predicate, java.lang.String val, java.lang.String datatype, java.lang.String lang)
          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.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RDFAPITest

public RDFAPITest()
Method Detail

main

public static void main(java.lang.String[] args)

addModelAttribte

public void addModelAttribte(java.lang.String string,
                             java.lang.String string1)
                      throws org.xml.sax.SAXException
Description copied from interface: RDFConsumer
Receives the notification that the attribute and its value has been parsed.

Specified by:
addModelAttribte in interface RDFConsumer
Parameters:
string - the key of the attribute
string1 - the value of the attribute
Throws:
org.xml.sax.SAXException

endModel

public void endModel()
              throws org.xml.sax.SAXException
Description copied from interface: RDFConsumer
Called when model parsing is finished.

Specified by:
endModel in interface RDFConsumer
Throws:
org.xml.sax.SAXException

includeModel

public void includeModel(java.lang.String string,
                         java.lang.String string1)
                  throws org.xml.sax.SAXException
Description copied from interface: RDFConsumer
Receives the notification that the model being parsed includes another model with supplied URIs.

Specified by:
includeModel in interface RDFConsumer
Parameters:
string - logical URI of the model
string1 - physical URI of the model
Throws:
org.xml.sax.SAXException

logicalURI

public void logicalURI(java.lang.String string)
                throws org.xml.sax.SAXException
Description copied from interface: RDFConsumer
Receives the logical URI of the model.

Specified by:
logicalURI in interface RDFConsumer
Parameters:
string - logical URI of the model
Throws:
org.xml.sax.SAXException

startModel

public void startModel(java.lang.String string)
                throws org.xml.sax.SAXException
Description copied from interface: RDFConsumer
Called when model parsing is started.

Specified by:
startModel in interface RDFConsumer
Parameters:
string - physical URI of the model
Throws:
org.xml.sax.SAXException

statementWithLiteralValue

public void statementWithLiteralValue(java.lang.String subject,
                                      java.lang.String predicate,
                                      java.lang.String val,
                                      java.lang.String datatype,
                                      java.lang.String lang)
                               throws org.xml.sax.SAXException
Description copied from interface: RDFConsumer
Called when a statement with literal value is added to the model.

Specified by:
statementWithLiteralValue in interface RDFConsumer
Parameters:
subject - URI of the subject resource
predicate - URI of the predicate resource
val - literal object value
datatype - the language
lang - the URI of the literal's datatype (may be null)
Throws:
org.xml.sax.SAXException

statementWithResourceValue

public void statementWithResourceValue(java.lang.String subject,
                                       java.lang.String predicate,
                                       java.lang.String object)
                                throws org.xml.sax.SAXException
Description copied from interface: RDFConsumer
Called when a statement with resource value is added to the model.

Specified by:
statementWithResourceValue in interface RDFConsumer
Parameters:
subject - URI of the subject resource
predicate - URI of the predicate resource
object - URI of the object resource
Throws:
org.xml.sax.SAXException