annotorious / annotorious-v2-plugins

Plugins compatible with the RecogitoJS, Annotorious and AnnotoriousOSD annotation libraries
BSD 3-Clause "New" or "Revised" License
29 stars 19 forks source link

Bug: 'Tagging Vocabularies' are not used at all #42

Closed R-W-C closed 1 year ago

R-W-C commented 1 year ago

If you initialize Annotorious with the TAG widget and you add 'Tagging Vocabularies' like described here: https://annotorious.github.io/guides/configuring-the-editor , you expect them to see them back somewhere. This does not seem to happen.

See Codepen: https://codepen.io/r-w-c/pen/abPRBbW

Reproduce:

Initialize Annotorious like this:

var anno = Annotorious.init({
  image: 'hallstatt',
  widgets: [{ 
    widget: 'TAG',
    vocabulary: [ 
      { label: 'Place', uri: 'http://www.example.com/ontology/place' },
      { label: 'Person', uri: 'http://www.example.com/ontology/person' }, 
      { label: 'Event', uri: 'http://www.example.com/ontology/event' }
    ] 
  }]
});

Excepted result: The defined uri are used somewhere. Actual result: The defined uri are used nowhere.

rsimon commented 1 year ago

The URIs are getting properly serialized to the annotations. E.g.:

"body": [
    {
      "type": "SpecificResource",
      "purpose": "tagging",
      "source": {
        "id": "https://www.example.com/ontology/FP",
        "label": "FP"
      }
    }
  ]

You can see this if you add an annotation handler (anno.on('createAnnotation')).

R-W-C commented 1 year ago

Aha, expected something else. Thanks