de.fau.cs.www8.jadeowlcodec
Class RDFOWLDocument

java.lang.Object
  extended by de.fau.cs.www8.jadeowlcodec.RDFOWLDocument
All Implemented Interfaces:
org.w3c.dom.Document, org.w3c.dom.Node

public class RDFOWLDocument
extends java.lang.Object


Field Summary
 
Fields inherited from interface org.w3c.dom.Node
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE
 
Constructor Summary
RDFOWLDocument(org.w3c.dom.Document doc)
           
 
Method Summary
 org.w3c.dom.Node adoptNode(org.w3c.dom.Node arg0)
           
 org.w3c.dom.Node appendChild(org.w3c.dom.Node arg0)
           
 boolean checkConsistency()
          check consistency and release created kb
 boolean checkConsistency(ReasonerKBHandle kb)
          check consistency and keep created kb
 boolean checkConsistency(java.lang.String additionalDig)
          check consistency with some additional dig code and release created kb
 org.w3c.dom.Node cloneNode(boolean arg0)
           
 short compareDocumentPosition(org.w3c.dom.Node arg0)
           
 org.w3c.dom.Attr createAttribute(java.lang.String arg0)
           
 org.w3c.dom.Attr createAttributeNS(java.lang.String arg0, java.lang.String arg1)
           
 org.w3c.dom.CDATASection createCDATASection(java.lang.String arg0)
           
 org.w3c.dom.Comment createComment(java.lang.String arg0)
           
 org.w3c.dom.DocumentFragment createDocumentFragment()
           
 org.w3c.dom.Element createElement(java.lang.String arg0)
           
 org.w3c.dom.Element createElementNS(java.lang.String arg0, java.lang.String arg1)
           
 org.w3c.dom.EntityReference createEntityReference(java.lang.String arg0)
           
 org.w3c.dom.ProcessingInstruction createProcessingInstruction(java.lang.String arg0, java.lang.String arg1)
           
 org.w3c.dom.Text createTextNode(java.lang.String arg0)
           
 org.w3c.dom.NamedNodeMap getAttributes()
           
 java.lang.String getBaseURI()
           
 org.w3c.dom.NodeList getChildNodes()
           
 org.w3c.dom.Document getDigTellDoc(Uri.Other kbUri)
           
 java.lang.String getDigTellString(Uri.Other kbUri)
           
 org.w3c.dom.DocumentType getDoctype()
           
 org.w3c.dom.Element getDocumentElement()
           
 java.lang.String getDocumentURI()
           
 org.w3c.dom.DOMConfiguration getDomConfig()
           
 org.w3c.dom.Element getElementById(java.lang.String arg0)
           
 org.w3c.dom.NodeList getElementsByTagName(java.lang.String arg0)
           
 org.w3c.dom.NodeList getElementsByTagNameNS(java.lang.String arg0, java.lang.String arg1)
           
 java.lang.Object getFeature(java.lang.String arg0, java.lang.String arg1)
           
 org.w3c.dom.Node getFirstChild()
           
 org.w3c.dom.DOMImplementation getImplementation()
           
 java.lang.String getInputEncoding()
           
 org.w3c.dom.Node getLastChild()
           
 java.lang.String getLocalName()
           
 org.w3c.dom.NamedNodeMap getNameSpaceAttributes()
           
 java.lang.String getNamespaceKey(java.lang.String value)
          gets namespace by uri
 java.lang.String getNamespaceURI()
           
 java.lang.String getNamespaceValue(java.lang.String key)
           
 org.w3c.dom.Node getNextSibling()
           
 java.lang.String getNodeName()
           
 short getNodeType()
           
 java.lang.String getNodeValue()
           
 org.w3c.dom.Element getOntologyElement()
           
 org.w3c.dom.Document getOwnerDocument()
           
 org.w3c.dom.Node getParentNode()
           
 java.lang.String getPrefix()
           
 org.w3c.dom.Node getPreviousSibling()
           
 boolean getStrictErrorChecking()
           
 java.lang.String getTextContent()
           
 Uri.Other getUri()
           
 java.lang.Object getUserData(java.lang.String arg0)
           
 java.lang.String getXmlEncoding()
           
 boolean getXmlStandalone()
           
 java.lang.String getXmlVersion()
           
 boolean hasAttributes()
           
 boolean hasChildNodes()
           
 void hideImports()
          takes the "owl:imports" statements out of the dom, used for simple dig generation
 org.w3c.dom.Node importNode(org.w3c.dom.Node arg0, boolean arg1)
           
 org.w3c.dom.Node insertBefore(org.w3c.dom.Node arg0, org.w3c.dom.Node arg1)
           
 boolean isDefaultNamespace(java.lang.String arg0)
           
 boolean isEqualNode(org.w3c.dom.Node arg0)
           
 boolean isSameNode(org.w3c.dom.Node arg0)
           
 boolean isSupported(java.lang.String arg0, java.lang.String arg1)
           
 java.lang.String lookupNamespaceURI(java.lang.String arg0)
           
 java.lang.String lookupPrefix(java.lang.String arg0)
           
