org.opentox.ontology.namespaces
Class AbsOntClass

java.lang.Object
  extended by org.opentox.ontology.namespaces.AbsOntClass
All Implemented Interfaces:
IOntClass
Direct Known Subclasses:
AlgorithmTypes, OTClass, OTProperties

public abstract class AbsOntClass
extends java.lang.Object
implements IOntClass

Superclass for all Namespaces introduced in opentox such as AlgorithmTypes, OTProperties and OTClass

Author:
OpenTox - http://www.opentox.org, Sopasakis Pantelis, Sarimveis Harry
See Also:
IOntClass

Nested Class Summary
static class AbsOntClass.Class
          Class Resources of the AbsOntClass.
 
Field Summary
protected static java.lang.String _NS
           
protected static com.hp.hpl.jena.ontology.OntModel m_model
           
static com.hp.hpl.jena.rdf.model.Resource NAMESPACE
          The namespace of the vocabalary as a Resource.
static java.lang.String NS
           
protected  com.hp.hpl.jena.rdf.model.Resource resource
           
private static long serialVersionUID
           
 
Constructor Summary
AbsOntClass()
           
AbsOntClass(com.hp.hpl.jena.rdf.model.Resource resource)
           
 
Method Summary
static com.hp.hpl.jena.ontology.OntModel createModel()
          Creates an OWL-DL Ontological Model which includes the definition of some AbsOntClass prefices such as ot, dc and owl.
 com.hp.hpl.jena.ontology.OntClass createOntClass(com.hp.hpl.jena.ontology.OntModel model)
          Creates a new Ontological class for an Ontological Model.
 com.hp.hpl.jena.rdf.model.Property createProperty(com.hp.hpl.jena.ontology.OntModel model)
          Generates a property out of a given model.
 com.hp.hpl.jena.ontology.OntClass getOntClass(com.hp.hpl.jena.ontology.OntModel model)
          Returns the corresponding Ontological Class (i.e.
 com.hp.hpl.jena.rdf.model.Resource getResource()
          Returns the Resource of this class ( AbsOntClass.Class ).
 java.lang.String getURI()
          Returns the URI of the class
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

_NS

protected static final java.lang.String _NS
See Also:
Constant Field Values

NS

public static final java.lang.String NS

m_model

protected static com.hp.hpl.jena.ontology.OntModel m_model

resource

protected com.hp.hpl.jena.rdf.model.Resource resource

NAMESPACE

public static final com.hp.hpl.jena.rdf.model.Resource NAMESPACE

The namespace of the vocabalary as a Resource.

Constructor Detail

AbsOntClass

public AbsOntClass()

AbsOntClass

public AbsOntClass(com.hp.hpl.jena.rdf.model.Resource resource)
Method Detail

getURI

public java.lang.String getURI()
Returns the URI of the class

Specified by:
getURI in interface IOntClass
Returns:
class URI

getOntClass

public com.hp.hpl.jena.ontology.OntClass getOntClass(com.hp.hpl.jena.ontology.OntModel model)
Returns the corresponding Ontological Class (i.e. an instance of OntClass )

Specified by:
getOntClass in interface IOntClass
Parameters:
model - The ontological model
Returns:
the ontological class of the model

createOntClass

public com.hp.hpl.jena.ontology.OntClass createOntClass(com.hp.hpl.jena.ontology.OntModel model)
Creates a new Ontological class for an Ontological Model.

Specified by:
createOntClass in interface IOntClass
Parameters:
model - The ontological model.
Returns:
The generated ontological class.

createProperty

public com.hp.hpl.jena.rdf.model.Property createProperty(com.hp.hpl.jena.ontology.OntModel model)
Generates a property out of a given model.

Specified by:
createProperty in interface IOntClass
Parameters:
model - An ontological model.
Returns:
The corresponding property.

getResource

public com.hp.hpl.jena.rdf.model.Resource getResource()
Returns the Resource of this class ( AbsOntClass.Class ).

Specified by:
getResource in interface IOntClass
Returns:
the corresponding jena resource.

createModel

public static com.hp.hpl.jena.ontology.OntModel createModel()
Creates an OWL-DL Ontological Model which includes the definition of some AbsOntClass prefices such as ot, dc and owl.

Returns:
Ontological Model ( OntModel ) with namespace definitions.