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

java.lang.Object
  |
  +--com.hp.hpl.jena.daml.common.VocabularyManager

public class VocabularyManager
extends java.lang.Object

Contains knowledge of different versions of the DAML vocabulary, to help with managing the different versions of the namespace.

Version:
CVS info: $Id: VocabularyManager.java,v 1.2 2002/03/05 14:15:39 ian_dickinson Exp $
Author:
Ian Dickinson, HP Labs (email)

Constructor Summary
VocabularyManager()
           
 
Method Summary
static DAMLVocabulary getDefaultVocabulary()
          Answer the default (latest) vocabulary.
static DAMLVocabulary getVocabulary(Resource resource)
          Answer the vocabulary that corresponds to the namespace of the given resource.
static DAMLVocabulary getVocabulary(java.lang.String uri)
          Answer the vocabulary that corresponds to the namespace of the given URI.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VocabularyManager

public VocabularyManager()
Method Detail

getVocabulary

public static DAMLVocabulary getVocabulary(Resource resource)
Answer the vocabulary that corresponds to the namespace of the given resource. By default, answer the most recent vocabulary.
Parameters:
resource - The RDF resource denoting a namespace
Returns:
a DAML vocabulary object for the namespace

getVocabulary

public static DAMLVocabulary getVocabulary(java.lang.String uri)
Answer the vocabulary that corresponds to the namespace of the given URI. By default, answer the most recent vocabulary.
Parameters:
uri - A URI denoting a namespace
Returns:
a DAML vocabulary object for the namespace

getDefaultVocabulary

public static DAMLVocabulary getDefaultVocabulary()
Answer the default (latest) vocabulary.
Returns:
a DAML+OIL vocabulary


Copyright © 2001 Hewlett-Packard. All Rights Reserved.