com.raritantechnologies.concept.rdf_owl
Class RdfOwlOutputProcessor

java.lang.Object
  extended bycom.raritantechnologies.concept.rdf_owl.RdfOwlOutputProcessor
All Implemented Interfaces:
IGatewayOutputProcessor

public class RdfOwlOutputProcessor
extends java.lang.Object
implements IGatewayOutputProcessor

Uses Jena API to convert IResultSet into Resource Description Framework (RDF) fact statements (Subject-relationship-Object 'triples') that can be used by a Ontology-based query processor. Maps RDF "triples" subject-predicate-object into a repository based on an RDF or OWL schema and an RDF - SearchSource mapping. Ensures that the data corresponds to the RDF ontology.

XML Configuration Template:
   <GatewayOutputProcessor class="com.raritantechnologies.concept.RDF.RDFOutputProcessor"
                              subjectField="[ result field with subject name ]"
                              defaultSubject="[ default subject (use if no field for subject) ]"
                              valueField="[ result field with the fact 'Object' value ]"
                              defaultRelationship="[ the relationship between subject and 'Object' ]" >

     <!-- Optional table defining mapping of result fields to subject/object "relationships" -->
     <FieldRelationships>
       <Field ID="[ result field with 'Object' value ]" relationship="[ name of fact relationship ]" />
       <!-- etc. . . -->
     </FieldRelationships>

   </GatewayOutputProcessor>
 

Developed by Raritan Technologies .

Author:
Ted Sullivan

Constructor Summary
RdfOwlOutputProcessor()
           
 
Method Summary
 void dataComplete()
          Data feed is complete.
 void initialize(org.w3c.dom.Element outputProcElem, ISearchFieldMap sfMap)
          Initialize the GatewayOutputProcessor from XML Configuration Element.
 java.lang.String processData(IResultSet data)
          returns name of XML File created/appended.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.raritantechnologies.searchApp.dataCollection.IGatewayOutputProcessor
getConfigurationXML, initialize
 

Constructor Detail

RdfOwlOutputProcessor

public RdfOwlOutputProcessor()
Method Detail

processData

public java.lang.String processData(IResultSet data)
Description copied from interface: IGatewayOutputProcessor
returns name of XML File created/appended.

Specified by:
processData in interface IGatewayOutputProcessor

dataComplete

public void dataComplete()
Description copied from interface: IGatewayOutputProcessor
Data feed is complete.

Specified by:
dataComplete in interface IGatewayOutputProcessor

initialize

public void initialize(org.w3c.dom.Element outputProcElem,
                       ISearchFieldMap sfMap)
Description copied from interface: IGatewayOutputProcessor
Initialize the GatewayOutputProcessor from XML Configuration Element.

Specified by:
initialize in interface IGatewayOutputProcessor