forked from yum-yab/ont-component-search
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp-config.yml
83 lines (83 loc) · 2.44 KB
/
app-config.yml
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
version: "1.0"
indexConfig:
indexPath: /root/lucene-index
#indexMode: BUILD_DISK
indexMode: NONE
cleanIndex: true
cacheSize: 100000
commitInterval: 100000
indexFields:
- fieldName: label
resourceName: term
query: >
SELECT DISTINCT ?term ?label WHERE {
?term <http://www.w3.org/2000/01/rdf-schema#label> | <http://www.w3.org/2004/02/skos/core#prefLabel> | <http://purl.org/dc/elements/1.1/title> | <http://purl.org/dc/terms/title> ?label .
FILTER (lang(?label)="en" || lang(?label)="de" || lang(?label)="")
}
- fieldName: definition
resourceName: term
query: >
SELECT DISTINCT ?term ?definition WHERE {
?term <http://purl.obolibrary.org/obo/IAO_0000115> ?definition .
}
- fieldName: type
resourceName: term
query: >
SELECT DISTINCT ?term ?type WHERE {
?term <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> ?type .
}
fieldType: string
- fieldName: comment
resourceName: term
query: >
SELECT DISTINCT ?term ?comment WHERE {
?term <http://www.w3.org/2000/01/rdf-schema#comment> ?comment .
}
- fieldName: altLabel
resourceName: term
query: >
SELECT DISTINCT ?term ?altLabel WHERE {
?term <http://www.w3.org/2004/02/skos/core#altLabel> | <http://purl.obolibrary.org/obo/IAO_0000118> ?altLabel .
}
- fieldName: description
resourceName: term
query: >
SELECT DISTINCT ?term ?description
WHERE {
?term <http://purl.org/dc/elements/1.1/description> | <http://purl.org/dc/terms/description> | <http://purl.org/dc/terms/abstract> ?description .
}
queryConfig:
exactMatchBoost: 5
prefixMatchBoost: 2
fuzzyMatchBoost: 1
fuzzyEditDistance: 2
fuzzyPrefixLength: 2
maxResults: 100
format: JSON
queryFields:
- fieldName: label
weight: 8.0
highlight: true
queryByDefault: true
- fieldName: altLabel
weight: 6.0
highlight: true
queryByDefault: true
- fieldName: definition
weight: 1.0
highlight: true
queryByDefault: true
- fieldName: description
weight: 0.9
highlight: true
queryByDefault: true
- fieldName: comment
weight: 0.8
highlight: true
queryByDefault: true
- fieldName: type
weight: 20
highlight: false
queryByDefault: false
exact: true
tokenize: false