Newer
Older
import {
findPropertiesFacetResults,
findPropertiesInstancePage
} from '../sparql_queries/SparqlQueriesFinds'
import { prefixes } from '../sparql_queries/SparqlQueriesPrefixesFindSampo'
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
endpoint: {
url: 'https://ldf.fi/sualt-fha-finds/sparql',
// url: 'http://localhost:3039/ds/sparql',
prefixes,
useAuth: true
},
facetClass: ':Find',
paginatedResults: {
properties: findPropertiesFacetResults
},
instance: {
properties: findPropertiesInstancePage,
relatedInstances: ''
},
facets: {
findName: {
id: 'findName',
facetValueFilter: '',
predicate: ':find_name',
labelPath: ':find_name',
type: 'list',
literal: true
},
specification: {
id: 'specification',
facetValueFilter: '',
predicate: ':specification',
labelPath: ':specification',
type: 'list',
literal: true
},
type: {
id: 'type',
facetValueFilter: '',
predicate: ':type',
labelPath: ':type',
type: 'list',
literal: true
},
subCategory: {
id: 'subCategory',
facetValueFilter: '',
predicate: ':sub_category',
labelPath: ':sub_category',
type: 'list',
literal: true
},
objectSubCategory: {
id: 'objectSubCategory',
facetValueFilter: '',
predicate: ':object_type',
labelPath: ':object_type/skos:prefLabel',
type: 'list',
facetLabelFilter: 'FILTER(LANG(?prefLabel_) = \'fi\')'
},
material: {
id: 'material',
facetValueFilter: '',
predicate: ':material',
labelPath: ':material/skos:prefLabel',
type: 'hierarchical',
parentPredicate: ':material/skos:broader+',
parentProperty: 'skos:broader'
},
materialLiteral: {
id: 'materialLiteral',
facetValueFilter: '',
predicate: ':material_literal',
labelPath: ':material_literal',
type: 'list',
literal: true
},
period: {
id: 'period',
facetValueFilter: '',
predicate: ':period',
labelPath: ':period',
type: 'list',
literal: true
},
periodObject: {
id: 'periodObject',
facetValueFilter: '',
predicate: ':earliest_period|:latest_period',
labelPath: ':earliest_period/skos:prefLabel|:latest_period/skos:prefLabel',
type: 'hierarchical',
parentPredicate: ':earliest_perio/skos:broader+|:latest_period/skos:broader+',
parentProperty: 'skos:broader'
},
// startYear: {
// id: 'startYear',
// labelPath: ':start_year'
// },
// endYear: {
// id: 'endYear',
// labelPath: ':end_year'
// },
// startYear: {
// id: 'startYear',
// labelPath: 'crm:P4_has_time_span/crm:P82a_begin_of_the_begin'
// },
// endYear: {
// id: 'endYear',
// labelPath: 'crm:P4_has_time_span/crm:P82b_end_of_the_end'
// },
municipality: {
id: 'municipality',
facetValueFilter: '',
predicate: ':municipality',
labelPath: ':municipality/skos:prefLabel',
type: 'list'
},
place: {
id: 'place',
facetValueFilter: '',
predicate: ':municipality/skos:related',
labelPath: ':municipalityskos:related//skos:prefLabel',
type: 'hierarchical',
parentPredicate: ':municipality/skos:related/skos:broader+',
parentProperty: 'skos:broader',
facetLabelFilter: 'FILTER(LANG(?prefLabel_) = \'fi\')'
},
objectType: {
id: 'objectType',
facetValueFilter: '',
predicate: ':object_type',
labelPath: ':object_type/skos:prefLabel',
type: 'hierarchical',
parentPredicate: ':object_type/skos:broader+',
parentProperty: 'skos:broader'