|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.hp.hpl.deli.Vocabulary
This class processes the CC/PP vocabulary definition file.
Field Summary | |
private java.util.HashMap |
attributeProperties
|
protected java.util.HashMap |
datatypesLookup
|
protected java.util.HashMap |
namespaceLookup
|
private static long |
serialVersionUID
Comment for serialVersionUID |
com.hp.hpl.jena.datatypes.TypeMapper |
tm
|
Constructor Summary | |
protected |
Vocabulary(java.lang.String configFile)
The constructor reads in a vocabulary definition file and then processess the set of vocabularies it references. |
Method Summary | |
protected void |
addAttributeToVocabulary(java.lang.String qualifiedAttribute,
java.lang.String currentComponent,
java.lang.String collectionType)
This method allows the processor to add a new attribute to the vocabulary, when it encounters attributes that are not defined in the vocabulary definition. |
protected java.util.Vector |
getAttPropertiesWithAttName(com.hp.hpl.jena.rdf.model.Resource qualifiedAttributeName)
|
protected java.util.Vector |
getAttPropertiesWithAttName(java.lang.String name)
This method returns a Vector of HashMaps representing the properties of Vocabulary Attributes with a given Attribute Name. |
protected java.util.HashMap |
getAttribute(com.hp.hpl.jena.rdf.model.Resource attributeQName)
|
protected com.hp.hpl.jena.rdf.model.Resource |
getAttributeProperty(com.hp.hpl.jena.rdf.model.Resource attributeQName,
java.lang.String paramName)
This method returns a given value for an attribute property where the attribute is specified by the attribute qname and its component qname. |
protected java.lang.String |
getRealNamespace(java.lang.String alias)
Get the actual namespace from a given alias. |
private com.hp.hpl.jena.rdf.model.Resource |
getRealQName(com.hp.hpl.jena.rdf.model.Resource theUri)
|
boolean |
usesRDFDatatyping(java.lang.String prfUri)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final long serialVersionUID
serialVersionUID
protected java.util.HashMap namespaceLookup
private java.util.HashMap attributeProperties
public com.hp.hpl.jena.datatypes.TypeMapper tm
protected java.util.HashMap datatypesLookup
Constructor Detail |
protected Vocabulary(java.lang.String configFile) throws javax.xml.parsers.ParserConfigurationException
configFile
- The filename of the vocabulary / namespace configuration file.Method Detail |
protected com.hp.hpl.jena.rdf.model.Resource getAttributeProperty(com.hp.hpl.jena.rdf.model.Resource attributeQName, java.lang.String paramName)
attributeQName
- The QName of the attribute.paramName
- The required Parameter (eg "ccppType").public boolean usesRDFDatatyping(java.lang.String prfUri)
private com.hp.hpl.jena.rdf.model.Resource getRealQName(com.hp.hpl.jena.rdf.model.Resource theUri)
protected java.util.Vector getAttPropertiesWithAttName(java.lang.String name)
name
- The attribute name as a string (eg 'ColorCapable').protected java.util.Vector getAttPropertiesWithAttName(com.hp.hpl.jena.rdf.model.Resource qualifiedAttributeName)
protected java.util.HashMap getAttribute(com.hp.hpl.jena.rdf.model.Resource attributeQName)
protected void addAttributeToVocabulary(java.lang.String qualifiedAttribute, java.lang.String currentComponent, java.lang.String collectionType)
qualifiedAttribute
- currentComponent
- The qualified name of the component, if known.collectionType
- The collection type, if known.protected java.lang.String getRealNamespace(java.lang.String alias)
alias
- the aliased namespace
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |