public class OWLXMLParserHandler extends org.xml.sax.helpers.DefaultHandler
| Constructor and Description |
|---|
OWLXMLParserHandler(OWLOntology ontology) |
OWLXMLParserHandler(OWLOntologyManager owlOntologyManager,
OWLOntology ontology)
Deprecated.
|
OWLXMLParserHandler(OWLOntologyManager owlOntologyManager,
OWLOntology ontology,
OWLElementHandler<?> topHandler)
Deprecated.
|
OWLXMLParserHandler(OWLOntologyManager owlOntologyManager,
OWLOntology ontology,
OWLElementHandler<?> topHandler,
OWLOntologyLoaderConfiguration configuration)
Deprecated.
|
OWLXMLParserHandler(OWLOntologyManager owlOntologyManager,
OWLOntology ontology,
OWLOntologyLoaderConfiguration configuration)
Deprecated.
|
OWLXMLParserHandler(OWLOntology ontology,
OWLElementHandler<?> topHandler) |
OWLXMLParserHandler(OWLOntology ontology,
OWLElementHandler<?> topHandler,
OWLOntologyLoaderConfiguration configuration)
Creates an OWLXML handler with the specified top level handler.
|
OWLXMLParserHandler(OWLOntology ontology,
OWLOntologyLoaderConfiguration configuration) |
| Modifier and Type | Method and Description |
|---|---|
void |
characters(char[] ch,
int start,
int length) |
void |
endDocument() |
void |
endElement(String uri,
String localName,
String qName) |
IRI |
getAbbreviatedIRI(String abbreviatedIRI) |
URI |
getBase()
Return the base URI for resolution of relative URIs
|
int |
getColumnNumber() |
OWLOntologyLoaderConfiguration |
getConfiguration() |
OWLDataFactory |
getDataFactory() |
IRI |
getIRI(String iriStr) |
int |
getLineNumber()
Gets the line number that the parser is at.
|
OWLOntology |
getOntology() |
OWLOntologyManager |
getOWLOntologyManager() |
Map<String,String> |
getPrefixName2PrefixMap() |
protected void |
processXMLBase(Attributes attributes) |
InputSource |
resolveEntity(String publicId,
String systemId) |
void |
setDocumentLocator(Locator locator) |
void |
startDocument() |
void |
startElement(String uri,
String localName,
String qName,
Attributes attributes) |
void |
startPrefixMapping(String prefix,
String uri) |
endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, skippedEntity, unparsedEntityDecl, warning@Deprecated public OWLXMLParserHandler(OWLOntologyManager owlOntologyManager, OWLOntology ontology)
public OWLXMLParserHandler(OWLOntology ontology)
@Deprecated public OWLXMLParserHandler(OWLOntologyManager owlOntologyManager, OWLOntology ontology, OWLOntologyLoaderConfiguration configuration)
owlOntologyManager - The manager that should be used to obtain a data factory,
imported ontologies etc.ontology - The ontology that the XML representation will be parsed into.public OWLXMLParserHandler(OWLOntology ontology, OWLOntologyLoaderConfiguration configuration)
@Deprecated public OWLXMLParserHandler(OWLOntologyManager owlOntologyManager, OWLOntology ontology, OWLElementHandler<?> topHandler)
public OWLXMLParserHandler(OWLOntology ontology, OWLElementHandler<?> topHandler)
public OWLXMLParserHandler(OWLOntology ontology, OWLElementHandler<?> topHandler, OWLOntologyLoaderConfiguration configuration)
ontology - The ontology object that the XML representation should be parsed into.@Deprecated public OWLXMLParserHandler(OWLOntologyManager owlOntologyManager, OWLOntology ontology, OWLElementHandler<?> topHandler, OWLOntologyLoaderConfiguration configuration)
owlOntologyManager - The manager that should be used to obtain a data factory,
imported ontologies etc.ontology - The ontology object that the XML representation should be parsed into.topHandler - The handler for top level elements - may be null, in which
case the parser will expect an Ontology element to be the root element.public void setDocumentLocator(Locator locator)
setDocumentLocator in interface ContentHandlersetDocumentLocator in class org.xml.sax.helpers.DefaultHandlerpublic OWLOntologyLoaderConfiguration getConfiguration()
public int getLineNumber()
public int getColumnNumber()
public IRI getIRI(String iriStr) throws OWLParserException
OWLParserExceptionpublic IRI getAbbreviatedIRI(String abbreviatedIRI) throws OWLParserException
OWLParserExceptionpublic OWLOntology getOntology()
public OWLDataFactory getDataFactory()
public void startDocument()
throws SAXException
startDocument in interface ContentHandlerstartDocument in class org.xml.sax.helpers.DefaultHandlerSAXExceptionpublic void endDocument()
throws SAXException
endDocument in interface ContentHandlerendDocument in class org.xml.sax.helpers.DefaultHandlerSAXExceptionpublic void characters(char[] ch,
int start,
int length)
throws SAXException
characters in interface ContentHandlercharacters in class org.xml.sax.helpers.DefaultHandlerSAXExceptionpublic void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException
startElement in interface ContentHandlerstartElement in class org.xml.sax.helpers.DefaultHandlerSAXExceptionprotected void processXMLBase(Attributes attributes)
public URI getBase()
public void endElement(String uri, String localName, String qName) throws SAXException
endElement in interface ContentHandlerendElement in class org.xml.sax.helpers.DefaultHandlerSAXExceptionpublic void startPrefixMapping(String prefix, String uri) throws SAXException
startPrefixMapping in interface ContentHandlerstartPrefixMapping in class org.xml.sax.helpers.DefaultHandlerSAXExceptionpublic InputSource resolveEntity(String publicId, String systemId) throws IOException, SAXException
resolveEntity in interface EntityResolverresolveEntity in class org.xml.sax.helpers.DefaultHandlerIOExceptionSAXExceptionpublic OWLOntologyManager getOWLOntologyManager()
Copyright © 2012 The University of Manchester. All Rights Reserved.