Skip to content

Commit ff7c400

Browse files
committed
spec update and /prefixes/
the prefixes.jsonld file is now generated from _data/prefixes.yaml
1 parent ecccc15 commit ff7c400

File tree

7 files changed

+177
-55
lines changed

7 files changed

+177
-55
lines changed

_data/prefixes.json

Lines changed: 0 additions & 14 deletions
This file was deleted.

_data/prefixes.yaml

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

prefixes.html

Lines changed: 48 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,53 @@
11
---
22
layout: default
3-
title: Prefixes
3+
title: Namespace Prefixes
44
permalink: /prefixes/
55
---
66

7-
{% for prefsuf in site.data.prefixes['@context'] %}
8-
{{ prefsuf[0] }}: {{ prefsuf[1] }}
9-
{% endfor %}
7+
<div class="container">
8+
<div class="page-header">
9+
<h2>Prefix Registry</h2>
10+
</div>
11+
<p>
12+
An easy way to extend CoverageJSON is to add new fields to it.
13+
In order to avoid name clashes (both with other extensions and future versions of the format)
14+
it is recommended to use names of the form <code>"prefix:suffix"</code>.
15+
If CoverageJSON documents using that prefix shall be published more widely,
16+
then it should be registered together with the corresponding namespace URI.
17+
A registration avoids name clashes and eases common understanding of extensions without establishing the full
18+
machinery of JSON-LD for example.
19+
More details can be found in the <a href="http://covjson.org/spec/#extensions">"Extensions" section</a>
20+
of the specification.
21+
</p>
22+
23+
<div class="panel panel-primary">
24+
<div class="panel-heading">
25+
<h3 class="panel-title">How to register a prefix</h3>
26+
</div>
27+
<div class="panel-body">
28+
<strong>Very simple!</strong>
29+
The only thing you have to do is edit the
30+
<a href="https://github.com/covjson/covjson.github.io/blob/master/_data/prefixes.yaml">prefixes.yaml</a>
31+
file on GitHub and submit a pull request. Once the request is accepted, the prefix entry immediately appears in
32+
the table below, as well as in the <a href="http://covjson.org/prefixes.jsonld">covjson.org/prefixes.jsonld</a>
33+
file which is included in the <a href="http://covjson.org/context.jsonld">default JSON-LD context</a>,
34+
making it available for linked data applications.
35+
If you register a prefix for a common namespace, try to use an established prefix.
36+
The website <a href="http://prefix.cc/">prefix.cc</a> may provide some help for that.
37+
</div>
38+
</div>
39+
40+
<table class="table">
41+
<thead>
42+
<tr>
43+
<th>Prefix</th>
44+
<th>URI</th>
45+
</tr>
46+
</thead>
47+
<tbody>
48+
{% for entry in site.data.prefixes %}
49+
<tr><td>{{ entry[0] }}</td><td><a href="{{ entry[1] }}" target="_blank">{{ entry[1] }}</a></td></tr>
50+
{% endfor %}
51+
</tbody>
52+
</table>
53+
</div>

prefixes.jsonld

Lines changed: 0 additions & 14 deletions
This file was deleted.

prefixes.jsonldgen

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
permalink: /prefixes.jsonld
3+
---
4+
{
5+
"@context": {
6+
{% for entry in site.data.prefixes %} "{{ entry[0] }}": "{{ entry[1] }}"
7+
{% endfor %} }
8+
}

0 commit comments

Comments
 (0)