iiif-stories icon indicating copy to clipboard operation
iiif-stories copied to clipboard

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

Open glenrobson opened this issue 5 years ago • 5 comments

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 avatar Feb 07 '20 16:02 glenrobson

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

glenrobson avatar Feb 26 '20 16:02 glenrobson

https://recogito.pelagios.org/

mapninja avatar Feb 26 '20 16:02 mapninja

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

thehabes avatar Feb 26 '20 16:02 thehabes

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.

rsimon avatar Feb 26 '20 16:02 rsimon

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"
                  }
               }
            }
         ]
      }
   ]
}

thehabes avatar Apr 28 '20 18:04 thehabes