|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.xml.sax.helpers.DefaultHandler
org.semanticweb.owlapi.util.AutoIRIMapper
public class AutoIRIMapper
Author: Matthew Horridge
The University Of Manchester
Bio-Health Informatics Group
Date: 26-Apr-2007
Constructor Summary | |
---|---|
AutoIRIMapper(java.io.File rootDirectory,
boolean recursive)
Creates an auto-mapper which examines ontologies that reside in the specified root folder (and possibly sub-folders). |
Method Summary | |
---|---|
java.util.Set<java.lang.String> |
getFileExtensions()
The mapper only examines files that have specified file extensions. |
java.util.Set<IRI> |
getOntologyIRIs()
Gets the set of ontology IRIs that this mapper has found |
java.net.URI |
getPhysicalURI(IRI ontologyIRI)
Given an ontology URI, this method maps the ontology URI to a physical URI that points to some concrete representation of the ontology. |
void |
setFileExtensions(java.util.Set<java.lang.String> extensions)
Sets the extensions of files that are to be examined for ontological content. |
void |
startElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes attributes)
|
java.lang.String |
toString()
|
void |
update()
|
Methods inherited from class org.xml.sax.helpers.DefaultHandler |
---|
characters, endDocument, endElement, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AutoIRIMapper(java.io.File rootDirectory, boolean recursive)
rootDirectory
- The root directory which should be searched
for ontologies.recursive
- Sub directories will be searched recursively if
true
.Method Detail |
---|
public java.util.Set<java.lang.String> getFileExtensions()
Set
of file extensions.public void setFileExtensions(java.util.Set<java.lang.String> extensions)
public java.util.Set<IRI> getOntologyIRIs()
Set
of ontology (logical) URIspublic void update()
public java.net.URI getPhysicalURI(IRI ontologyIRI)
OWLOntologyIRIMapper
getPhysicalURI
in interface OWLOntologyIRIMapper
ontologyIRI
- The ontology IRI to be mapped.
null
if the mapper doesn't have mapping for the specified ontology URI.public void startElement(java.lang.String uri, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes attributes) throws org.xml.sax.SAXException
startElement
in interface org.xml.sax.ContentHandler
startElement
in class org.xml.sax.helpers.DefaultHandler
org.xml.sax.SAXException
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |