com.hp.hpl.deli
Class JenaProcessProfile
java.lang.Object
com.hp.hpl.deli.JenaProcessProfile
- All Implemented Interfaces:
- com.hp.hpl.jena.rdf.model.RDFErrorHandler
- class JenaProcessProfile
- extends java.lang.Object
- implements com.hp.hpl.jena.rdf.model.RDFErrorHandler
This class converts the RDF representation of a profile into a
custom profile data-structure using Jena.
- Author:
- Mark H. Butler (mark-h.butler@hp.com)
Method Summary |
void |
error(java.lang.Exception e)
|
void |
fatalError(java.lang.Exception e)
|
private com.hp.hpl.jena.rdf.model.Resource |
findRoot()
|
protected void |
println(java.lang.String message)
|
protected java.util.Vector |
process(java.lang.String resource)
Retrieves a resource and converts it from RDF
to a vector of attributes ready to be included in a profile
data structure. |
protected java.util.Vector |
process(java.util.Vector profileVector)
Processes a vector of profile-diffs and converts each
one from RDF to a vector of attributes ready to be
included in a profile data structure. |
protected java.util.Vector |
processModel(boolean validationMode)
Converts the Jena data structure to a vector of attributes. |
private void |
validatorError(java.lang.String component,
java.lang.String attribute,
java.lang.String message)
|
void |
warning(java.lang.Exception e)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
jenaProfile
protected com.hp.hpl.jena.rdf.model.Model jenaProfile
componentProperty
private com.hp.hpl.jena.rdf.model.Property componentProperty
typeProperty
private com.hp.hpl.jena.rdf.model.Property typeProperty
validationOn
private boolean validationOn
validFlag
protected boolean validFlag
defaultFlag
private boolean defaultFlag
profileAttributes
private java.util.Vector profileAttributes
vocabulary
Vocabulary vocabulary
workspace
Workspace workspace
arpReader
private com.hp.hpl.jena.rdf.arp.JenaReader arpReader
warnedAboutMissingTypes
boolean warnedAboutMissingTypes
JenaProcessProfile
protected JenaProcessProfile()
warning
public void warning(java.lang.Exception e)
- Specified by:
warning
in interface com.hp.hpl.jena.rdf.model.RDFErrorHandler
error
public void error(java.lang.Exception e)
- Specified by:
error
in interface com.hp.hpl.jena.rdf.model.RDFErrorHandler
fatalError
public void fatalError(java.lang.Exception e)
- Specified by:
fatalError
in interface com.hp.hpl.jena.rdf.model.RDFErrorHandler
process
protected java.util.Vector process(java.lang.String resource)
throws java.lang.Exception
- Retrieves a resource and converts it from RDF
to a vector of attributes ready to be included in a profile
data structure.
- Parameters:
resource
- The profile URL.
- Returns:
- The processed vector of attributes.
- Throws:
java.lang.Exception
process
protected java.util.Vector process(java.util.Vector profileVector)
throws java.lang.Exception
- Processes a vector of profile-diffs and converts each
one from RDF to a vector of attributes ready to be
included in a profile data structure.
- Parameters:
profileVector
- A vector of profile-diffs.
- Returns:
- The processed vector of attributes.
- Throws:
java.lang.Exception
println
protected void println(java.lang.String message)
processModel
protected java.util.Vector processModel(boolean validationMode)
throws com.hp.hpl.jena.rdf.model.RDFException,
java.lang.Exception
- Converts the Jena data structure to a vector of attributes.
- Returns:
- The processed vector of attributes.
- Throws:
com.hp.hpl.jena.rdf.model.RDFException
java.lang.Exception
findRoot
private com.hp.hpl.jena.rdf.model.Resource findRoot()
throws java.lang.Exception
- Throws:
java.lang.Exception
validatorError
private void validatorError(java.lang.String component,
java.lang.String attribute,
java.lang.String message)