public class OWLXMLParserHandler extends org.xml.sax.helpers.DefaultHandler
| Constructor and Description |
|---|
OWLXMLParserHandler(OWLOntology ontology) |
OWLXMLParserHandler(OWLOntologyManager owlOntologyManager,
OWLOntology ontology)
Deprecated.
manager unnecessary
|
OWLXMLParserHandler(OWLOntologyManager owlOntologyManager,
OWLOntology ontology,
OWLElementHandler<?> topHandler)
Deprecated.
manager unnecessary
|
OWLXMLParserHandler(OWLOntologyManager owlOntologyManager,
OWLOntology ontology,
OWLElementHandler<?> topHandler,
OWLOntologyLoaderConfiguration configuration)
Deprecated.
manager is unnecessary
|
OWLXMLParserHandler(OWLOntologyManager owlOntologyManager,
OWLOntology ontology,
OWLOntologyLoaderConfiguration configuration)
Deprecated.
manager is unnecessary
|
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)
owlOntologyManager - managerontology - ontologypublic OWLXMLParserHandler(OWLOntology ontology)
ontology - ontology to parse into@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.configuration - load configurationpublic OWLXMLParserHandler(OWLOntology ontology, OWLOntologyLoaderConfiguration configuration)
ontology - ontology to add toconfiguration - load configuration@Deprecated public OWLXMLParserHandler(OWLOntologyManager owlOntologyManager, OWLOntology ontology, OWLElementHandler<?> topHandler)
owlOntologyManager - managerontology - ontology to parse intotopHandler - top level handlerpublic OWLXMLParserHandler(OWLOntology ontology, OWLElementHandler<?> topHandler)
ontology - ontology to parse intotopHandler - top level handlerpublic OWLXMLParserHandler(OWLOntology ontology, OWLElementHandler<?> topHandler, OWLOntologyLoaderConfiguration configuration)
ontology - The ontology object that the XML representation should be
parsed into.topHandler - top level handlerconfiguration - load configuration@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.configuration - load configurationpublic 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
iriStr - iriOWLParserException - if an error is raisedpublic IRI getAbbreviatedIRI(String abbreviatedIRI) throws OWLParserException
abbreviatedIRI - short iriOWLParserException - if an error is raisedpublic Map<String,String> getPrefixName2PrefixMap()
public 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 © 2014 The University of Manchester. All Rights Reserved.