-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix contexts for GeoJSON, JSON-FG and JSON links.
@nest GeoJSON properties. Improve context for "links".
- Loading branch information
Showing
11 changed files
with
203 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
registereditems/geo/common/data_types/geojson/context.jsonld
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{ | ||
"@context": { | ||
"@version": 1.1, | ||
"geojson": "https://purl.org/geojson/vocab#", | ||
"Feature": "geojson:Feature", | ||
"FeatureCollection": "geojson:FeatureCollection", | ||
"GeometryCollection": "geojson:GeometryCollection", | ||
"LineString": "geojson:LineString", | ||
"MultiLineString": "geojson:MultiLineString", | ||
"MultiPoint": "geojson:MultiPoint", | ||
"MultiPolygon": "geojson:MultiPolygon", | ||
"Point": "geojson:Point", | ||
"Polygon": "geojson:Polygon", | ||
"bbox": { | ||
"@container": "@list", | ||
"@id": "geojson:bbox" | ||
}, | ||
"coordinates": { | ||
"@container": "@list", | ||
"@id": "geojson:coordinates" | ||
}, | ||
"features": { | ||
"@container": "@set", | ||
"@id": "geojson:features" | ||
}, | ||
"geometry": "geojson:geometry", | ||
"id": "@id", | ||
"properties": "@nest", | ||
"type": "@type" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
{ | ||
"@context": { | ||
"rdfs": "http://www.w3.org/2000/01/rdf-schema#", | ||
"links": "rdfs:seeAlso" | ||
"links": "rdfs:seeAlso", | ||
"properties": "@nest" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,38 @@ | ||
{ | ||
"@context": [ | ||
"https://geojson.org/geojson-ld/geojson-context.jsonld", | ||
{ | ||
"rdfs": "http://www.w3.org/2000/01/rdf-schema#", | ||
"links": "rdfs:seeAlso" | ||
"@context": { | ||
"@version": 1.1, | ||
"geojson": "https://purl.org/geojson/vocab#", | ||
"rdfs": "http://www.w3.org/2000/01/rdf-schema#", | ||
"Feature": "geojson:Feature", | ||
"FeatureCollection": "geojson:FeatureCollection", | ||
"GeometryCollection": "geojson:GeometryCollection", | ||
"LineString": "geojson:LineString", | ||
"MultiLineString": "geojson:MultiLineString", | ||
"MultiPoint": "geojson:MultiPoint", | ||
"MultiPolygon": "geojson:MultiPolygon", | ||
"Point": "geojson:Point", | ||
"Polygon": "geojson:Polygon", | ||
"bbox": { | ||
"@container": "@list", | ||
"@id": "geojson:bbox" | ||
}, | ||
"coordinates": { | ||
"@container": "@list", | ||
"@id": "geojson:coordinates" | ||
}, | ||
"features": { | ||
"@container": "@set", | ||
"@id": "geojson:features" | ||
}, | ||
"geometry": "geojson:geometry", | ||
"id": "@id", | ||
"properties": "@nest", | ||
"type": "@type", | ||
"links": { | ||
"@id": "rdfs:seeAlso", | ||
"@context": { | ||
|
||
} | ||
} | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
{ | ||
"$schema": "https://json-schema.org/draft/2019-09/schema", | ||
"title": "a JSON-FG Feature", | ||
"description": "This JSON Schema is part of JSON-FG version 0.1.1", | ||
"type": "object", | ||
"required": [ | ||
"type", | ||
"time", | ||
"place", | ||
"geometry", | ||
"properties" | ||
], | ||
"properties": { | ||
"type": { | ||
"type": "string", | ||
"enum": [ | ||
"Feature" | ||
] | ||
}, | ||
"id": { | ||
"oneOf": [ | ||
{ | ||
"type": "number" | ||
}, | ||
{ | ||
"type": "string" | ||
} | ||
] | ||
}, | ||
"featureType": { | ||
"$ref": "https://beta.schemas.opengis.net/json-fg/featuretype.json" | ||
}, | ||
"links": { | ||
"type": "array", | ||
"items": { | ||
"allOf": [ | ||
{ | ||
"$ref": "https://beta.schemas.opengis.net/json-fg/link.json" | ||
}, | ||
{ | ||
"$ref": "bblocks://ogc.ogc-utils.json-link" | ||
} | ||
] | ||
} | ||
}, | ||
"time": { | ||
"$ref": "https://beta.schemas.opengis.net/json-fg/time.json" | ||
}, | ||
"coordRefSys": { | ||
"$ref": "https://beta.schemas.opengis.net/json-fg/coordrefsys.json" | ||
}, | ||
"place": { | ||
"$ref": "https://beta.schemas.opengis.net/json-fg/place.json" | ||
}, | ||
"geometry": { | ||
"$ref": "https://beta.schemas.opengis.net/json-fg/geometry.json" | ||
}, | ||
"properties": { | ||
"oneOf": [ | ||
{ | ||
"type": "null" | ||
}, | ||
{ | ||
"type": "object" | ||
} | ||
] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
{ | ||
"$schema": "https://json-schema.org/draft/2019-09/schema", | ||
"title": "a JSON-FG Feature Collection", | ||
"description": "This JSON Schema is part of JSON-FG version 0.1.1", | ||
"type": "object", | ||
"required": ["type", "features"], | ||
"properties": { | ||
"type": { | ||
"type": "string", | ||
"enum": ["FeatureCollection"] | ||
}, | ||
"featureType": { | ||
"$ref": "https://beta.schemas.opengis.net/json-fg/featuretype.json" | ||
}, | ||
"geometryDimension": { | ||
"type": "integer", | ||
"minimum": 0, | ||
"maximum": 3 | ||
}, | ||
"coordRefSys": { | ||
"$ref": "https://beta.schemas.opengis.net/json-fg/coordrefsys.json" | ||
}, | ||
"links": { | ||
"type": "array", | ||
"items": { | ||
"$ref": "https://beta.schemas.opengis.net/json-fg/link.json" | ||
} | ||
}, | ||
"features": { | ||
"type": "array", | ||
"items": { | ||
"$ref": "bblock://ogc.geo.json-fg.feature" | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
{ | ||
"@context": { | ||
"dct": "http://purl.org/dc/terms/", | ||
"prof": "http://www.w3.org/ns/dx/prof/", | ||
"role": { | ||
"@id": "dct:role", | ||
"@id": "prof:hasRole", | ||
"@type": "@id" | ||
}, | ||
"conformsTo": { | ||
"@id": "dct:conformsTo", | ||
"@type": "@id", | ||
"@container": "@nest" | ||
"@type": "@id" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,19 @@ | ||
{ | ||
"@context": { | ||
"rdfs": "http://www.w3.org/2000/01/rdf-schema#", | ||
"href": "@id", | ||
"title": "rdfs:label" | ||
"oa": "http://www.w3.org/ns/oa#", | ||
"dct": "http://purl.org/dc/terms/", | ||
"href": "oa:hasTarget", | ||
"title": "rdfs:label", | ||
"rel": { | ||
"@id": "http://www.iana.org/assignments/relation", | ||
"@type": "@id", | ||
"@context": { | ||
"@base": "http://www.iana.org/assignments/relation/" | ||
} | ||
}, | ||
"hreflang": "dct:language", | ||
"type": "dct:type", | ||
"length": "dct:extent" | ||
} | ||
} |