geojson / geojson-ld

GeoJSON in JSON-LD contexts
Other
131 stars 13 forks source link

Borrow JSON-LD context from Fiona #1

Closed sgillies closed 10 years ago

sgillies commented 10 years ago

JSON-LD looks like a useful way to be more specific about what's in a JSON doc. Let's make a shared vocab for GeoJSON items with the context from Fiona as a starting point.

The geovocab.org domain seems to be no more, so Fiona's context,

{ "@context": {
  "Feature": "http://geovocab.org/spatial#Feature",
  "FeatureCollection": "_:n1",
  "GeometryCollection": "http://geovocab.org/geometry#GeometryCollection",
  "LineString": "http://geovocab.org/geometry#LineString",
  "MultiLineString": "http://geovocab.org/geometry#MultiLineString",
  "MultiPoint": "http://geovocab.org/geometry#MultiPoint",
  "MultiPolygon": "http://geovocab.org/geometry#MultiPolygon",
  "Point": "http://geovocab.org/geometry#Point",
  "Polygon": "http://geovocab.org/geometry#Polygon",
  "_crs": {
    "@id": "_:n2",
    "@type": "@id"
  },
  "bbox": "http://geovocab.org/geometry#bbox",
  "coordinates": "_:n5",
  "features": "_:n3",
  "geometry": "http://geovocab.org/geometry#geometry",
  "id": "@id",
  "properties": "_:n4",
  "type": "@type"
} }

needs to be changed.

I propose geojson.org URIs instead: http://geojson.org/vocab#Feature, http://geojson.org/vocab#Point, &c.