Sean Gillies (Posts about linked data)https://sgillies.net/tags/linked-data.atom2023-12-31T01:26:18ZSean GilliesNikolaGeoJSON-LD Context and Vocabulary Publicationhttps://sgillies.net/2017/01/09/geojson-ld-context-and-vocab-publication.html2017-01-09T08:17:57+01:002017-01-09T08:17:57+01:00Sean Gillies<p>The work of defining a JSON-LD context and RDF vocabulary for GeoJSON is done.
Documentation on version 1.0 of the context and context, including links to the
JSON-LD and RDF docs, is published at <a class="reference external" href="http://geojson.org/geojson-ld/">http://geojson.org/geojson-ld/</a>.</p>
<p>This work has no impact on most GeoJSON applications. For JSON-LD applications
it provides a default context, allowing ordinary GeoJSON to be parsed (for the
most part; see the outstanding issues noted at the end of the documentation) as
though it were JSON-LD in a standard way, and helps make GeoJSON elements
useful in other JSON-LD contexts.</p>
<p>Thanks to everyone who participated in the discussions on GitHub: Chaz6,
ManoMarks, Roselin, adoyle, ajturner, akuckartz, azaroth42, calvinmetcalf,
cappelaere, danbri, dinizime, dlongley, dr-shorthair, dret, ekansa, elf-pavlik,
emeeks, erictheise, fils, gkellogg, hobu, jasnell, jyutzler, kgeographer,
kgjenkins, ktk, lanthaler, letmaik, mitar, mpdaly, msporny, p3dr0, peterisb,
pietercolpaert, retog, rtroncy, rybesh, sdrees, sfsheath, sgillies,
thijsbrentjens, tschaub, and tstone. Because I drastically reduced the scope of
the work toward the end, some of these contributions aren't reflected in the
final products.</p>
<p>A vocabulary for describing the temporal extent of event-like features is one
of the things that I cut from GeoJSON-LD. It lives on as a proposed extension
for RFC 7946 GeoJSON, with no JSON-LD requirements, at
<a class="reference external" href="https://sgillies.github.io/geojson-events/">https://sgillies.github.io/geojson-events/</a>.</p>
<p>Work on resolving the mismatch between GeoJSON's nested coordinates array and
JSON-LD could be part of the JSON-LD 1.1 discussion. Make sure to subscribe to
<a class="reference external" href="mailto:public-linked-json@w3.org">public-linked-json@w3.org</a> and <a class="reference external" href="https://github.com/json-ld/json-ld.org">https://github.com/json-ld/json-ld.org</a> if you're
interested in this issue.</p>JSON-LD and GeoJSONhttps://sgillies.net/2014/01/22/json-ld-and-geojson.html2014-01-22T00:00:00-07:002014-01-22T00:00:00-07:00Sean Gillies<p>JSON-LD, a a JSON-based serialization for Linked Data, is finally a
<a class="reference external" href="http://www.w3.org/TR/2014/REC-json-ld-20140116/">W3C Recommendation</a>. I'd like
to remind readers that dumpgj, the any-vectors-to-GeoJSON program that is distributed
with <a class="reference external" href="https://pypi.python.org/pypi/Fiona">Fiona</a>, will
<a class="reference external" href="http://sgillies.net/blog/1179/dumpgj-json-ld-and-crs/">optionally add JSON-LD contexts to GeoJSON files</a>.</p>
<div class="code"><pre class="code console"><a id="rest_code_666630e5818748be8d2dee05003fb456-1" name="rest_code_666630e5818748be8d2dee05003fb456-1" href="https://sgillies.net/2014/01/22/json-ld-and-geojson.html#rest_code_666630e5818748be8d2dee05003fb456-1"></a><span class="gp">$ </span>dumpgj --help
<a id="rest_code_666630e5818748be8d2dee05003fb456-2" name="rest_code_666630e5818748be8d2dee05003fb456-2" href="https://sgillies.net/2014/01/22/json-ld-and-geojson.html#rest_code_666630e5818748be8d2dee05003fb456-2"></a><span class="go">usage: dumpgj [-h] [-d] [-n N] [--compact] [--encoding ENC]</span>
<a id="rest_code_666630e5818748be8d2dee05003fb456-3" name="rest_code_666630e5818748be8d2dee05003fb456-3" href="https://sgillies.net/2014/01/22/json-ld-and-geojson.html#rest_code_666630e5818748be8d2dee05003fb456-3"></a><span class="go"> [--record-buffered] [--ignore-errors] [--use-ld-context]</span>
<a id="rest_code_666630e5818748be8d2dee05003fb456-4" name="rest_code_666630e5818748be8d2dee05003fb456-4" href="https://sgillies.net/2014/01/22/json-ld-and-geojson.html#rest_code_666630e5818748be8d2dee05003fb456-4"></a><span class="go"> [--add-ld-context-item TERM=URI]</span>
<a id="rest_code_666630e5818748be8d2dee05003fb456-5" name="rest_code_666630e5818748be8d2dee05003fb456-5" href="https://sgillies.net/2014/01/22/json-ld-and-geojson.html#rest_code_666630e5818748be8d2dee05003fb456-5"></a><span class="go"> infile [outfile]</span>
<a id="rest_code_666630e5818748be8d2dee05003fb456-6" name="rest_code_666630e5818748be8d2dee05003fb456-6" href="https://sgillies.net/2014/01/22/json-ld-and-geojson.html#rest_code_666630e5818748be8d2dee05003fb456-6"></a>
<a id="rest_code_666630e5818748be8d2dee05003fb456-7" name="rest_code_666630e5818748be8d2dee05003fb456-7" href="https://sgillies.net/2014/01/22/json-ld-and-geojson.html#rest_code_666630e5818748be8d2dee05003fb456-7"></a><span class="go">Serialize a file's records or description to GeoJSON</span>
<a id="rest_code_666630e5818748be8d2dee05003fb456-8" name="rest_code_666630e5818748be8d2dee05003fb456-8" href="https://sgillies.net/2014/01/22/json-ld-and-geojson.html#rest_code_666630e5818748be8d2dee05003fb456-8"></a>
<a id="rest_code_666630e5818748be8d2dee05003fb456-9" name="rest_code_666630e5818748be8d2dee05003fb456-9" href="https://sgillies.net/2014/01/22/json-ld-and-geojson.html#rest_code_666630e5818748be8d2dee05003fb456-9"></a><span class="go">positional arguments:</span>
<a id="rest_code_666630e5818748be8d2dee05003fb456-10" name="rest_code_666630e5818748be8d2dee05003fb456-10" href="https://sgillies.net/2014/01/22/json-ld-and-geojson.html#rest_code_666630e5818748be8d2dee05003fb456-10"></a><span class="go"> infile input file name</span>
<a id="rest_code_666630e5818748be8d2dee05003fb456-11" name="rest_code_666630e5818748be8d2dee05003fb456-11" href="https://sgillies.net/2014/01/22/json-ld-and-geojson.html#rest_code_666630e5818748be8d2dee05003fb456-11"></a><span class="go"> outfile output file name, defaults to stdout if omitted</span>
<a id="rest_code_666630e5818748be8d2dee05003fb456-12" name="rest_code_666630e5818748be8d2dee05003fb456-12" href="https://sgillies.net/2014/01/22/json-ld-and-geojson.html#rest_code_666630e5818748be8d2dee05003fb456-12"></a>
<a id="rest_code_666630e5818748be8d2dee05003fb456-13" name="rest_code_666630e5818748be8d2dee05003fb456-13" href="https://sgillies.net/2014/01/22/json-ld-and-geojson.html#rest_code_666630e5818748be8d2dee05003fb456-13"></a><span class="go">optional arguments:</span>
<a id="rest_code_666630e5818748be8d2dee05003fb456-14" name="rest_code_666630e5818748be8d2dee05003fb456-14" href="https://sgillies.net/2014/01/22/json-ld-and-geojson.html#rest_code_666630e5818748be8d2dee05003fb456-14"></a><span class="go"> -h, --help show this help message and exit</span>
<a id="rest_code_666630e5818748be8d2dee05003fb456-15" name="rest_code_666630e5818748be8d2dee05003fb456-15" href="https://sgillies.net/2014/01/22/json-ld-and-geojson.html#rest_code_666630e5818748be8d2dee05003fb456-15"></a><span class="go"> -d, --description serialize file's data description (schema) only</span>
<a id="rest_code_666630e5818748be8d2dee05003fb456-16" name="rest_code_666630e5818748be8d2dee05003fb456-16" href="https://sgillies.net/2014/01/22/json-ld-and-geojson.html#rest_code_666630e5818748be8d2dee05003fb456-16"></a><span class="go"> -n N, --indent N indentation level in N number of chars</span>
<a id="rest_code_666630e5818748be8d2dee05003fb456-17" name="rest_code_666630e5818748be8d2dee05003fb456-17" href="https://sgillies.net/2014/01/22/json-ld-and-geojson.html#rest_code_666630e5818748be8d2dee05003fb456-17"></a><span class="go"> --compact use compact separators (',', ':')</span>
<a id="rest_code_666630e5818748be8d2dee05003fb456-18" name="rest_code_666630e5818748be8d2dee05003fb456-18" href="https://sgillies.net/2014/01/22/json-ld-and-geojson.html#rest_code_666630e5818748be8d2dee05003fb456-18"></a><span class="go"> --encoding ENC Specify encoding of the input file</span>
<a id="rest_code_666630e5818748be8d2dee05003fb456-19" name="rest_code_666630e5818748be8d2dee05003fb456-19" href="https://sgillies.net/2014/01/22/json-ld-and-geojson.html#rest_code_666630e5818748be8d2dee05003fb456-19"></a><span class="go"> --record-buffered Economical buffering of writes at record, not</span>
<a id="rest_code_666630e5818748be8d2dee05003fb456-20" name="rest_code_666630e5818748be8d2dee05003fb456-20" href="https://sgillies.net/2014/01/22/json-ld-and-geojson.html#rest_code_666630e5818748be8d2dee05003fb456-20"></a><span class="go"> collection (default), level</span>
<a id="rest_code_666630e5818748be8d2dee05003fb456-21" name="rest_code_666630e5818748be8d2dee05003fb456-21" href="https://sgillies.net/2014/01/22/json-ld-and-geojson.html#rest_code_666630e5818748be8d2dee05003fb456-21"></a><span class="go"> --ignore-errors log errors but do not stop serialization</span>
<a id="rest_code_666630e5818748be8d2dee05003fb456-22" name="rest_code_666630e5818748be8d2dee05003fb456-22" href="https://sgillies.net/2014/01/22/json-ld-and-geojson.html#rest_code_666630e5818748be8d2dee05003fb456-22"></a><span class="go"> --use-ld-context add a JSON-LD context to JSON output</span>
<a id="rest_code_666630e5818748be8d2dee05003fb456-23" name="rest_code_666630e5818748be8d2dee05003fb456-23" href="https://sgillies.net/2014/01/22/json-ld-and-geojson.html#rest_code_666630e5818748be8d2dee05003fb456-23"></a><span class="go"> --add-ld-context-item TERM=URI</span>
<a id="rest_code_666630e5818748be8d2dee05003fb456-24" name="rest_code_666630e5818748be8d2dee05003fb456-24" href="https://sgillies.net/2014/01/22/json-ld-and-geojson.html#rest_code_666630e5818748be8d2dee05003fb456-24"></a><span class="go"> map a term to a URI and add it to the output's JSON LD</span>
<a id="rest_code_666630e5818748be8d2dee05003fb456-25" name="rest_code_666630e5818748be8d2dee05003fb456-25" href="https://sgillies.net/2014/01/22/json-ld-and-geojson.html#rest_code_666630e5818748be8d2dee05003fb456-25"></a><span class="go"> context</span>
</pre></div>