static RDFOWLDocument makeOWLDocument()
           
 void normalize()
           
 void normalizeDocument()
           
 org.w3c.dom.Node removeChild(org.w3c.dom.Node arg0)
           
 void removeNamespace(java.lang.String key)
          removes namespace declaration
 org.w3c.dom.Node renameNode(org.w3c.dom.Node arg0, java.lang.String arg1, java.lang.String arg2)
           
 org.w3c.dom.Node replaceChild(org.w3c.dom.Node arg0, org.w3c.dom.Node arg1)
           
 void setDocumentURI(java.lang.String arg0)
           
 void setNamespace(java.lang.String key, java.lang.String value)
          sets namespace in key to uri value
 void setNodeValue(java.lang.String arg0)
           
 void setPrefix(java.lang.String arg0)
           
 void setStrictErrorChecking(boolean arg0)
           
 void setTextContent(java.lang.String arg0)
           
 java.lang.Object setUserData(java.lang.String arg0, java.lang.Object arg1, org.w3c.dom.UserDataHandler arg2)
           
 void setXmlStandalone(boolean arg0)
           
 void setXmlVersion(java.lang.String arg0)
           
 ReasonerKBHandle tellInto(ReasonerKBHandle kb)
           
 void unhideImports()
          puts imports hidden with hideImports back in the dom
 void writeDigTellContent(java.io.StringWriter w)
           
 void writeDigTellContent(java.io.Writer w)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RDFOWLDocument

public RDFOWLDocument(org.w3c.dom.Document doc)
Method Detail

makeOWLDocument

public static RDFOWLDocument makeOWLDocument()

getNamespaceValue

public java.lang.String getNamespaceValue(java.lang.String key)
Parameters:
key - Namespace name including "xmlns:" prefix (or "xml:base")
Returns:
Namespace URI

getNamespaceKey

public java.lang.String getNamespaceKey(java.lang.String value)
gets namespace by uri

Parameters:
value - string value of the expanded form of the namespace
Returns:
namespace name including "xmlns:" prefix (or "xml:base")

getNameSpaceAttributes

public org.w3c.dom.NamedNodeMap getNameSpaceAttributes()

setNamespace

public void setNamespace(java.lang.String key,
                         java.lang.String value)
sets namespace in key to uri value

Parameters:
key - namespace name including "xmlns:" prefix (or is "xml:base")
value -

removeNamespace

public void removeNamespace(java.lang.String key)
removes namespace declaration

Parameters:
key - namespace name including "xmlns:" prefix (or is "xml:base")

getOntologyElement

public org.w3c.dom.Element getOntologyElement()

tellInto

public ReasonerKBHandle tellInto(ReasonerKBHandle kb)
Parameters:
kb - a ReasonerKBHandle
Returns:
the existing uri or the new uri (if parameter uri was null) or null (in case of failure)

checkConsistency

public boolean checkConsistency()
check consistency and release created kb

Returns:
true if successful erlse false

checkConsistency

public boolean checkConsistency(java.lang.String additionalDig)
check consistency with some additional dig code and release created kb

Parameters:
additionalDig - some dig that should be checked together with this RDFOWLDocument
Returns:
true if successful erlse false

checkConsistency

public boolean checkConsistency(ReasonerKBHandle kb)
check consistency and keep created kb

Parameters:
kb - a ReasonerKBHandle
Returns:
true if successful, else false

getUri

public Uri.Other getUri()

getDigTellString

public java.lang.String getDigTellString(Uri.Other kbUri)

getDigTellDoc

public org.w3c.dom.Document getDigTellDoc(Uri.Other kbUri)

