Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Server can't handle an annotation with id=null #943

Open
leonardr opened this issue Apr 27, 2018 · 0 comments
Open

Server can't handle an annotation with id=null #943

leonardr opened this issue Apr 27, 2018 · 0 comments

Comments

@leonardr
Copy link
Contributor

Example:

{
"body":{
"http://librarysimplified.org/terms/progressWithinBook":0.22,
"http://librarysimplified.org/terms/progressWithinChapter":0.33846155,
"http://librarysimplified.org/terms/chapter":"Alice in Wonderland",
"http://librarysimplified.org/terms/device":"null",
"http://librarysimplified.org/terms/time":"2018-04-25T18:00:05.290Z"
},
"id":null,
"motivation":"http://www.w3.org/ns/oa#bookmarking",
"target":{
"selector":{
"type":"oa:FragmentSelector",
"value":"{"idref":"item25","contentCFI":"/4/110[Page_7]/2,/1:0,/1:1"}"
},
"source":"http://www.gutenberg.org/ebooks/35688"
},
"type":"Annotation",
"@context":"http://www.w3.org/ns/anno.jsonld"
}


"A key-value pair in the body of a JSON-LD document whose value is null has the same meaning as if the key-value pair was not defined." -- https://www.w3.org/TR/json-ld-syntax/#general-terminology

I don't know what the exact error is but it should be easy to duplicate this problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant