-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.js
102 lines (101 loc) · 3.06 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
const smells = require('./config/routes/smells');
const smellSources = require('./config/routes/smell-sources');
const fragrantSpaces = require('./config/routes/fragrant-spaces');
const gesturesAllegories = require('./config/routes/gestures-allegories');
const about = require('./config/routes/about');
module.exports = {
debug: typeof process !== 'undefined' && process.env.NODE_ENV === 'development',
metadata: {
title: 'Odeuropa Explorer',
logo: '/images/logo.png',
},
head: {
styles: ['https://fonts.googleapis.com/css?family=Libre+Caslon+Text'],
preload: [
{
href: '/fonts/FuturaStdBook.woff2',
as: 'font',
type: 'font/woff2',
crossOrigin: 'anonymous',
},
],
},
home: {
hero: {
showHeadline: true,
showLogo: false,
},
},
footer: {
logo: ['/images/eu-logo.png', { url: '/images/footer.png', href: 'https://odeuropa.eu' }],
},
search: {
route: 'smells',
allowTextSearch: true,
allowImageSearch: false,
showInHeader: false,
placeholderImage: '/images/placeholder.jpg',
languages: {
de: 'Deutsch',
en: 'English',
fr: 'Français',
it: 'Italiano',
nl: 'Nederlands',
sl: 'Slovenski',
},
defaultLanguage: 'en',
},
api: {
endpoint: 'https://data.odeuropa.eu/repositories/odeuropa',
params: {
sameAs: false,
infer: false,
},
queryLink: (query) => `https://data.odeuropa.eu/sparql?query=${encodeURIComponent(query)}`,
prefixes: {
'luc-index': 'http://www.ontotext.com/connectors/lucene/instance#',
'olfactory-objects': 'http://data.odeuropa.eu/vocabulary/olfactory-objects/',
crm: 'http://erlangen-crm.org/current/',
crmsci: 'http://www.ics.forth.gr/isl/CRMsci/',
dc: 'http://purl.org/dc/elements/1.1/',
dcmi: 'http://purl.org/dc/dcmitype/',
gn: 'http://www.geonames.org/ontology#',
luc: 'http://www.ontotext.com/connectors/lucene#',
ma: 'http://www.w3.org/ns/ma-ont#',
nsa: 'http://organon.elis.ugent.be/ontologies/ninsuna#',
oa: 'http://www.w3.org/ns/oa#',
od: 'http://data.odeuropa.eu/ontology/',
rdfs: 'http://www.w3.org/2000/01/rdf-schema#',
reo: 'https://read-it.acc.hum.uu.nl/ontology#',
schema: 'https://schema.org/',
skos: 'http://www.w3.org/2004/02/skos/core#',
time: 'http://www.w3.org/2006/time#',
voc: 'http://data.odeuropa.eu/vocabulary/',
wgs: 'http://www.w3.org/2003/01/geo/wgs84_pos#',
xsd: 'http://www.w3.org/2001/XMLSchema#',
},
},
routes: {
smells,
'smell-sources': smellSources,
'fragrant-spaces': fragrantSpaces,
'gestures-allegories': gesturesAllegories,
about: about,
},
imagesDomains: ['data.odeuropa.eu', 'commons.wikimedia.org'],
graphs: () => ({
'@context': 'http://schema.org/',
'@graph': [
{
'@id': '?g',
label: '?label',
},
],
$where: ['GRAPH ?g { ?id a od:L11_Smell }', '?g rdfs:label ?label'],
$orderby: 'ASC(?label)',
}),
vocabularies: {},
analytics: {
id: 'G-KLL4E6TZWE',
},
};