com.hp.hpl.jena.daml.common
Class DAMLOntologyImpl

java.lang.Object
  |
  +--com.hp.hpl.mesa.rdf.jena.common.ResourceImpl
        |
        +--com.hp.hpl.jena.daml.common.DAMLCommonImpl
              |
              +--com.hp.hpl.jena.daml.common.DAMLOntologyImpl
All Implemented Interfaces:
DAMLCommon, DAMLOntology, RDFNode, Resource, ResourceI

public class DAMLOntologyImpl
extends DAMLCommonImpl
implements DAMLOntology

Encapsulates the properties known for a given source ontology.

Version:
CVS info: $Id: DAMLOntologyImpl.java,v 1.1 2001/09/24 17:02:42 ijd Exp $
Author:
Ian Dickinson, HP Labs (email)

Constructor Summary
DAMLOntologyImpl(java.lang.String uri, DAMLModel store, DAMLVocabulary vocabulary)
          Constructor, takes the URI for this ontology properties, and the underlying model it will be attached to.
DAMLOntologyImpl(java.lang.String namespace, java.lang.String name, DAMLModel store, DAMLVocabulary vocabulary)
          Constructor, takes the name and namespace for this ontology properties, and the underlying model it will be attached to.
 
Method Summary
 void addImportedOntology(java.lang.String uri)
          Add the given ontology to the list of ontologies managed by the knowledge store, and add it as an imoport property to this ontology object.
 NodeIterator getImportedOntologies()
          Answer an iteration of resources that represent the URI's of the ontologies that this ontology imports.
 LiteralAccessor prop_versionInfo()
          Property value accessor for the version info property of the ontology.
 
Methods inherited from class com.hp.hpl.jena.daml.common.DAMLCommonImpl
getAll, getDAMLModel, getEquivalenceSet, getEquivalentValues, getNumPropertyValues, getPropertyValue, getPropertyValues, getRDFTypes, getSelfIterator, getVocabulary, hasRDFType, hasRDFType, prop_comment, prop_equivalentTo, prop_label, prop_type, remove, removeAll, removeProperty, replaceProperty, setPropertyValue, setRDFType, setRDFType, toString
 
Methods inherited from class com.hp.hpl.mesa.rdf.jena.common.ResourceImpl
abort, addProperty, addProperty, addProperty, addProperty, addProperty, addProperty, addProperty, addProperty, addProperty, begin, commit, equals, getEmbeddedResource, getId, getLocalName, getModel, getNameSpace, getProperty, getURI, hashCode, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, isAnon, listProperties, listProperties, port, removeProperties
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.hp.hpl.jena.daml.DAMLCommon
getAll, getDAMLModel, getEquivalenceSet, getEquivalentValues, getNumPropertyValues, getPropertyValue, getPropertyValues, getRDFTypes, getVocabulary, hasRDFType, hasRDFType, prop_comment, prop_equivalentTo, prop_label, prop_type, remove, removeAll, removeProperty, replaceProperty, setPropertyValue, setRDFType, setRDFType
 
Methods inherited from interface com.hp.hpl.mesa.rdf.jena.model.Resource
abort, addProperty, addProperty, addProperty, addProperty, addProperty, addProperty, addProperty, addProperty, addProperty, begin, commit, equals, getId, getLocalName, getModel, getNameSpace, getProperty, getURI, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, hasProperty, isAnon, listProperties, listProperties, removeProperties, toString
 

Constructor Detail

DAMLOntologyImpl

public DAMLOntologyImpl(java.lang.String uri,
                        DAMLModel store,
                        DAMLVocabulary vocabulary)
Constructor, takes the URI for this ontology properties, and the underlying model it will be attached to.
Parameters:
uri - The URI of the ontology
store - The RDF store that contains the RDF statements defining the properties of the ontology
vocabulary - Reference to the DAML vocabulary used by this ontology resource.

DAMLOntologyImpl

public DAMLOntologyImpl(java.lang.String namespace,
                        java.lang.String name,
                        DAMLModel store,
                        DAMLVocabulary vocabulary)
Constructor, takes the name and namespace for this ontology properties, and the underlying model it will be attached to.
Parameters:
namespace - The namespace the ontology inhabits, or null
name - The name of the ontology
store - The RDF store that contains the RDF statements defining the properties of the ontology
vocabulary - Reference to the DAML vocabulary used by this ontology resource.
Method Detail

prop_versionInfo

public LiteralAccessor prop_versionInfo()
Property value accessor for the version info property of the ontology.
Specified by:
prop_versionInfo in interface DAMLOntology
Returns:
A literal accessor that gives access to the version info of the ontology.

getImportedOntologies

public NodeIterator getImportedOntologies()
Answer an iteration of resources that represent the URI's of the ontologies that this ontology imports.
Specified by:
getImportedOntologies in interface DAMLOntology
Returns:
An iterator over the resources representing imported ontologies

addImportedOntology

public void addImportedOntology(java.lang.String uri)
Add the given ontology to the list of ontologies managed by the knowledge store, and add it as an imoport property to this ontology object.
Specified by:
addImportedOntology in interface DAMLOntology
Parameters:
uri - The URI of the model.


Copyright © 2001 Hewlett-Packard. All Rights Reserved.