Constraint Format
From IntereditionWiki
Plaintext
"RFC_5147"
annotation_type: "RFC_5147"
IMO the type of constraint should have a different name, as only the 'position' field is of type RFC_5147 --moritz
constraint:
Stringified JSON like
{
"position":"line=51,57",
"context":"{\"after\":\"hat she ought to hav\",\"before\":\"\\npicking the daisies\"}",
"checksum":"3e899c5d9f39cbf8be8d42ad2ef74605"
}
The AnnotationClient accepts as values for the "position" field for now:
"position":"char=51,57"
or the relaxed version:
"position":"51,57"
If the context is not present or empty, constraint validation is skipped. This is for testing purposes only.
The RFC 5147 capabilities of the AnnotationClient will be expanded to support all features.
See the fragment-context constraint service info page on more details on constraints.
See also Annotation Body Format.