public class OWLXMLWriter extends Object
Constructor | Description |
---|---|
OWLXMLWriter(Writer writer,
org.semanticweb.owlapi.model.OWLOntology ontology) |
Modifier and Type | Method | Description |
---|---|---|
void |
endDocument() |
|
Map<String,String> |
getIRIPrefixMap() |
|
String |
getIRIString(org.semanticweb.owlapi.model.IRI iri) |
Gets an IRI attribute value for a full IRI.
|
XMLWriterNamespaceManager |
getNamespaceManager() |
|
void |
startDocument(org.semanticweb.owlapi.model.OWLOntology ontology) |
|
void |
writeAnnotationURIAttribute(URI uri) |
|
void |
writeCardinalityAttribute(int cardinality) |
|
void |
writeDatatypeAttribute(org.semanticweb.owlapi.model.OWLDatatype datatype) |
Writes a datatype attributed (used on Literal elements).
|
void |
writeEndElement() |
write end element
|
void |
writeFacetAttribute(org.semanticweb.owlapi.vocab.OWLFacet facet) |
|
void |
writeIRIAttribute(org.semanticweb.owlapi.model.IRI iri) |
|
void |
writeIRIElement(org.semanticweb.owlapi.model.IRI iri) |
Writes an IRI element for a given IRI.
|
void |
writeLangAttribute(String lang) |
|
void |
writeNodeIDAttribute(org.semanticweb.owlapi.model.NodeID nodeID) |
|
void |
writePrefix(String prefixName,
String iri) |
A convenience method to write a prefix.
|
void |
writeStartElement(org.semanticweb.owlapi.vocab.OWLXMLVocabulary name) |
|
void |
writeTextContent(String text) |
public XMLWriterNamespaceManager getNamespaceManager()
public void writePrefix(String prefixName, String iri) throws IOException
prefixName
- The name of the prefix (e.g. owl: is the prefix name for the OWL
prefix)iri
- The prefix iriIOException
- io errorpublic String getIRIString(org.semanticweb.owlapi.model.IRI iri)
iri
- The IRIpublic void startDocument(org.semanticweb.owlapi.model.OWLOntology ontology) throws org.semanticweb.owlapi.io.OWLRendererException
ontology
- ontologyorg.semanticweb.owlapi.io.OWLRendererException
- renderer errorpublic void endDocument()
public void writeStartElement(org.semanticweb.owlapi.vocab.OWLXMLVocabulary name)
name
- namepublic void writeEndElement()
public void writeDatatypeAttribute(org.semanticweb.owlapi.model.OWLDatatype datatype)
datatype
- The datatypepublic void writeNodeIDAttribute(org.semanticweb.owlapi.model.NodeID nodeID)
nodeID
- nodeIDpublic void writeIRIAttribute(org.semanticweb.owlapi.model.IRI iri)
iri
- iripublic void writeIRIElement(org.semanticweb.owlapi.model.IRI iri)
iri
- The IRI to be written as an element. If the IRI can be abbreviated
then an AbbreviatedIRI element will be writtenpublic void writeCardinalityAttribute(int cardinality)
cardinality
- cardinalitypublic void writeFacetAttribute(org.semanticweb.owlapi.vocab.OWLFacet facet)
facet
- facetpublic void writeAnnotationURIAttribute(URI uri)
uri
- uriCopyright © 2018 The University of Manchester. All rights reserved.