public class OwlOntology
extends java.lang.Object
Constructor and Description |
---|
OwlOntology(org.w3c.dom.Element elem)
Construct an ontology object from an element within an OWL file.
|
OwlOntology(java.lang.String ontologyName)
Construct a new empty ontology object with the given name.
|
Modifier and Type | Method and Description |
---|---|
void |
addComment(java.lang.String comment)
Add a comment to this ontology
|
void |
addImport(java.net.URL importUrl)
Add an import to this ontology
|
void |
addOwlClass(OwlClass owlClass)
Add an OwlClass to the ontology
|
void |
addOwlProperty(OwlProperty prop)
Add an OwlProperty to the ontology
|
void |
addOwlThing(OwlThing thing)
Add an OwlThing to the ontology
|
java.util.ArrayList<OwlClass> |
getClassList()
Get the list of classes in this ontology
|
java.util.HashSet<java.lang.String> |
getComments()
Get comments for this ontology
|
java.util.HashSet<java.net.URL> |
getImports()
Get imports for this ontology
|
java.lang.String |
getLabel()
Get the label for this ontology
|
java.lang.String |
getName()
Get the name for this ontology.
|
java.net.URL |
getPrior()
Get the prior version for this ontology
|
java.util.ArrayList<OwlProperty> |
getPropList()
Get the list of properties in this ontology
|
java.util.ArrayList<OwlThing> |
getThingList()
Get the list of things in this ontology
|
java.net.URL |
getUrl()
Get the URL for this ontology
|
void |
loadFromXml(org.w3c.dom.Element element)
Load this ontology description from the XML element.
|
void |
setLabel(java.lang.String ontLabel)
Set the label for this ontology
|
void |
setName(java.lang.String ontName)
Set the name for this ontology.
|
void |
setPrior(java.net.URL priorVersion)
Set the prior version for this ontology
|
void |
setUrl(java.net.URL ontUrl)
Set the URL for this ontology
|
public OwlOntology(org.w3c.dom.Element elem)
elem
- the owl:Ontology elementpublic OwlOntology(java.lang.String ontologyName)
ontologyName
- the ontology namepublic void addComment(java.lang.String comment)
comment
- the comment to add.public void addImport(java.net.URL importUrl)
importUrl
- the URL of the ontology to import.public void addOwlClass(OwlClass owlClass)
owlClass
- the OwlClass to addpublic void addOwlProperty(OwlProperty prop)
prop
- the OwlProperty to addpublic void addOwlThing(OwlThing thing)
thing
- the OwlThing to addpublic java.util.ArrayList<OwlClass> getClassList()
public java.util.HashSet<java.lang.String> getComments()
public java.util.HashSet<java.net.URL> getImports()
public java.lang.String getLabel()
public java.lang.String getName()
public java.net.URL getPrior()
public java.util.ArrayList<OwlProperty> getPropList()
public java.util.ArrayList<OwlThing> getThingList()
public java.net.URL getUrl()
public void loadFromXml(org.w3c.dom.Element element)
element
- the owl:Ontology elementpublic void setLabel(java.lang.String ontLabel)
ontLabel
- the label for this ontologypublic void setName(java.lang.String ontName)
ontName
- the ontology namepublic void setPrior(java.net.URL priorVersion)
priorVersion
- the prior version for this ontologypublic void setUrl(java.net.URL ontUrl)
ontUrl
- the URL for this ontology