public class RDFTransformer extends Object
RDFTransformer.Operation
. Each statement goes through the
chain, until an operation returns true. Usually, you would append either the operation RETAIN
or
an instance of RDFTransformer.DiscardOperation
.Modifier and Type | Class and Description |
---|---|
static class |
RDFTransformer.AbstractOperation
An abstract implementation of the interface
RDFTransformer.Operation that processes a given statement
providing that it satisfies a given predicate. |
static class |
RDFTransformer.BNodePredicate
A predicate that filters bnodes.
|
static class |
RDFTransformer.DiscardOperation
Concrete operation that discards a statement.
|
static class |
RDFTransformer.LiteralPredicate
A predicate over RDF literals.
|
static interface |
RDFTransformer.Operation
An operation for transforming an RDF statement.
|
static class |
RDFTransformer.StatementPredicate
A predicate over RDF statements.
|
static class |
RDFTransformer.URIPredicate
A statement that matches a given URI.
|
Modifier and Type | Field and Description |
---|---|
static RDFTransformer.Operation |
RETAIN
Concrete operation that retains an explicit statement in the main graph.
|
Constructor and Description |
---|
RDFTransformer() |
Modifier and Type | Method and Description |
---|---|
void |
appendOperation(RDFTransformer.Operation operation)
Appends an operation to the processing chain.
|
void |
doTransformation(RDFModel sourceModel,
RDFModel targetModel)
Executes the transformation.
|
boolean |
removeOperation(RDFTransformer.Operation operation)
Removes an operation from the processing chain.
|
public static RDFTransformer.Operation RETAIN
public void doTransformation(RDFModel sourceModel, RDFModel targetModel) throws Exception
sourceModel
- the source modeltargetModel
- the target modelException
public void appendOperation(RDFTransformer.Operation operation)
operation
- the operation to be addedpublic boolean removeOperation(RDFTransformer.Operation operation)
operation
- the operation to be removedCopyright © 2015 ART Group, University of Rome, Tor Vergata. All Rights Reserved.