On file "backend/eureka/anno/services/AnnotationService.py" I've updated thecreateImageAnnotationJSONLD function according to the appropriate format stated below:
Id field will be sent from the frontend by forming the appropriate imagelink. I have implemented image selection on mobile but there is no backend to support it that's why I'm making this commit.
In addition to that I've changed AnnotationForm class for the same purpose
There is no need for an api change since some parts were already implemented also I've changed AnnotationForm.py which is sufficient to support this new feature.
On file "backend/eureka/anno/services/AnnotationService.py" I've updated thecreateImageAnnotationJSONLD function according to the appropriate format stated below:
{ "@context": "http://www.w3.org/ns/anno.jsonld", "id": "http://example.org/anno4", "type": "Annotation", "body": "http://example.org/description1", "target": { "id": "http://example.com/image1#xywh=100,100,300,300", "type": "Image", "format": "image/jpeg" } }
Id field will be sent from the frontend by forming the appropriate imagelink. I have implemented image selection on mobile but there is no backend to support it that's why I'm making this commit. In addition to that I've changed AnnotationForm class for the same purpose
There is no need for an api change since some parts were already implemented also I've changed AnnotationForm.py which is sufficient to support this new feature.