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