links = {
Client.db(database)
const res = await query(WOQL
.select('v:target', 'v:source', 'v:label', WOQL
.or(
...graphs.map(graph => WOQL.from(graph, WOQL
.triple('v:target', 'rdf:type', 'v:targetType')
.or(
WOQL.triple('v:source', 'v:label', 'v:target'),
)
))
)
)
)
return flattenBindings(res.bindings)
}