forked from rue-a/rdf_viz
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.js
More file actions
61 lines (60 loc) · 2.45 KB
/
config.js
File metadata and controls
61 lines (60 loc) · 2.45 KB
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
const config = {
"content": {
// SPARQL endpoint that is queried
"endpoint": "https://geokur-dmp2.geo.tu-dresden.de/fuseki/geokur_quality_register/sparql",
// node on which the vizualization starts
"initial_node": "https://geokur-dmp.geo.tu-dresden.de/quality-register#qualityRegister",
// prefixes that are used by the program and content descriptions
"prefixes": {
"dqv": "http://www.w3.org/ns/dqv#",
"dct": "http://purl.org/dc/terms/",
"xsd": "http://www.w3.org/2001/XMLSchema#",
"skos": "http://www.w3.org/2004/02/skos/core#",
"rdfs": "http://www.w3.org/2000/01/rdf-schema#",
"rdf": "http://www.w3.org/1999/02/22-rdf-syntax-ns#",
"prov": "http://www.w3.org/ns/prov#",
"gkq": "https://geokur-dmp.geo.tu-dresden.de/quality-register#"
},
// edges that should be visualized (this also determines the vizualized nodes)
"predicates": [
"dqv:inDimension",
"dqv:inCategory",
"gkq:inRegister"
],
// labels that are quried for, and order of visualization (if no rdfs:label, then show skos:prefLabel. if no skos:prefLabel, then ...)
"labels": [
"rdfs:label",
"skos:prefLabel",
"dct:title"
],
// same as labels
"descriptions": [
"rdfs:comment",
"skos:definition",
"dct:description"
],
// predicates that describe a node's metadata (only prefixed predicates are allowed here)
"metadata_predicates": [
"skos:prefLabel",
"rdf:type",
]
},
"style": {
// does anything happen when the user hovers a node
"hover": true,
// node colors for specific RDF classes (the prefixes from above are not allow here, only use full IRIs)
"node_colors": {
"http://www.w3.org/ns/dqv#Category": 'rgb(123, 169, 255)',
"http://www.w3.org/ns/dqv#Dimension": 'rgb(255, 167, 132)',
"http://www.w3.org/ns/dqv#Metric": 'rgb(76, 240, 166)'
},
// node radius in px
"radius": 25,
"label_color": 'black',
"label_container_color": 'rgba(255,255,255,0.8)',
"description_color": 'white',
"description_container_color": 'rgba(130,130,130,0.9)',
"label_container_width": 300,
"description_container_width": 300,
}
}