de.fau.cs.www8.jadeowlcodec
Class IncomingDocument
java.lang.Object
de.fau.cs.www8.jadeowlcodec.IncomingDocument
- Direct Known Subclasses:
- IncomingMessage, TBoxDocument
public class IncomingDocument
- extends java.lang.Object
Common base class for TBox and ABox owl documents,
does the parsing into DOM and
does the fitting into the namespaces of TBox
- Author:
- Ulf Schreiber
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
doc
protected RDFOWLDocument doc
tBoxVersion
protected TBoxVersion tBoxVersion
IncomingDocument
protected IncomingDocument(java.io.InputStream ins,
TBoxVersion tBoxVersion)
throws org.xml.sax.SAXException,
java.io.IOException
- Throws:
org.xml.sax.SAXException
java.io.IOException
IncomingDocument
protected IncomingDocument(java.lang.String ins,
TBoxVersion tBoxVersion)
throws org.xml.sax.SAXException,
java.io.IOException
- Throws:
org.xml.sax.SAXException
java.io.IOException
adjustNamespacesForTBox
protected void adjustNamespacesForTBox(boolean addBase)
- Make doc namespace-compatible with TBox and learn new namespaces from doc
- Parameters:
addBase - set true if TBox should learn the xml:base uri of doc or false to expand the base URIs this will fail with mixed documents that contain TBox and ABox elements)
adjustMessageNamespaces
protected void adjustMessageNamespaces()
- Make doc namespace-compatible with TBox and learn new namespaces from doc.
xml:base URIs get expanded to full URIs, this method will fail for instances of concepts defined in xml:base
possiblyNamespaceID
protected boolean possiblyNamespaceID(java.lang.String value)
- Can identify a few Strings that would be illegal as namespace names, typically
used to assume that it's a legal URI then
- Parameters:
value - a String that might be a namespace ID
- Returns:
- false if value is obviously no namespace ID
getDoc
public RDFOWLDocument getDoc()
- Returns:
- Returns the doc.
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
getAgentKB
public KnowledgeBase getAgentKB()
Copyright 2007 Moritz Goeb, Bernhard Schiemann, Ulf Schreiber of Chair of Artificial Intelligence, University of Erlangen-Nuremberg