IIIF / iiif-stories

Community repository for documenting stories and use cases related to uses of the International Image Interoperability Framework.
21 stars 0 forks source link

I want to link a word/region in a transcription to geo location #116

Open glenrobson opened 4 years ago

glenrobson commented 4 years ago

Description

I want to link a word/region in a transcription to geo location e.g. the word Paris in a book to a geographic place. 

6-votes in Stanford maps meeting

Variation(s)

(do you know of, or can you imagine, similar use cases?)

Proposed Solutions

(any ideas about how your use case might be supported)

Additional Background

(more about your perspective, existing work, etc. goes here.)

glenrobson commented 4 years ago

Saw demo from Regonito would be good to add examples of this.

mapninja commented 4 years ago

https://recogito.pelagios.org/

thehabes commented 4 years ago

The solution to this will most likely be offered in connection with issue #118

rsimon commented 4 years ago

See this example on Recogito: https://recogito.pelagios.org/document/p9csuaqia9zz2e/part/1/edit#041053ec-46f1-4cd9-89cd-1971926b3f97

{
  "@context" : "http://www.w3.org/ns/anno.jsonld",
  "id" : "https://recogito.pelagios.org/annotation/041053ec-46f1-4cd9-89cd-1971926b3f97",
  "type" : "Annotation",
  "generator" : {
    "id" : "https://recogito.pelagios.org/",
    "type" : "Software",
    "name" : "Recogito",
    "homepage" : "https://recogito.pelagios.org/"
  },
  "generated" : "2020-02-26T16:50:52+00:00",
  "body" : [ {
    "type" : "TextualBody",
    "value" : "Helgapelt",
    "creator" : "https://recogito.pelagios.org/rainer",
    "modified" : "2019-10-21T10:46:10+00:00",
    "purpose" : "transcribing"
  }, {
    "type" : "SpecificResource",
    "value" : "http://sws.geonames.org/3412888",
    "creator" : "https://recogito.pelagios.org/rainer",
    "modified" : "2019-10-21T10:46:10+00:00",
    "purpose" : "identifying"
  }, {
    "type" : "Feature",
    "creator" : "https://recogito.pelagios.org/rainer",
    "modified" : "2019-10-21T10:46:10+00:00",
    "purpose" : "georeferencing",
    "geometry" : {
      "type" : "Point",
      "coordinates" : [ -22.72977, 65.07537 ]
    }
  } ],
  "target" : {
    "source" : "https://recogito.pelagios.org/part/46c9126b-6904-4229-bfc3-06b40d1834f1",
    "type" : "Image",
    "selector" : [ {
      "type" : "FragmentSelector",
      "conformsTo" : "http://www.w3.org/TR/media-frags/",
      "value" : "xywh=pixel:1992,3092,274,274"
    } ]
  }
}

Specifically the geo body, repeated below:

{
  "type" : "Feature",
  "creator" : "https://recogito.pelagios.org/rainer",
  "modified" : "2019-10-21T10:46:10+00:00",
  "purpose" : "georeferencing",
  "geometry" : {
    "type" : "Point",
    "coordinates" : [ -22.72977, 65.07537 ]
  }
}

P.S.: probably the purpose/motivation should be geocoding, as discusse.

thehabes commented 4 years ago

Note that geocoding an image segment is not the same as geocoding a word in a transcription. One can imagine there is a canvas which contains the image of a letter. The transcription was provided as a supplementing annotation. We want to geocode a word in that transcription.

{
   "@context":[
      "http://iiif.io/api/presentation/3/context.json",
      "http://geojson.org/geojson-ld/geojson-context.jsonld"
   ],
   "id":"http://example.org/canvas/1",
   "type":"Canvas",
   "label":{
      "en":[
         "A canvas with an image of a handwritten correspondence between friends."
      ]
   },
   "width": 1000,
   "height": 1500,
   "items":[
      {
         "id":"http://example.org/contentPage.json",
         "type":"AnnotationPage",
         "items":[
            {
               "id":"http://example.org/content.json",
               "type":"Annotation",
               "motivation":"painting",
               "label":{
                  "en":[
                     "The JPEG file of the original handwritten letter."
                  ]
               },
               "body":{
                  "id":"http://example.org/correspondence.jpg",
                  "type":"Image",
                  "format": "image/jpeg",
                  "width": 1000,
                  "height": 1500
               },
               "target":"http://example.org/canvas/1"
            }
         ]
      }
   ],
   "annotations":[
      {
         "id":"http://example.org/supplementingPage.json",
         "type":"AnnotationPage",
         "items":[
            {
               "id":"http://example.org/supplementingAnno.json",
               "type":"Annotation",
               "motivation":"supplementing",
               "label":{
                  "en":[
                     "The transcription of this handwritten French correspondence between friends."
                  ]
               },
               "body":{
                  "id":"http://example.org/transcription.txt",
                  "format":"text/plain",
                  "language":"en"
               },
               "target":"http://example.org/canvas/1"
            },
            {
               "id":"http://example.org/geoAnno.json",
               "type":"Annotation",
               "motivation":"geocode",
               "label":{
                  "en":[
                     "The word 'Paris' to note as Paris, France.  This will link the geographic point for Paris to the word Paris in the transcription."
                  ]
               },
               "body":{
                  "id":"http://example.org/geo.json",
                  "type":"Feature",
                  "properties":{

                  },
                  "geometry":{
                     "type":"Point",
                     "coordinates":[
                        48.86,
                        2.34
                     ]
                  }
               },
               "target":{
                  "source":"http://example.org/transcription.txt",
                  "selector":{
                     "type":"TextQuoteSelector",
                     "exact":"Paris"
                  }
               }
            }
         ]
      }
   ]
}