forked from noi-techpark/webcomp-kg
-
Notifications
You must be signed in to change notification settings - Fork 0
/
wcs-manifest.json
79 lines (79 loc) · 2.75 KB
/
wcs-manifest.json
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
{
"title": "Webcomponent Knowledge Graph",
"description": "A webcomponent for showing info from a Knowledge Graph",
"descriptionAbstract": "A webcomponent for a Knowledge Graph",
"license": "AGPL-3.0-or-later",
"copyrightHolders": [
{
"name": "NOI",
"email": "info@noi.bz.it",
"organization": "NOI S.p.A",
"organizationUrl": "https://noi.bz.it"
},
{
"name": "Ontopic",
"email": "inquiry@ontopic.biz ",
"organization": "Ontopic",
"organizationUrl": "https://ontopic.biz/"
}
],
"authors": [
{
"name": "Guohui Xiao",
"email": "guohui.xiao@ontopic.biz",
"organization": "Ontopic s.r.l.",
"organizationUrl": "https://ontop-vkg.org"
},
{
"name": "Sarah Komla-Ebri",
"email": "sarah.komlaebri@ontopic.biz",
"organization": "Ontopic s.r.l.",
"organizationUrl": "https://ontop-vkg.org"
}
],
"image": "wcs-logo.webp",
"searchTags": [
"Knowledge Graph"
],
"dist": {
"basePath": "example",
"files": [
"webcomp-kg.js"
]
},
"configuration": {
"tagName": "kg-widget",
"options": [
{
"key": "view",
"type": "select",
"required": true,
"options": {
"values": [
"gallery",
"map",
"table"
],
"default": "map"
}
},
{
"key": "endpoint",
"type": "text",
"required": true,
"options": {
"default": "https://sparql.opendatahub.bz.it/sparql"
}
},
{
"key": "query",
"type": "text",
"label": "query examples at https://github.com/noi-techpark/webcomp-kg/tree/master/example",
"required": true,
"options": {
"default": "PREFIX schema: <http://schema.org/>\n PREFIX geo: <http://www.opengis.net/ont/geosparql#>\n SELECT ?h ?pos ?posLabel ?posColor ?posIcon\n WHERE {\n ?h a schema:LodgingBusiness ;\n geo:defaultGeometry/geo:asWKT ?pos ;\n schema:name ?posLabel ;\n schema:address ?a .\n FILTER (lang(?posLabel) = 'de')\n # Colors\n OPTIONAL {\n ?h a schema:Campground .\n BIND('chlorophyll,0.5' AS ?posColor) # Green\n }\n OPTIONAL {\n ?h a schema:BedAndBreakfast .\n BIND('viridis,0.1' AS ?posColor) # Purple\n }\n OPTIONAL {\n ?h a schema:Hotel .\n BIND('jet,0.3' AS ?posColor) # Light blue\n }\n OPTIONAL {\n ?h a schema:Hostel .\n BIND('jet,0.8' AS ?posColor) # Red\n }\n OPTIONAL {\n # default\n BIND('jet,0.8' AS ?posColor) # Red\n }\n }\n LIMIT 500"
}
}
]
}
}