Skip to content

Commit 08b273a

Browse files
authored
Merge pull request #51 from CenterForDigitalHumanities/ld-update
Update for Linked Data 1.1
2 parents d60125c + d008a78 commit 08b273a

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

geojson-context.jsonld

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"@context": {
3+
"@version": 1.1,
34
"geojson": "https://purl.org/geojson/vocab#",
45
"Feature": "geojson:Feature",
56
"FeatureCollection": "geojson:FeatureCollection",

index.md

+6-2
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ title: GeoJSON-LD
77

88
**Author**: Sean Gillies (Mapbox)
99

10-
**Revision**: 1.0
10+
**Revision**: 1.1
1111

12-
**Date**: 2017-01-03
12+
**Date**: 2021-12-20
1313

1414
**Abstract**: A vocabulary and JSON-LD context for GeoJSON.
1515

@@ -50,6 +50,7 @@ Pasting the following GeoJSON-LD document
5050
```json
5151
{
5252
"@context": {
53+
"@version": 1.1,
5354
"geojson": "https://purl.org/geojson/vocab#",
5455
"Feature": "geojson:Feature",
5556
"FeatureCollection": "geojson:FeatureCollection",
@@ -136,6 +137,9 @@ the following JSON-LD in expanded form.
136137
]
137138
```
138139

140+
## Note
141+
JSON-LD 1.0 [cannot process the "list of list" structure](https://www.w3.org/TR/2014/REC-json-ld-20140116/#h_note_8), so many GeoJSON shapes cannot be processed by JSON-LD 1.0 validators. The `"@version": 1.1` property has been added to the GeoJSON-LD context to tell JSON-LD processors to process GeoJSON under the Linked Data 1.1 format, which [can process the "list of list" structure](https://www.w3.org/TR/json-ld11/#example-82-specifying-that-a-collection-is-ordered-in-the-context).
142+
139143
## See Also
140144

141145
* [Activity Streams 2.0](https://www.w3.org/TR/activitystreams-core/), from

0 commit comments

Comments
 (0)