{
const term = 'muscheln'
const doctype = 'scm:Material'
const res = await query(WOQL.and(
WOQL
.select('v:label', 'v:subject')
.limit(10)
.order_by('v:dist', 'desc')
.and(
WOQL.triple('v:subject', 'rdfs:label', 'v:label'),
WOQL.triple('v:subject', 'rdf:type', doctype || 'v:doctype'),
WOQL.like(term, 'v:label', 'v:dist')
)
))
return res.bindings
}