Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Context and Terms #2

Open
thehabes opened this issue Aug 7, 2022 · 0 comments
Open

Context and Terms #2

thehabes opened this issue Aug 7, 2022 · 0 comments

Comments

@thehabes
Copy link
Collaborator

thehabes commented Aug 7, 2022

"@context": [
   "http://www.w3.org/ns/anno.jsonld",
   "http://geojson.org/geojson-ld/geojson-context.jsonld",
   "http://iiif.io/api/presentation/3/context.json"
]

in your JSON example will need to become

"@context": [
   "http://allmaps.org/georef/context.json",
   "http://iiif.io/api/presentation/3/context.json"
]

You will have to make a context file of your own to describe the terms and syntax you are using. Plan to do a Scoped Context which scopes in GeoJSON, Presentaiton API 3 already scopes in Web Annotation. See below for an example georef/context.json

{
   "@context": {
      "@version": 1.1,
      "georef_vocab": "https://allmaps.org/georef/vocab.md#",
      "georeferencing": "georef_vocab: georeferencing",
      "gcp-georeferencing": "georef_vocab: gcp-georeferencing",
      "pixelCoords": "georef_vocab:pixelCoords",
      "body" : {
         "@context": "https://geojson.org/geojson-ld/geojson-context.jsonld"
      }
   }
}

You will also have to have a terms file to go with that context file, like the vocab.md in the example above. It will need to contain your terms as seen in https://github.com/allmaps/iiif-api/blob/georef/source/extension/georef/vocab/new-terms.md

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant