Closed cyork closed 4 years ago
Produce a document that describes a few options for representing GraphQL as a web annotations
WA links to GraphQL
WA body has the data returned by GraphQL
A web annotation with a link to a query:
https://delarose-atlas.herokuapp.com/wa/urn:cts:medievalmss:rose.SeldenSupra57:001r/dataset/
A web annotation containing the results of an ALTAS query:
https://delarose-atlas.herokuapp.com/wa/urn:cts:medievalmss:rose.SeldenSupra57:001r/textual-body/
I'll sync up again with @markpatton and @GroovinChip once they have a chance to look at these WA and GraphQL in general.
The top level endpoint is:
https://delarose-atlas.herokuapp.com/graphql/
and you can access the schema explorer by clicking into the page
portion of GraphiQL:
@markpatton and @GroovinChip:
Thanks for your feedback on the call. I've just deployed a new version of our web annotations endpoints:
1r
folio)target
URLs to reference /iiif
rather than /wa
graphql-query
WA that can be used to get the GraphQL queryhttps://delarose-atlas.herokuapp.com/wa/urn:cts:medievalmss:rose.SeldenSupra57:001v/graphql-query/
curl https://delarose-atlas.herokuapp.com/wa/urn:cts:medievalmss:rose.SeldenSupra57:001v/graphql-query/ | jq -r .body.value
returns
{
pages(version_Urn: "urn:cts:medievalmss:rose.SeldenSupra57", identifier: "001v") {
edges {
node {
version {
urn
}
identifier
idx
columns {
edges {
node {
idx
identifier
lineGroups {
edges {
node {
position
kind
lines {
edges {
node {
position
textContent
htmlContent
xmlContent
milestoneNumber
}
}
}
}
}
}
}
}
}
}
}
}
}
The two prior endpoints are still there:
/textual-body/
returns the data that would be returned by GraphQL:
https://delarose-atlas.herokuapp.com/wa/urn:cts:medievalmss:rose.SeldenSupra57:001v/textual-body//dataset/
returns a URL that the client would use to Query GraphQL:
https://delarose-atlas.herokuapp.com/wa/urn:cts:medievalmss:rose.SeldenSupra57:001v/dataset/I plan to AnnotationCollection
functionality for paging through the annotations, and will also add the new annotations we had discussed (given a URN, return a simplified HTML structure)
@markpatton and @GroovinChip: I've finished off annotation collections for each of the formats below:
https://delarose-atlas.herokuapp.com/wa/urn:cts:medievalmss:rose.SeldenSupra57/graphql-query/annotation-collection/ https://delarose-atlas.herokuapp.com/wa/urn:cts:medievalmss:rose.SeldenSupra57/textual-body/annotation-collection/ https://delarose-atlas.herokuapp.com/wa/urn:cts:medievalmss:rose.SeldenSupra57/dataset/annotation-collection/
I've created https://github.com/jhu-digital-manuscripts/AnIOp/issues/31 to track the simplified HTML structure; since ATLAS is now returning web annotations, I'm going to consider this issue closed.
Eldarion will serve up web annotation for GraphQL (First version 9/23)