writeDigTellContent

public void writeDigTellContent(java.io.StringWriter w)

writeDigTellContent

public void writeDigTellContent(java.io.Writer w)
                         throws java.io.IOException
Throws:
java.io.IOException

hideImports

public void hideImports()
takes the "owl:imports" statements out of the dom, used for simple dig generation


unhideImports

public void unhideImports()
puts imports hidden with hideImports back in the dom


adoptNode

public org.w3c.dom.Node adoptNode(org.w3c.dom.Node arg0)
                           throws org.w3c.dom.DOMException
Specified by:
adoptNode in interface org.w3c.dom.Document
Throws:
org.w3c.dom.DOMException

appendChild

public org.w3c.dom.Node appendChild(org.w3c.dom.Node arg0)
                             throws org.w3c.dom.DOMException
Specified by:
appendChild in interface org.w3c.dom.Node
Throws:
org.w3c.dom.DOMException

cloneNode

public org.w3c.dom.Node cloneNode(boolean arg0)
Specified by:
cloneNode in interface org.w3c.dom.Node

compareDocumentPosition

public short compareDocumentPosition(org.w3c.dom.Node arg0)
                              throws org.w3c.dom.DOMException
Specified by:
compareDocumentPosition in interface org.w3c.dom.Node
Throws:
org.w3c.dom.DOMException

createAttribute

public org.w3c.dom.Attr createAttribute(java.lang.String arg0)
                                 throws org.w3c.dom.DOMException
Specified by:
createAttribute in interface org.w3c.dom.Document
Throws:
org.w3c.dom.DOMException

createAttributeNS

public org.w3c.dom.Attr createAttributeNS(java.lang.String arg0,
                                          java.lang.String arg1)
                                   throws org.w3c.dom.DOMException
Specified by:
createAttributeNS in interface org.w3c.dom.Document
Throws:
org.w3c.dom.DOMException

createCDATASection

public org.w3c.dom.CDATASection createCDATASection(java.lang.String arg0)
                                            throws org.w3c.dom.DOMException
Specified by:
createCDATASection in interface org.w3c.dom.Document
Throws:
org.w3c.dom.DOMException

createComment

public org.w3c.dom.Comment createComment(java.lang.String arg0)
Specified by:
createComment in interface org.w3c.dom.Document

createDocumentFragment

public org.w3c.dom.DocumentFragment createDocumentFragment()
Specified by:
createDocumentFragment in interface org.w3c.dom.Document

createElement

public org.w3c.dom.Element createElement(java.lang.String arg0)
                                  throws org.w3c.dom.DOMException
Specified by:
createElement in interface org.w3c.dom.Document
Throws:
org.w3c.dom.DOMException

createElementNS

public org.w3c.dom.Element createElementNS(java.lang.String arg0,
                                           java.lang.String arg1)
                                    throws org.w3c.dom.DOMException
Specified by:
createElementNS in interface org.w3c.dom.Document
Throws:
org.w3c.dom.DOMException

createEntityReference

public org.w3c.dom.EntityReference createEntityReference(java.lang.String arg0)
                                                  throws org.w3c.dom.DOMException
Specified by:
createEntityReference in interface org.w3c.dom.Document
Throws:
org.w3c.dom.DOMException

createProcessingInstruction

public org.w3c.dom.ProcessingInstruction createProcessingInstruction(java.lang.String arg0,
                                                                     java.lang.String arg1)
                                                              throws org.w3c.dom.DOMException
Specified by:
createProcessingInstruction in interface org.w3c.dom.Document
Throws:
org.w3c.dom.DOMException

createTextNode

public org.w3c.dom.Text createTextNode(java.lang.String arg0)
Specified by:
createTextNode in interface org.w3c.dom.Document

getAttributes

public org.w3c.dom.NamedNodeMap getAttributes()
Specified by:
getAttributes in interface org.w3c.dom.Node

getBaseURI

public java.lang.String getBaseURI()
Specified by:
getBaseURI in interface org.w3c.dom.Node

getChildNodes

public org.w3c.dom.NodeList getChildNodes()
Specified by:
getChildNodes in interface org.w3c.dom.Node

getDoctype

public org.w3c.dom.DocumentType getDoctype()
Specified by:
getDoctype in interface org.w3c.dom.Document

getDocumentElement

