com.hp.hpl.deli
Class VocabularyConfig

java.lang.Object
  extended bycom.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)

Field Summary
protected  java.util.HashMap attributeProperties
           
(package private)  java.lang.String currentCcppUri
           
private  java.util.List datatypesDef
           
protected  java.util.HashMap datatypesLookup
           
protected  java.util.HashMap namespaceLookup
           
private  java.util.Vector schemas
           
private  java.util.Vector schemaURIs
           
(package private)  com.hp.hpl.jena.datatypes.TypeMapper tm
           
private  java.util.Vector vocabularies
           
 
Constructor Summary
(package private) VocabularyConfig(java.lang.String configFile)
          This constructor constructs the vocabulary object from the vocabulary configuration file.
 
Method Summary
private  void addAttributePropertiesToVocabulary(java.util.HashMap properties)
           
(package private)  void parseConfigFile(org.w3c.dom.Node root)
          Parses the namespace config file.
private  void schemaProcess(java.io.InputStream in, java.lang.String prfUri)
          This method traverses a UAProf RDF schema vocabulary definition file using Jena.
(package private)  void xmlVocabularyTraverse(org.w3c.dom.Node n)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

VocabularyConfig

VocabularyConfig(java.lang.String configFile)
           throws javax.xml.parsers.ParserConfigurationException
This constructor constructs the vocabulary object from the vocabulary configuration file.

Method Detail

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)