com.raritantechnologies.temis
Class TemisFactRelationshipExtractor

java.lang.Object
  extended bycom.raritantechnologies.temis.TemisFactRelationshipExtractor
All Implemented Interfaces:
IConfigurable, IFactRelationshipExtractor, IResultParser

public class TemisFactRelationshipExtractor
extends java.lang.Object
implements IFactRelationshipExtractor

Uses TEMIS Insight Discoverer Extractor (IDE) to extract a set of fact relationships from one or more result fields.

XML Configuration Template:

 


Field Summary
 
Fields inherited from interface com.raritantechnologies.searchApp.IResultParser
TEMPLATE
 
Constructor Summary
TemisFactRelationshipExtractor()
           
 
Method Summary
 void addFactRelationships(org.w3c.dom.Element documentElement, java.util.Map termMap)
          Add Fact Relationships from a document.
 IResultSet getFactTermResults(IResult result, java.lang.String termField, java.lang.String associatedTermField, java.lang.String factRelationshipField, java.lang.String[] additionalFields)
          Extracts a set of results with a term, associated term and the fact relationship between them from a result object.
 java.lang.String getRelationshipType()
           
 void initialize(org.w3c.dom.Element elem)
          Initializes the object from an XML tag or element.
 IResult parse(java.lang.String dataString)
          Parses a structured data string into an IResult with subject, predicate, object fields.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TemisFactRelationshipExtractor

public TemisFactRelationshipExtractor()
Method Detail

addFactRelationships

public void addFactRelationships(org.w3c.dom.Element documentElement,
                                 java.util.Map termMap)
Add Fact Relationships from a document.

Specified by:
addFactRelationships in interface IFactRelationshipExtractor

getRelationshipType

public java.lang.String getRelationshipType()
Specified by:
getRelationshipType in interface IFactRelationshipExtractor

getFactTermResults

public IResultSet getFactTermResults(IResult result,
                                     java.lang.String termField,
                                     java.lang.String associatedTermField,
                                     java.lang.String factRelationshipField,
                                     java.lang.String[] additionalFields)
Description copied from interface: IFactRelationshipExtractor
Extracts a set of results with a term, associated term and the fact relationship between them from a result object. In general these will be reciprical relationships.

Specified by:
getFactTermResults in interface IFactRelationshipExtractor

parse

public IResult parse(java.lang.String dataString)
Parses a structured data string into an IResult with subject, predicate, object fields.

Specified by:
parse in interface IResultParser

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