ontea.transform
Class SesameIndividualSearch

java.lang.Object
  extended by ontea.transform.SesameIndividualSearch
All Implemented Interfaces:
ResultTransformer

public class SesameIndividualSearch
extends java.lang.Object
implements ResultTransformer

Transforming results to ontology results Ontology results are search in sesame repository and results contain of URI of found individual in sesame repository

Author:
Michal Laclavik

Field Summary
(package private)  Memory mem
           
(package private)  Operations sO
           
 
Constructor Summary
SesameIndividualSearch(Memory _mem)
          Initialize class with sesame repository represented by Memory wrapper of sesame repository
 
Method Summary
 Result transform(Result result)
          Returns first found ResultOnto from Sesame repository or null if nothing found
 java.util.Set<Result> transform(java.util.Set<Result> results)
          Returns all found results of ResultOnto type from Sesame repository or null if nothing found
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mem

Memory mem

sO

Operations sO
Constructor Detail

SesameIndividualSearch

public SesameIndividualSearch(Memory _mem)
Initialize class with sesame repository represented by Memory wrapper of sesame repository

Parameters:
_mem - sesame repository represented by Memory
Method Detail

transform

public Result transform(Result result)
Returns first found ResultOnto from Sesame repository or null if nothing found

Specified by:
transform in interface ResultTransformer
Parameters:
result - result to be transformed
Returns:
transformed result
See Also:
ResultTransformer.transform(ontea.core.Result)

transform

public java.util.Set<Result> transform(java.util.Set<Result> results)
Returns all found results of ResultOnto type from Sesame repository or null if nothing found

Specified by:
transform in interface ResultTransformer
Parameters:
results - set of results
Returns:
transformed set of results
See Also:
ResultTransformer.transform(java.util.Set)