com.hp.hpl.deli
Class VocabularyConfig
java.lang.Object
com.hp.hpl.deli.VocabularyConfig
- class VocabularyConfig
- extends java.lang.Object
This class processes the CC/PP vocabulary definition file.
- Author:
- Mark H. Butler (mark-h_butler@hp.com)
Constructor Summary |
(package private) |
VocabularyConfig(java.lang.String configFile)
This constructor constructs the vocabulary object from the vocabulary configuration file. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
namespaceLookup
protected java.util.HashMap namespaceLookup
attributeProperties
protected java.util.HashMap attributeProperties
currentCcppUri
java.lang.String currentCcppUri
schemas
private java.util.Vector schemas
schemaURIs
private java.util.Vector schemaURIs
vocabularies
private java.util.Vector vocabularies
datatypesLookup
protected java.util.HashMap datatypesLookup
tm
com.hp.hpl.jena.datatypes.TypeMapper tm
datatypesDef
private java.util.List datatypesDef
VocabularyConfig
VocabularyConfig(java.lang.String configFile)
throws javax.xml.parsers.ParserConfigurationException
- This constructor constructs the vocabulary object from the vocabulary configuration file.
parseConfigFile
void parseConfigFile(org.w3c.dom.Node root)
throws java.lang.Exception
- Parses the namespace config file.
- Throws:
java.lang.Exception
xmlVocabularyTraverse
void xmlVocabularyTraverse(org.w3c.dom.Node n)
throws java.lang.Exception
- Throws:
java.lang.Exception
schemaProcess
private void schemaProcess(java.io.InputStream in,
java.lang.String prfUri)
throws java.lang.Exception
- This method traverses a UAProf RDF schema vocabulary definition file
using Jena.
- Parameters:
in
- The schema file to be processed.prfUri
- The URI of the namespace to be associated with the schema.
- Throws:
java.lang.Exception
addAttributePropertiesToVocabulary
private void addAttributePropertiesToVocabulary(java.util.HashMap properties)