com.raritantechnologies.concept.rdf_owl
Class TreeRdfOwlGenerator
java.lang.Object
com.raritantechnologies.concept.rdf_owl.TreeRdfOwlGenerator
- All Implemented Interfaces:
- IConfigurable, ITreeXMLGenerator
- public class TreeRdfOwlGenerator
- extends java.lang.Object
- implements ITreeXMLGenerator
Builds an RDF XML from a TreeRoot object.
XML Configuration Template:
<TreeXMLGenerator class="com.raritantechnologies.concept.rdf_owl.TreeRdfOwlGenerator"
rdfSchema="[ uri of RDF schema to use ]" >
<!-- Mapping of RDF-Schema to TreeRoot attribute / nested Result objects -->
<AttributeMap>
<Attribute name="[ name of attribute in TreeRoot object ]" rdfPredicate="[ name of RDF predicate in schema ]" />
<!-- etc. . . -->
</AttributeMap>
</TreeXMLGenerator>
Developed by
Raritan Technologies .
- Author:
- Ted Sullivan
|
Method Summary |
java.lang.String |
getXML(TreeRoot tree)
returns an XML string that represents data in a TreeRoot object. |
void |
initialize(org.w3c.dom.Element elem)
Initializes the object from an XML tag or element. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TreeRdfOwlGenerator
public TreeRdfOwlGenerator()
getXML
public java.lang.String getXML(TreeRoot tree)
- Description copied from interface:
ITreeXMLGenerator
- returns an XML string that represents data in a TreeRoot object.
- Specified by:
getXML in interface ITreeXMLGenerator
initialize
public void initialize(org.w3c.dom.Element elem)
- Description copied from interface:
IConfigurable
- Initializes the object from an XML tag or element.
This method is called by the Framework as part of the application initializtion.
see ConfigurationManager, XMLConfigurationManager, XMLSearchFieldMapFactory, XMLSearchSourceFactory.
Configurable objects that are owned or contained by other configurable objects will be initialized
in by the parent object.
- Specified by:
initialize in interface IConfigurable