-
Notifications
You must be signed in to change notification settings - Fork 0
/
ddw-standard-catalog-index.ttl
31 lines (28 loc) · 1.24 KB
/
ddw-standard-catalog-index.ttl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
@prefix vg: <https://data.world/vg/1.0/> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix dwec: <https://dwec.data.world/v0/> .
@prefix dct: <http://purl.org/dc/terms/> .
@prefix aice: <https://data.world/aice/1.0/> .
@prefix kos: <https://open-kos.org/schema/> .
# Standard Catalog Indexes
# This file contains the configuration for standard catalog indexes. These are indexes that we assume to be in place
# for the context engine to function properly. If you're using the context engine, you'll want to make sure these
# indexes are in place in `{org}/ddw-catalogs`.
aice:BusinessTermsIndex
a vg:VectorIndex ;
vg:model vg:mxbai_embed_large_v1 ;
vg:indexerQuery """
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX dct: <http://purl.org/dc/terms/>
PREFIX dwec: <https://dwec.data.world/v0/>
PREFIX aice: <https://data.world/aice/1.0/>
SELECT ?iri (GROUP_CONCAT(?content; SEPARATOR = " ") AS ?value)
WHERE {
VALUES ?predicate { rdfs:label dct:title rdfs:comment dct:description }
?iri a/rdfs:subClassOf* dwec:BusinessTerm.
?iri ?predicate ?content.
}
GROUP BY ?iri
"""
.