Package net.simplace.sim.util.ontology
Class Ontology
java.lang.Object
net.simplace.sim.util.ontology.Ontology
Ontology : An ontology formally represents knowledge as a set of concepts
within a domain, and the relationships between those concepts. It can be used
to reason about the entities within that domain and may be used to describe
the domain.
An Ontology at present used in SMILE model is to resolve the ambiguity
related to the units in the model.Ontology used in the model is the OM
ontology of Unit of Measure. An Ontology of units of Measure and related
concepts (OM) models concepts and relations important to scientific research.
It has a strong focus on units and quantities, measurements, and dimensions.
The home page of the OM ontology is:
http://www.wurvoc.org/vocabularies/om-1.8/
- Author:
- Andreas Enders, Crop Science Group, Katzenburgweg 5, 53115 Bonn, Germany IMPETUS Project, www.impetus.uni-koeln.de Contact Information: info@andreas-enders.de
-
Method Summary
Modifier and TypeMethodDescriptionList<org.apache.jena.rdf.model.Statement>
allInstances
(String aURI) Helper method to get list of all the properties associated with mentioned URIgetDescription
(String aURI) Helper method to read the description and the long comments associated with unitsstatic Ontology
Helper method called to access the OntologygetProperty
(String aURI, org.apache.jena.rdf.model.Property aProperty, boolean aCheckForLang) Helper method to access the properties of the modelgetStandardName
(String aURI) Helper method to get the name of the unit out of the URIHelper method to get the name of the unit out of the URIstatic void
Testing Method
-
Method Details
-
getInstance
Helper method called to access the Ontology- Returns:
- model
-
main
Testing Method- Parameters:
args
-
-
getProperty
public String getProperty(String aURI, org.apache.jena.rdf.model.Property aProperty, boolean aCheckForLang) Helper method to access the properties of the model- Parameters:
aURI
- : URI passed by the used for which property needs to be accessed.aProperty
- : Name of the Property to be accessedaCheckForLang
-- Returns:
- the Property string
-
getStandardName
Helper method to get the name of the unit out of the URI- Parameters:
aURI
-- Returns:
- the name associated to the URI
-
getSymbol
Helper method to get the name of the unit out of the URI- Parameters:
aURI
-- Returns:
- the name associated to the URI
-
getDescription
Helper method to read the description and the long comments associated with units- Parameters:
aURI
- : the URI- Returns:
- long comment and the definition of the unit
-
allInstances
Helper method to get list of all the properties associated with mentioned URI- Parameters:
aURI
- : URI- Returns:
- tReturnList : List of all the properties
-