public class LinkerImpl extends Object implements Linker
Constructor and Description |
---|
LinkerImpl(boolean isFirstInPipeline,
Integer... groupIds)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
List<DebugResult> |
debugRules(File inputFile,
TransformationContext context,
TableVersion tableVersion,
SerializationLanguage language)
Debugs linkage rules.
|
List<DebugResult> |
debugRules(String input,
TransformationContext context,
TableVersion tableVersion)
Debugs linkage rules.
|
void |
shutdown()
Called when the instance of the transformer is no longer needed.
|
void |
transformGraph(TransformedGraph inputGraph,
TransformationContext context)
Transforms a graph.
|
public LinkerImpl(boolean isFirstInPipeline, Integer... groupIds)
isFirstInPipeline
- flag, when set to true, linker clears existing links before creating new
when transforming existing graphgroupIds
- list of linkage rules groups IDs, which are used transformGraph and debugRules methodspublic void transformGraph(TransformedGraph inputGraph, TransformationContext context) throws TransformerException
transformGraph
in interface Transformer
inputGraph
- holder for the transformed graph.context
- context of the transformationTransformerException
- exceptionpublic void shutdown()
Transformer
shutdown
in interface Transformer
public List<DebugResult> debugRules(String input, TransformationContext context, TableVersion tableVersion) throws TransformerException
Linker
debugRules
in interface Linker
input
- RDF data, supported languages are RDF/XML, N3 and its subsetscontext
- emulates real context used when running in a pipeline;
transformer directory and database credentials are neededtableVersion
- determines, whether to use uncommitted or committed version of rulesTransformerException
public List<DebugResult> debugRules(File inputFile, TransformationContext context, TableVersion tableVersion, SerializationLanguage language) throws TransformerException
Linker
debugRules
in interface Linker
inputFile
- input RDF data, file is passed to Silk without any processingcontext
- emulates real context used when running in a pipeline;
transformer directory and database credentials are neededtableVersion
- determines, whether to use uncommitted or committed version of ruleslanguage
- format of the input data, supported languages are RDF/XML, N3 and its subsetsTransformerException
Copyright © 2013. All Rights Reserved.