swe574-group2 / swe574

This repository is created for the course named "SWE 574 - Software Development as a Team".
5 stars 0 forks source link

Annotation Validation Bug 2 #49

Closed gr3ysky closed 7 years ago

gr3ysky commented 7 years ago

Description: When we validate the annotation using the validation tool we get the following error.

1:50 If present all Selectors of type TextPositionSelector or DataPositionSelector have both a start key and an end key, each with a single non-negative integer value model 4.2 assert_true: ERROR: Annotation contains a Text Position or Data Position selector that is NOT of format uri and NOT an object having a value key with a single sting value.; expected true got false at JSONtest. (http://w3c-test.org/annotation-model/scripts/JSONtest.js:545:17) at Test.step (http://w3c-test.org/resources/testharness.js:1406:25) at test (http://w3c-test.org/resources/testharness.js:501:18) at JSONtest. (http://w3c-test.org/annotation-model/scripts/JSONtest.js:533:13) at Array.forEach (native) at JSONtest.runTests (http://w3c-test.org/annotation-model/scripts/JSONtest.js:408:18

tool url: http://w3c-test.org/annotation-model/annotations/annotationMusts-manual.html

Estimated Effort: 2 hours

gr3ysky commented 7 years ago

Sample json-ld

{"target":{"source":"http://w3c-test.org/resources/testharness.js","selector":{"type":"TextPositionSelector","start":"247","end":"265","value":"tium/Legal/2008/04"}},"type":"Annotation","id":"http://w3c-test.org/resources/testharness.js","@context":"http://www.w3.org/ns/anno.jsonld","private":"on","motivation":"assessing","creator":{"name":"admin","nickname":"admin"},"generator":{"name":"CatPlugin","homePage":"www.catplugin.net"},"body":{"value":"", "type": "SpecificResource","purpose":"assessing","annotationSource":"catplugin"}}

gr3ysky commented 7 years ago

since this is an error with the valitador itself, I am closing the issue.