If a lookup source is created from a source that has a sourceGraph, lookups will be restricted to that graph. This is undesirable in the case where we only want cubes from a specific graph but lookups outside of it (e.g. to look up canton names).
My current workaround:
const lookupSource = LookupSource.fromSource(cube.source);
// Override sourceGraph from cube source, so lookups also work outside of that graph
lookupSource.ptr.deleteOut(ns.cubeView.graph);
lookupSource.ptr.addOut(ns.cubeView.graph, rdf.defaultGraph());
If a lookup source is created from a source that has a sourceGraph, lookups will be restricted to that graph. This is undesirable in the case where we only want cubes from a specific graph but lookups outside of it (e.g. to look up canton names).
My current workaround:
Could be: