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() |
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 ContentHandler
setDocumentLocator
in class org.xml.sax.helpers.DefaultHandler
public 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 ContentHandler
startDocument
in class org.xml.sax.helpers.DefaultHandler
SAXException
public void endDocument() throws SAXException
endDocument
in interface ContentHandler
endDocument
in class org.xml.sax.helpers.DefaultHandler
SAXException
public void characters(char[] ch, int start, int length) throws SAXException
characters
in interface ContentHandler
characters
in class org.xml.sax.helpers.DefaultHandler
SAXException
public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException
startElement
in interface ContentHandler
startElement
in class org.xml.sax.helpers.DefaultHandler
SAXException
public URI getBase()
public void endElement(String uri, String localName, String qName) throws SAXException
endElement
in interface ContentHandler
endElement
in class org.xml.sax.helpers.DefaultHandler
SAXException
public void startPrefixMapping(String prefix, String uri) throws SAXException
startPrefixMapping
in interface ContentHandler
startPrefixMapping
in class org.xml.sax.helpers.DefaultHandler
SAXException
public InputSource resolveEntity(String publicId, String systemId) throws IOException, SAXException
resolveEntity
in interface EntityResolver
resolveEntity
in class org.xml.sax.helpers.DefaultHandler
IOException
SAXException
public OWLOntologyManager getOWLOntologyManager()
Copyright © 2017 The University of Manchester. All Rights Reserved.