Class Ontology

java.lang.Object
net.simplace.sim.util.ontology.Ontology

public class Ontology extends Object
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 Details

    • getInstance

      public static Ontology getInstance()
      Helper method called to access the Ontology
      Returns:
      model
    • main

      public static void main(String[] args)
      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 accessed
      aCheckForLang -
      Returns:
      the Property string
    • getStandardName

      public String getStandardName(String aURI)
      Helper method to get the name of the unit out of the URI
      Parameters:
      aURI -
      Returns:
      the name associated to the URI
    • getSymbol

      public String getSymbol(String aURI)
      Helper method to get the name of the unit out of the URI
      Parameters:
      aURI -
      Returns:
      the name associated to the URI
    • getDescription

      public String getDescription(String aURI)
      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

      public List<org.apache.jena.rdf.model.Statement> allInstances(String aURI)
      Helper method to get list of all the properties associated with mentioned URI
      Parameters:
      aURI - : URI
      Returns:
      tReturnList : List of all the properties