public org.w3c.dom.Element getDocumentElement()
Specified by:
getDocumentElement in interface org.w3c.dom.Document

getDocumentURI

public java.lang.String getDocumentURI()
Specified by:
getDocumentURI in interface org.w3c.dom.Document

getDomConfig

public org.w3c.dom.DOMConfiguration getDomConfig()
Specified by:
getDomConfig in interface org.w3c.dom.Document

getElementById

public org.w3c.dom.Element getElementById(java.lang.String arg0)
Specified by:
getElementById in interface org.w3c.dom.Document

getElementsByTagName

public org.w3c.dom.NodeList getElementsByTagName(java.lang.String arg0)
Specified by:
getElementsByTagName in interface org.w3c.dom.Document

getElementsByTagNameNS

public org.w3c.dom.NodeList getElementsByTagNameNS(java.lang.String arg0,
                                                   java.lang.String arg1)
Specified by:
getElementsByTagNameNS in interface org.w3c.dom.Document

getFeature

public java.lang.Object getFeature(java.lang.String arg0,
                                   java.lang.String arg1)
Specified by:
getFeature in interface org.w3c.dom.Node

getFirstChild

public org.w3c.dom.Node getFirstChild()
Specified by:
getFirstChild in interface org.w3c.dom.Node

getImplementation

public org.w3c.dom.DOMImplementation getImplementation()
Specified by:
getImplementation in interface org.w3c.dom.Document

getInputEncoding

public java.lang.String getInputEncoding()
Specified by:
getInputEncoding in interface org.w3c.dom.Document

getLastChild

public org.w3c.dom.Node getLastChild()
Specified by:
getLastChild in interface org.w3c.dom.Node

getLocalName

public java.lang.String getLocalName()
Specified by:
getLocalName in interface org.w3c.dom.Node

getNamespaceURI

public java.lang.String getNamespaceURI()
Specified by:
getNamespaceURI in interface org.w3c.dom.Node

getNextSibling

public org.w3c.dom.Node getNextSibling()
Specified by:
getNextSibling in interface org.w3c.dom.Node

getNodeName

public java.lang.String getNodeName()
Specified by:
getNodeName in interface org.w3c.dom.Node

getNodeType

public short getNodeType()
Specified by:
getNodeType in interface org.w3c.dom.Node

getNodeValue

public java.lang.String getNodeValue()
                              throws org.w3c.dom.DOMException
Specified by:
getNodeValue in interface org.w3c.dom.Node
Throws:
org.w3c.dom.DOMException

getOwnerDocument

public org.w3c.dom.Document getOwnerDocument()
Specified by:
getOwnerDocument in interface org.w3c.dom.Node

getParentNode

public org.w3c.dom.Node getParentNode()
Specified by:
getParentNode in interface org.w3c.dom.Node

getPrefix

public java.lang.String getPrefix()
Specified by:
getPrefix in interface org.w3c.dom.Node

getPreviousSibling

public org.w3c.dom.Node getPreviousSibling()
Specified by:
getPreviousSibling in interface org.w3c.dom.Node

getStrictErrorChecking

public boolean getStrictErrorChecking()
Specified by:
getStrictErrorChecking in interface org.w3c.dom.Document

getTextContent

public java.lang.String getTextContent()
                                throws org.w3c.dom.DOMException
Specified by:
getTextContent in interface org.w3c.dom.Node
Throws:
org.w3c.dom.DOMException

getUserData

public java.lang.Object getUserData(java.lang.String arg0)
Specified by:
getUserData in interface org.w3c.dom.Node

getXmlEncoding

public java.lang.String getXmlEncoding()
Specified by:
getXmlEncoding in interface org.w3c.dom.Document

getXmlStandalone

public boolean getXmlStandalone()
Specified by:
getXmlStandalone in interface org.w3c.dom.Document

getXmlVersion

public java.lang.String getXmlVersion()
Specified by:
getXmlVersion in interface org.w3c.dom.Document

hasAttributes

public boolean hasAttributes()
Specified by:
hasAttributes in interface org.w3c.dom.Node

hasChildNodes

public boolean hasChildNodes()
Specified by:
hasChildNodes in interface org.w3c.dom.Node

importNode

public org.w3c.dom.Node importNode(org.w3c.dom.Node arg0,
                                   boolean arg1)
                            throws org.w3c.dom.DOMException
