public class OwlLoader
extends java.lang.Object
Constructor and Description |
---|
OwlLoader() |
Modifier and Type | Method and Description |
---|---|
java.util.Set<java.net.URL> |
getLoadedUrls()
Get the set of URLS that have been loaded
|
OwlOntology |
getOntology(java.net.URL url)
Get the Ontology definition for an ontology that has already been
loaded.
|
boolean |
isLoaded(java.net.URL url)
Return whether the given URL has been loaded
|
OwlOntology |
loadData(java.lang.String fileName)
Load the ontology data from the specified file.
|
OwlOntology |
loadData(java.net.URL url)
Load the ontology data from the specified URL.
|
protected void |
parseUnknownElement(org.w3c.dom.Element elem)
Parse an element with an unknown tag.
|
public java.util.Set<java.net.URL> getLoadedUrls()
public OwlOntology getOntology(java.net.URL url)
url
- The URL reference for the ontologypublic boolean isLoaded(java.net.URL url)
url
- the URL to checkpublic OwlOntology loadData(java.lang.String fileName) throws java.io.IOException, org.xml.sax.SAXException
fileName
- the file name or URL path for the ontologyjava.io.IOException
- If there is a problem reading the fileorg.xml.sax.SAXException
- if there is a problem parsing the filepublic OwlOntology loadData(java.net.URL url) throws java.io.IOException, org.xml.sax.SAXException
url
- the URL path for the ontologyjava.io.IOException
- If there is a problem reading the fileorg.xml.sax.SAXException
- if there is a problem parsing the fileprotected void parseUnknownElement(org.w3c.dom.Element elem)
elem
- the element to parse