-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.js
105 lines (104 loc) · 2.5 KB
/
config.js
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
const channels = require('./config/routes/channels');
const collections = require('./config/routes/collections');
const programmes = require('./config/routes/programmes');
module.exports = {
debug: typeof process !== 'undefined' && process.env.NODE_ENV === 'development',
metadata: {
title: 'MEMAD',
logo: '/images/logo.png',
},
home: {
hero: {
showHeadline: true,
showLogo: true,
},
},
footer: {
logo: '/images/footer.png',
},
search: {
route: 'programmes',
allowTextSearch: true,
textSearchQuery: {
'@graph': [
{
'@id': '?id',
'@type': '?rdfType',
label: '?label',
},
],
$where: [
'?id a ?rdfType',
'?id ?labelType ?label',
],
$values: {
'?rdfType': [
'ebucore:PublicationChannel',
'ebucore:Collection',
'ebucore:TVProgramme',
'ebucore:RadioProgramme'
],
'?labelType': [
'ebucore:title',
'ebucore:publicationChannelName'
]
},
$langTag: 'hide',
},
allowImageSearch: false,
placeholderImage: '/images/placeholder.jpg',
languages: {
en: 'English',
fr: 'Français',
},
defaultLanguage: 'en',
},
api: {
endpoint: 'https://memad.eurecom.fr/sparql-endpoint',
prefixes: {
'rdfs': 'http://www.w3.org/2000/01/rdf-schema#',
'schema': 'http://schema.org/',
'dc': 'http://purl.org/dc/elements/1.1/',
'skos': 'http://www.w3.org/2004/02/skos/core#',
'ebucore': 'http://www.ebu.ch/metadata/ontologies/ebucore/ebucore#',
'memad': 'http://data.memad.eu/ontology#',
}
},
routes: {
channels,
collections,
programmes,
},
imagesDomains: ['explorer.memad.eu'],
graphs: {
'http://data.memad.eu/graph/ina-ld': {
label: 'INA',
icon: '/images/graphs/http-data-memad-eu-graph-ina-ld.png',
},
'http://data.memad.eu/graph/yle': {
label: 'Yle',
icon: '/images/graphs/http-data-memad-eu-graph-yle.png',
}
},
vocabularies: {},
plugins: {
videoSegments: {
query: {
'@graph': [
{
'@id': '?id',
start: '$ebucore:start$sample',
end: '$ebucore:end$sample',
title: '$ebucore:title',
description: '$ebucore:description',
},
],
$where: [
'?id a ebucore:Part',
'?video ebucore:hasPart ?id',
],
$langTag: 'hide',
}
}
}
};