Skip to content

Commit ecccc15

Browse files
committed
get prefix rendering working
1 parent 3e7fa7b commit ecccc15

File tree

4 files changed

+41
-13
lines changed

4 files changed

+41
-13
lines changed

_data/prefixes.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"@context": {
3+
"xsd": "http://www.w3.org/2001/XMLSchema#",
4+
"covjson": "https://covjson.org/def/core#",
5+
"covjsondt": "https://covjson.org/def/domainTypes#",
6+
"ssn": "http://www.w3.org/2005/Incubator/ssn/ssnx/ssn#",
7+
"skos": "http://www.w3.org/2004/02/skos/core#",
8+
"dct": "http://purl.org/dc/terms/",
9+
"hydra": "http://www.w3.org/ns/hydra/core#",
10+
"qudt": "http://qudt.org/schema/qudt#",
11+
"ignf": "http://data.ign.fr/def/ignf#",
12+
"inspiregloss": "http://inspire.ec.europa.eu/glossary/"
13+
}
14+
}

context.jsonld

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,12 @@
11
{
2-
"@context": {
2+
"@context": [
3+
"http://covjson.org/prefixes.jsonld"
4+
, {
35
"@vocab": "_:",
46
"id": "@id",
57
"type": "@type",
68
"value": "@value",
79

8-
"xsd": "http://www.w3.org/2001/XMLSchema#",
9-
"covjson": "https://covjson.org/def/core#",
10-
"covjsondt": "https://covjson.org/def/domainTypes#",
11-
"ssn": "http://www.w3.org/2005/Incubator/ssn/ssnx/ssn#",
12-
"skos": "http://www.w3.org/2004/02/skos/core#",
13-
"dct": "http://purl.org/dc/terms/",
14-
"hydra": "http://www.w3.org/ns/hydra/core#",
15-
"qudt": "http://qudt.org/schema/qudt#",
16-
"ignf": "http://data.ign.fr/def/ignf#",
17-
"inspiregloss": "http://inspire.ec.europa.eu/glossary/",
18-
1910
"label": { "@id": "skos:prefLabel", "@container": "@language" },
2011
"title": { "@id": "dct:title", "@container": "@language" },
2112
"description": { "@id": "dct:description", "@container": "@language" },
@@ -92,5 +83,5 @@
9283
"MultiPolygonSeries": "covjsondt:MultiPolygonSeries",
9384
"MultiPolygon": "covjsondt:MultiPolygon",
9485
"Polygon": "covjsondt:Polygon"
95-
}
86+
}]
9687
}

prefixes.html

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
layout: default
3+
title: Prefixes
4+
permalink: /prefixes/
5+
---
6+
7+
{% for prefsuf in site.data.prefixes['@context'] %}
8+
{{ prefsuf[0] }}: {{ prefsuf[1] }}
9+
{% endfor %}

prefixes.jsonld

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"@context": {
3+
"xsd": "http://www.w3.org/2001/XMLSchema#",
4+
"covjson": "https://covjson.org/def/core#",
5+
"covjsondt": "https://covjson.org/def/domainTypes#",
6+
"ssn": "http://www.w3.org/2005/Incubator/ssn/ssnx/ssn#",
7+
"skos": "http://www.w3.org/2004/02/skos/core#",
8+
"dct": "http://purl.org/dc/terms/",
9+
"hydra": "http://www.w3.org/ns/hydra/core#",
10+
"qudt": "http://qudt.org/schema/qudt#",
11+
"ignf": "http://data.ign.fr/def/ignf#",
12+
"inspiregloss": "http://inspire.ec.europa.eu/glossary/"
13+
}
14+
}

0 commit comments

Comments
 (0)