ontea.transform
Class JenaIndividualSearchAndCreate

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

public class JenaIndividualSearchAndCreate
extends java.lang.Object
implements ResultTransformer

Transforming results to ontology results Ontology results are search in jena repository and results contain of URI of found individual in jena repository If results are not find and type of result individual is set - new jena ontology individuals are created

Author:
Michal Laclavik

Field Summary
(package private)  Memory mem
           
(package private)  Operations sO
           
 
Constructor Summary
JenaIndividualSearchAndCreate(Memory _mem)
          Initialize class with Jena repository represented by Memory wrapper of Jena repository
 
Method Summary
 Result transform(Result result)
          Returns first found ResultOnto from Jena repository or null if nothing found
 java.util.Set<Result> transform(java.util.Set<Result> results)
          Returns all found results of ResultOnto type from Jena 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

JenaIndividualSearchAndCreate

public JenaIndividualSearchAndCreate(Memory _mem)
Initialize class with Jena repository represented by Memory wrapper of Jena repository

Parameters:
_mem - Jena repository represented by Memory
Method Detail

transform

public Result transform(Result result)
Returns first found ResultOnto from Jena 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 Jena 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)