public class RDFTransformation extends Object implements Transformation
Identity| Constructor and Description |
|---|
RDFTransformation(ObservationFactory factory,
Store store,
String schema,
boolean dropFactsWithoutRules)
Creates a new transformation engine.
|
| Modifier and Type | Method and Description |
|---|---|
Observation |
transform(Observation fact,
Consumer<Observation> generatedReceiver) |
public RDFTransformation(ObservationFactory factory, Store store, String schema, boolean dropFactsWithoutRules) throws TransformationException
factory - factory used to generate new factsstore - ontology storeschema - SKOS schema to use together with notation to locate ontology concepts.
For notation, fact.getConceptId() is used. If set to null, behaves as
if Store.getConceptByNotation(String, org.openrdf.model.URI) is called with a null schema.dropFactsWithoutRules - if set to true, all facts without transformation rules are silently dropped.TransformationException - errors during XPathEvaluator initialisationpublic Observation transform(Observation fact, Consumer<Observation> generatedReceiver) throws TransformationException
transform in interface TransformationTransformationExceptionCopyright © 2013–2016 R.W.Majeed. All rights reserved.