Open
Description
When running MLCP transform on triple data the context
argument does not contain any collections. I suspect this is because triplestore data uses the -output_graph
argument instead of the -output_collection
argument. This requires me to pass in the output graph using -transform_param
so that I can assign collections to the context in the transform function.
function transform(content, context) {
const graph = context.transform_param;
// Document transform logic
// Without this line, the resulting document is not put into a graph
context.collections = [graph];
return content;
}
Suggested fix: Use -output_graph
argument value as context.collections
if there was no -output_collection
argument provided.