glenrobson / SimpleAnnotationServer

A simple IIIF and Mirador compatible Annotation Server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

populate does not work like create

nicolasfranck opened this issue · comments

I tried using the controller "/populate" (POST). It seemed to work, but when
trying to search on uri ("/annotation/search") it return an empty array.

When I created the annotations directly by posting to "/annotation/create",
it worked. Any idea why?

it should work the same as /create. Is the annotation list your posting public at all? If so I can try running it against my copy to see if I can find the issue. Are you seeing anything in the console when you run the populate post?

Cheers

Glen

try this one:

http://adore.ugent.be/local/annotationlist.json

it simply shows on stdout what is interstood ( i.e. the rewritten annotations)

Found the issue. The annotationlist I've been testing with doesn't have an @id for the annotation but yours does (which is correct). Part of my code added a @context to the annotation so it could be converted to RDF but it incorrectly only did this if there wasn't an id. Fixed this now so it adds it irrespective of if it has an @id or not.

I've committed a fix but let me know if it doesn't work for you.

Cheers

Glen

ok thanks, it works!

Thats great.

Cheers

Glen