org.openanzo.jastor.inference
Class Ontology

java.lang.Object
  extended by org.openanzo.jastor.inference.Ontology

public class Ontology
extends java.lang.Object

Simple class to encapsulate an ontology to be generated.

Author:
Ben Szekely (bhszekel@us.ibm.com)

Constructor Summary
Ontology(java.lang.String pkg, JastorContext ctx, java.util.List<org.openrdf.model.Resource> classes)
          Create new Ontology object
 
Method Summary
 java.util.List<OntologyClass> getClasses()
          Get all the classes in this ontology
 java.util.List<OntologyClass> getClassesSorted()
          Return a topologically sorted list of the classes in this ontology based on the extension class-hierarchy.
 OntologyComment getComment()
          Get the Ontology's comment
 JastorContext getContext()
          Get the context for this ontology
 java.lang.String getFactoryClassname()
          Get the class name of the factory for this ontology
 java.io.File getFactoryFile(java.io.File basedir)
          Get the file for the factory
 java.lang.String getFactoryFullClassname()
          Get the full class name of the factory for this ontology
 java.lang.String getLocalName()
          Get the local name for this ontology's URI
 Ontology getOntology()
          Get the Jastor Ontology bean for this ontology
 java.lang.String getPackage()
          Get the package for this ontology
 org.openrdf.model.URI getURI()
          Get the ontology's URI
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Ontology

public Ontology(java.lang.String pkg,
                JastorContext ctx,
                java.util.List<org.openrdf.model.Resource> classes)
Create new Ontology object

Parameters:
pkg - Package name for ontology
ctx - parent Jastor context
classes - a list of String uri's of the classes in this ontology
Method Detail

getClasses

public java.util.List<OntologyClass> getClasses()
Get all the classes in this ontology

Returns:
list of all the classes in this ontology

getClassesSorted

public java.util.List<OntologyClass> getClassesSorted()
Return a topologically sorted list of the classes in this ontology based on the extension class-hierarchy.

Returns:
a topologically sorted list of the classes in this ontology based on the extension class-hierarchy

getPackage

public java.lang.String getPackage()
Get the package for this ontology

Returns:
the package for this ontology

getContext

public JastorContext getContext()
Get the context for this ontology

Returns:
the context for this ontology

getOntology

public Ontology getOntology()
Get the Jastor Ontology bean for this ontology

Returns:
the Jastor Ontology bean for this ontology

getLocalName

public java.lang.String getLocalName()
Get the local name for this ontology's URI

Returns:
the local name for this ontology's URI

getURI

public org.openrdf.model.URI getURI()
Get the ontology's URI

Returns:
the ontology's URI

getComment

public OntologyComment getComment()
Get the Ontology's comment

Returns:
ontology's comment

getFactoryClassname

public java.lang.String getFactoryClassname()
Get the class name of the factory for this ontology

Returns:
the class name of the factory for this ontology

getFactoryFullClassname

public java.lang.String getFactoryFullClassname()
Get the full class name of the factory for this ontology

Returns:
the full class name of the factory for this ontology

getFactoryFile

public java.io.File getFactoryFile(java.io.File basedir)
Get the file for the factory

Parameters:
basedir - directory where file is located
Returns:
the file for the factory


Copyright © 2007 Cambridge Semantics Inc.. All Rights Reserved.