Specified by:
importNode in interface org.w3c.dom.Document
Throws:
org.w3c.dom.DOMException

insertBefore

public org.w3c.dom.Node insertBefore(org.w3c.dom.Node arg0,
                                     org.w3c.dom.Node arg1)
                              throws org.w3c.dom.DOMException
Specified by:
insertBefore in interface org.w3c.dom.Node
Throws:
org.w3c.dom.DOMException

isDefaultNamespace

public boolean isDefaultNamespace(java.lang.String arg0)
Specified by:
isDefaultNamespace in interface org.w3c.dom.Node

isEqualNode

public boolean isEqualNode(org.w3c.dom.Node arg0)
Specified by:
isEqualNode in interface org.w3c.dom.Node

isSameNode

public boolean isSameNode(org.w3c.dom.Node arg0)
Specified by:
isSameNode in interface org.w3c.dom.Node

isSupported

public boolean isSupported(java.lang.String arg0,
                           java.lang.String arg1)
Specified by:
isSupported in interface org.w3c.dom.Node

lookupNamespaceURI

public java.lang.String lookupNamespaceURI(java.lang.String arg0)
Specified by:
lookupNamespaceURI in interface org.w3c.dom.Node

lookupPrefix

public java.lang.String lookupPrefix(java.lang.String arg0)
Specified by:
lookupPrefix in interface org.w3c.dom.Node

normalize

public void normalize()
Specified by:
normalize in interface org.w3c.dom.Node

normalizeDocument

public void normalizeDocument()
Specified by:
normalizeDocument in interface org.w3c.dom.Document

removeChild

public org.w3c.dom.Node removeChild(org.w3c.dom.Node arg0)
                             throws org.w3c.dom.DOMException
Specified by:
removeChild in interface org.w3c.dom.Node
Throws:
org.w3c.dom.DOMException

renameNode

public org.w3c.dom.Node renameNode(org.w3c.dom.Node arg0,
                                   java.lang.String arg1,
                                   java.lang.String arg2)
                            throws org.w3c.dom.DOMException
Specified by:
renameNode in interface org.w3c.dom.Document
Throws:
org.w3c.dom.DOMException

replaceChild

public org.w3c.dom.Node replaceChild(org.w3c.dom.Node arg0,
                                     org.w3c.dom.Node arg1)
                              throws org.w3c.dom.DOMException
Specified by:
replaceChild in interface org.w3c.dom.Node
Throws:
org.w3c.dom.DOMException

setDocumentURI

public void setDocumentURI(java.lang.String arg0)
Specified by:
setDocumentURI in interface org.w3c.dom.Document

setNodeValue

public void setNodeValue(java.lang.String arg0)
                  throws org.w3c.dom.DOMException
Specified by:
setNodeValue in interface org.w3c.dom.Node
Throws:
org.w3c.dom.DOMException

setPrefix

public void setPrefix(java.lang.String arg0)
               throws org.w3c.dom.DOMException
Specified by:
setPrefix in interface org.w3c.dom.Node
Throws:
org.w3c.dom.DOMException

setStrictErrorChecking

public void setStrictErrorChecking(boolean arg0)
Specified by:
setStrictErrorChecking in interface org.w3c.dom.Document

setTextContent

public void setTextContent(java.lang.String arg0)
                    throws org.w3c.dom.DOMException
Specified by:
setTextContent in interface org.w3c.dom.Node
Throws:
org.w3c.dom.DOMException

setUserData

public java.lang.Object setUserData(java.lang.String arg0,
                                    java.lang.Object arg1,
                                    org.w3c.dom.UserDataHandler arg2)
Specified by:
setUserData in interface org.w3c.dom.Node

setXmlStandalone

public void setXmlStandalone(boolean arg0)
                      throws org.w3c.dom.DOMException
Specified by:
setXmlStandalone in interface org.w3c.dom.Document
Throws:
org.w3c.dom.DOMException

setXmlVersion

public void setXmlVersion(java.lang.String arg0)
                   throws org.w3c.dom.DOMException
Specified by:
setXmlVersion in interface org.w3c.dom.Document
Throws:
org.w3c.dom.DOMException


Copyright 2007 Moritz Goeb, Bernhard Schiemann, Ulf Schreiber of Chair of Artificial Intelligence, University of Erlangen-Nuremberg