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)
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VocabularyManager
public VocabularyManager()
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.