Newer
Older
import { fullTextQuery } from './SparqlQueriesGeneral'
const perspectiveConfig = backendSearchConfig[resultClass]
const { endpoint, propertiesQueryBlock } = perspectiveConfig
q = q.replace('<QUERY>', `(?id ?score) text:query ('${queryTerm.toLowerCase()}' 2000) .`)
q = q.replace('<RESULT_SET_PROPERTIES>', propertiesQueryBlock)
const results = await runSelectQuery({
query: endpoint.prefixes + q,
resultMapper: makeObjectList,
resultFormat