Skip to content

Commit

Permalink
Merge pull request #29 from scaife-viewer/feature/image-annotations
Browse files Browse the repository at this point in the history
Add image annotations
  • Loading branch information
jacobwegner authored Apr 23, 2020
2 parents f4f487f + 2d6ba5d commit 5709c57
Show file tree
Hide file tree
Showing 27 changed files with 6,333 additions and 8 deletions.
48 changes: 48 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,54 @@ Retrieve text annotations for a given passage
}
}
```

## Image Annotations

### Sample Queries
Retrieve image annotation applied to folios
```
{
imageAnnotations(first: 10) {
edges {
node {
idx
data
urn
canvasIdentifier
textParts(kind: "folio") {
edges {
node {
urn
}
}
}
}
}
}
}
```

Retrieve text parts annotated with images
```
{
textParts(urn: "urn:cts:greekLit:tlg0012.tlg001.msA-folios:12r") {
edges {
node {
imageAnnotations {
edges {
node {
urn
kind
imageIdentifier
}
}
}
}
}
}
}
```

## Named Entities

### Sample Queries
Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,316 @@
[
{
"data": {
"urn:cite2:hmt:vaimg.2017a.urn:": "urn:cite2:hmt:vaimg.2017a:VA041RN_0042",
"urn:cite2:hmt:vaimg.2017a.rights:": "This image was derived from an original ©2007, Biblioteca Nazionale Marciana, Venezie, Italia. The derivative image is ©2010, Center for Hellenic Studies. Original and derivative are licensed under the Creative Commons Attribution-Noncommercial-Share Alike 3.0 License. The CHS/Marciana Imaging Project was directed by David Jacobs of the British Library.",
"urn:cite2:hmt:vaimg.2017a.caption:": "Venetus A: Marcianus Graecus Z. 454 (= 822), folio 41, recto."
},
"urn": "urn:cite2:hmt:vaimg.2017a:VA041RN_0042",
"canvas_url": "https://rosetest.library.jhu.edu/rosademo/iiif3/homer/VA/41r/canvas",
"image_url": "https://image.library.jhu.edu/iiif/homer%2FVA%2F41r/full/full/0/default.jpg",
"references": [
"urn:cts:greekLit:tlg0012.tlg001.msA-folios:41r"
],
"regions_of_interest": [
{
"data": {
"urn:cite2:hmt:va_dse.v1.urn:": "urn:cite2:hmt:va_dse.v1:il1457",
"urn:cite2:hmt:va_dse.v1.label:": "DSE record for Iliad 2.843",
"urn:cite2:hmt:va_dse.v1.passage:": "urn:cts:greekLit:tlg0012.tlg001.msA:2.843",
"urn:cite2:hmt:va_dse.v1.surface:": "urn:cite2:hmt:msA.v1:41r",
"urn:cite2:hmt:va_dse.v1.imageroi:": "urn:cite2:hmt:vaimg.2017a:[email protected],0.2603,0.381,0.0346"
},
"urn": "urn:cite2:hmt:va_dse.v1:il1457",
"references": [
"urn:cts:greekLit:tlg0012.tlg001.msA-folios:41r.2.843"
]
},
{
"data": {
"urn:cite2:hmt:va_dse.v1.urn:": "urn:cite2:hmt:va_dse.v1:il1458",
"urn:cite2:hmt:va_dse.v1.label:": "DSE record for Iliad 2.844",
"urn:cite2:hmt:va_dse.v1.passage:": "urn:cts:greekLit:tlg0012.tlg001.msA:2.844",
"urn:cite2:hmt:va_dse.v1.surface:": "urn:cite2:hmt:msA.v1:41r",
"urn:cite2:hmt:va_dse.v1.imageroi:": "urn:cite2:hmt:vaimg.2017a:[email protected],0.2792,0.435,0.0346"
},
"urn": "urn:cite2:hmt:va_dse.v1:il1458",
"references": [
"urn:cts:greekLit:tlg0012.tlg001.msA-folios:41r.2.844"
]
},
{
"data": {
"urn:cite2:hmt:va_dse.v1.urn:": "urn:cite2:hmt:va_dse.v1:il1459",
"urn:cite2:hmt:va_dse.v1.label:": "DSE record for Iliad 2.845",
"urn:cite2:hmt:va_dse.v1.passage:": "urn:cts:greekLit:tlg0012.tlg001.msA:2.845",
"urn:cite2:hmt:va_dse.v1.surface:": "urn:cite2:hmt:msA.v1:41r",
"urn:cite2:hmt:va_dse.v1.imageroi:": "urn:cite2:hmt:vaimg.2017a:[email protected],0.2995,0.435,0.0346"
},
"urn": "urn:cite2:hmt:va_dse.v1:il1459",
"references": [
"urn:cts:greekLit:tlg0012.tlg001.msA-folios:41r.2.845"
]
},
{
"data": {
"urn:cite2:hmt:va_dse.v1.urn:": "urn:cite2:hmt:va_dse.v1:il1460",
"urn:cite2:hmt:va_dse.v1.label:": "DSE record for Iliad 2.846",
"urn:cite2:hmt:va_dse.v1.passage:": "urn:cts:greekLit:tlg0012.tlg001.msA:2.846",
"urn:cite2:hmt:va_dse.v1.surface:": "urn:cite2:hmt:msA.v1:41r",
"urn:cite2:hmt:va_dse.v1.imageroi:": "urn:cite2:hmt:vaimg.2017a:[email protected],0.3175,0.435,0.0346"
},
"urn": "urn:cite2:hmt:va_dse.v1:il1460",
"references": [
"urn:cts:greekLit:tlg0012.tlg001.msA-folios:41r.2.846"
]
},
{
"data": {
"urn:cite2:hmt:va_dse.v1.urn:": "urn:cite2:hmt:va_dse.v1:il1461",
"urn:cite2:hmt:va_dse.v1.label:": "DSE record for Iliad 2.847",
"urn:cite2:hmt:va_dse.v1.passage:": "urn:cts:greekLit:tlg0012.tlg001.msA:2.847",
"urn:cite2:hmt:va_dse.v1.surface:": "urn:cite2:hmt:msA.v1:41r",
"urn:cite2:hmt:va_dse.v1.imageroi:": "urn:cite2:hmt:vaimg.2017a:[email protected],0.3416,0.435,0.0309"
},
"urn": "urn:cite2:hmt:va_dse.v1:il1461",
"references": [
"urn:cts:greekLit:tlg0012.tlg001.msA-folios:41r.2.847"
]
},
{
"data": {
"urn:cite2:hmt:va_dse.v1.urn:": "urn:cite2:hmt:va_dse.v1:il1462",
"urn:cite2:hmt:va_dse.v1.label:": "DSE record for Iliad 2.848",
"urn:cite2:hmt:va_dse.v1.passage:": "urn:cts:greekLit:tlg0012.tlg001.msA:2.848",
"urn:cite2:hmt:va_dse.v1.surface:": "urn:cite2:hmt:msA.v1:41r",
"urn:cite2:hmt:va_dse.v1.imageroi:": "urn:cite2:hmt:vaimg.2017a:[email protected],0.3642,0.435,0.0309"
},
"urn": "urn:cite2:hmt:va_dse.v1:il1462",
"references": [
"urn:cts:greekLit:tlg0012.tlg001.msA-folios:41r.2.848"
]
},
{
"data": {
"urn:cite2:hmt:va_dse.v1.urn:": "urn:cite2:hmt:va_dse.v1:il1463",
"urn:cite2:hmt:va_dse.v1.label:": "DSE record for Iliad 2.849",
"urn:cite2:hmt:va_dse.v1.passage:": "urn:cts:greekLit:tlg0012.tlg001.msA:2.849",
"urn:cite2:hmt:va_dse.v1.surface:": "urn:cite2:hmt:msA.v1:41r",
"urn:cite2:hmt:va_dse.v1.imageroi:": "urn:cite2:hmt:vaimg.2017a:[email protected],0.3822,0.435,0.0309"
},
"urn": "urn:cite2:hmt:va_dse.v1:il1463",
"references": [
"urn:cts:greekLit:tlg0012.tlg001.msA-folios:41r.2.849"
]
},
{
"data": {
"urn:cite2:hmt:va_dse.v1.urn:": "urn:cite2:hmt:va_dse.v1:il1464",
"urn:cite2:hmt:va_dse.v1.label:": "DSE record for Iliad 2.850",
"urn:cite2:hmt:va_dse.v1.passage:": "urn:cts:greekLit:tlg0012.tlg001.msA:2.850",
"urn:cite2:hmt:va_dse.v1.surface:": "urn:cite2:hmt:msA.v1:41r",
"urn:cite2:hmt:va_dse.v1.imageroi:": "urn:cite2:hmt:vaimg.2017a:[email protected],0.3988,0.435,0.0309"
},
"urn": "urn:cite2:hmt:va_dse.v1:il1464",
"references": [
"urn:cts:greekLit:tlg0012.tlg001.msA-folios:41r.2.850"
]
},
{
"data": {
"urn:cite2:hmt:va_dse.v1.urn:": "urn:cite2:hmt:va_dse.v1:il1465",
"urn:cite2:hmt:va_dse.v1.label:": "DSE record for Iliad 2.851",
"urn:cite2:hmt:va_dse.v1.passage:": "urn:cts:greekLit:tlg0012.tlg001.msA:2.851",
"urn:cite2:hmt:va_dse.v1.surface:": "urn:cite2:hmt:msA.v1:41r",
"urn:cite2:hmt:va_dse.v1.imageroi:": "urn:cite2:hmt:vaimg.2017a:[email protected],0.4206,0.452,0.0286"
},
"urn": "urn:cite2:hmt:va_dse.v1:il1465",
"references": [
"urn:cts:greekLit:tlg0012.tlg001.msA-folios:41r.2.851"
]
},
{
"data": {
"urn:cite2:hmt:va_dse.v1.urn:": "urn:cite2:hmt:va_dse.v1:il1466",
"urn:cite2:hmt:va_dse.v1.label:": "DSE record for Iliad 2.852",
"urn:cite2:hmt:va_dse.v1.passage:": "urn:cts:greekLit:tlg0012.tlg001.msA:2.852",
"urn:cite2:hmt:va_dse.v1.surface:": "urn:cite2:hmt:msA.v1:41r",
"urn:cite2:hmt:va_dse.v1.imageroi:": "urn:cite2:hmt:vaimg.2017a:[email protected],0.4417,0.452,0.0286"
},
"urn": "urn:cite2:hmt:va_dse.v1:il1466",
"references": [
"urn:cts:greekLit:tlg0012.tlg001.msA-folios:41r.2.852"
]
},
{
"data": {
"urn:cite2:hmt:va_dse.v1.urn:": "urn:cite2:hmt:va_dse.v1:il1467",
"urn:cite2:hmt:va_dse.v1.label:": "DSE record for Iliad 2.853",
"urn:cite2:hmt:va_dse.v1.passage:": "urn:cts:greekLit:tlg0012.tlg001.msA:2.853",
"urn:cite2:hmt:va_dse.v1.surface:": "urn:cite2:hmt:msA.v1:41r",
"urn:cite2:hmt:va_dse.v1.imageroi:": "urn:cite2:hmt:vaimg.2017a:[email protected],0.4597,0.452,0.0286"
},
"urn": "urn:cite2:hmt:va_dse.v1:il1467",
"references": [
"urn:cts:greekLit:tlg0012.tlg001.msA-folios:41r.2.853"
]
},
{
"data": {
"urn:cite2:hmt:va_dse.v1.urn:": "urn:cite2:hmt:va_dse.v1:il1468",
"urn:cite2:hmt:va_dse.v1.label:": "DSE record for Iliad 2.854",
"urn:cite2:hmt:va_dse.v1.passage:": "urn:cts:greekLit:tlg0012.tlg001.msA:2.854",
"urn:cite2:hmt:va_dse.v1.surface:": "urn:cite2:hmt:msA.v1:41r",
"urn:cite2:hmt:va_dse.v1.imageroi:": "urn:cite2:hmt:vaimg.2017a:[email protected],0.4786,0.452,0.0286"
},
"urn": "urn:cite2:hmt:va_dse.v1:il1468",
"references": [
"urn:cts:greekLit:tlg0012.tlg001.msA-folios:41r.2.854"
]
},
{
"data": {
"urn:cite2:hmt:va_dse.v1.urn:": "urn:cite2:hmt:va_dse.v1:il1469",
"urn:cite2:hmt:va_dse.v1.label:": "DSE record for Iliad 2.855",
"urn:cite2:hmt:va_dse.v1.passage:": "urn:cts:greekLit:tlg0012.tlg001.msA:2.855",
"urn:cite2:hmt:va_dse.v1.surface:": "urn:cite2:hmt:msA.v1:41r",
"urn:cite2:hmt:va_dse.v1.imageroi:": "urn:cite2:hmt:vaimg.2017a:[email protected],0.4951,0.452,0.0286"
},
"urn": "urn:cite2:hmt:va_dse.v1:il1469",
"references": [
"urn:cts:greekLit:tlg0012.tlg001.msA-folios:41r.2.855"
]
},
{
"data": {
"urn:cite2:hmt:va_dse.v1.urn:": "urn:cite2:hmt:va_dse.v1:il1470",
"urn:cite2:hmt:va_dse.v1.label:": "DSE record for Iliad 2.856",
"urn:cite2:hmt:va_dse.v1.passage:": "urn:cts:greekLit:tlg0012.tlg001.msA:2.856",
"urn:cite2:hmt:va_dse.v1.surface:": "urn:cite2:hmt:msA.v1:41r",
"urn:cite2:hmt:va_dse.v1.imageroi:": "urn:cite2:hmt:vaimg.2017a:[email protected],0.5169,0.452,0.0286"
},
"urn": "urn:cite2:hmt:va_dse.v1:il1470",
"references": [
"urn:cts:greekLit:tlg0012.tlg001.msA-folios:41r.2.856"
]
},
{
"data": {
"urn:cite2:hmt:va_dse.v1.urn:": "urn:cite2:hmt:va_dse.v1:il1471",
"urn:cite2:hmt:va_dse.v1.label:": "DSE record for Iliad 2.857",
"urn:cite2:hmt:va_dse.v1.passage:": "urn:cts:greekLit:tlg0012.tlg001.msA:2.857",
"urn:cite2:hmt:va_dse.v1.surface:": "urn:cite2:hmt:msA.v1:41r",
"urn:cite2:hmt:va_dse.v1.imageroi:": "urn:cite2:hmt:vaimg.2017a:[email protected],0.538,0.452,0.0286"
},
"urn": "urn:cite2:hmt:va_dse.v1:il1471",
"references": [
"urn:cts:greekLit:tlg0012.tlg001.msA-folios:41r.2.857"
]
},
{
"data": {
"urn:cite2:hmt:va_dse.v1.urn:": "urn:cite2:hmt:va_dse.v1:il1472",
"urn:cite2:hmt:va_dse.v1.label:": "DSE record for Iliad 2.858",
"urn:cite2:hmt:va_dse.v1.passage:": "urn:cts:greekLit:tlg0012.tlg001.msA:2.858",
"urn:cite2:hmt:va_dse.v1.surface:": "urn:cite2:hmt:msA.v1:41r",
"urn:cite2:hmt:va_dse.v1.imageroi:": "urn:cite2:hmt:vaimg.2017a:[email protected],0.5583,0.452,0.0286"
},
"urn": "urn:cite2:hmt:va_dse.v1:il1472",
"references": [
"urn:cts:greekLit:tlg0012.tlg001.msA-folios:41r.2.858"
]
},
{
"data": {
"urn:cite2:hmt:va_dse.v1.urn:": "urn:cite2:hmt:va_dse.v1:il1473",
"urn:cite2:hmt:va_dse.v1.label:": "DSE record for Iliad 2.859",
"urn:cite2:hmt:va_dse.v1.passage:": "urn:cts:greekLit:tlg0012.tlg001.msA:2.859",
"urn:cite2:hmt:va_dse.v1.surface:": "urn:cite2:hmt:msA.v1:41r",
"urn:cite2:hmt:va_dse.v1.imageroi:": "urn:cite2:hmt:vaimg.2017a:[email protected],0.5741,0.452,0.0286"
},
"urn": "urn:cite2:hmt:va_dse.v1:il1473",
"references": [
"urn:cts:greekLit:tlg0012.tlg001.msA-folios:41r.2.859"
]
},
{
"data": {
"urn:cite2:hmt:va_dse.v1.urn:": "urn:cite2:hmt:va_dse.v1:il1474",
"urn:cite2:hmt:va_dse.v1.label:": "DSE record for Iliad 2.860",
"urn:cite2:hmt:va_dse.v1.passage:": "urn:cts:greekLit:tlg0012.tlg001.msA:2.860",
"urn:cite2:hmt:va_dse.v1.surface:": "urn:cite2:hmt:msA.v1:41r",
"urn:cite2:hmt:va_dse.v1.imageroi:": "urn:cite2:hmt:vaimg.2017a:[email protected],0.5952,0.452,0.0286"
},
"urn": "urn:cite2:hmt:va_dse.v1:il1474",
"references": [
"urn:cts:greekLit:tlg0012.tlg001.msA-folios:41r.2.860"
]
},
{
"data": {
"urn:cite2:hmt:va_dse.v1.urn:": "urn:cite2:hmt:va_dse.v1:il1475",
"urn:cite2:hmt:va_dse.v1.label:": "DSE record for Iliad 2.861",
"urn:cite2:hmt:va_dse.v1.passage:": "urn:cts:greekLit:tlg0012.tlg001.msA:2.861",
"urn:cite2:hmt:va_dse.v1.surface:": "urn:cite2:hmt:msA.v1:41r",
"urn:cite2:hmt:va_dse.v1.imageroi:": "urn:cite2:hmt:vaimg.2017a:[email protected],0.6147,0.452,0.0286"
},
"urn": "urn:cite2:hmt:va_dse.v1:il1475",
"references": [
"urn:cts:greekLit:tlg0012.tlg001.msA-folios:41r.2.861"
]
},
{
"data": {
"urn:cite2:hmt:va_dse.v1.urn:": "urn:cite2:hmt:va_dse.v1:il1476",
"urn:cite2:hmt:va_dse.v1.label:": "DSE record for Iliad 2.862",
"urn:cite2:hmt:va_dse.v1.passage:": "urn:cts:greekLit:tlg0012.tlg001.msA:2.862",
"urn:cite2:hmt:va_dse.v1.surface:": "urn:cite2:hmt:msA.v1:41r",
"urn:cite2:hmt:va_dse.v1.imageroi:": "urn:cite2:hmt:vaimg.2017a:[email protected],0.6328,0.452,0.0286"
},
"urn": "urn:cite2:hmt:va_dse.v1:il1476",
"references": [
"urn:cts:greekLit:tlg0012.tlg001.msA-folios:41r.2.862"
]
},
{
"data": {
"urn:cite2:hmt:va_dse.v1.urn:": "urn:cite2:hmt:va_dse.v1:il1477",
"urn:cite2:hmt:va_dse.v1.label:": "DSE record for Iliad 2.863",
"urn:cite2:hmt:va_dse.v1.passage:": "urn:cts:greekLit:tlg0012.tlg001.msA:2.863",
"urn:cite2:hmt:va_dse.v1.surface:": "urn:cite2:hmt:msA.v1:41r",
"urn:cite2:hmt:va_dse.v1.imageroi:": "urn:cite2:hmt:vaimg.2017a:[email protected],0.6516,0.452,0.0286"
},
"urn": "urn:cite2:hmt:va_dse.v1:il1477",
"references": [
"urn:cts:greekLit:tlg0012.tlg001.msA-folios:41r.2.863"
]
},
{
"data": {
"urn:cite2:hmt:va_dse.v1.urn:": "urn:cite2:hmt:va_dse.v1:il1478",
"urn:cite2:hmt:va_dse.v1.label:": "DSE record for Iliad 2.864",
"urn:cite2:hmt:va_dse.v1.passage:": "urn:cts:greekLit:tlg0012.tlg001.msA:2.864",
"urn:cite2:hmt:va_dse.v1.surface:": "urn:cite2:hmt:msA.v1:41r",
"urn:cite2:hmt:va_dse.v1.imageroi:": "urn:cite2:hmt:vaimg.2017a:[email protected],0.6697,0.452,0.0286"
},
"urn": "urn:cite2:hmt:va_dse.v1:il1478",
"references": [
"urn:cts:greekLit:tlg0012.tlg001.msA-folios:41r.2.864"
]
},
{
"data": {
"urn:cite2:hmt:va_dse.v1.urn:": "urn:cite2:hmt:va_dse.v1:il1479",
"urn:cite2:hmt:va_dse.v1.label:": "DSE record for Iliad 2.865",
"urn:cite2:hmt:va_dse.v1.passage:": "urn:cts:greekLit:tlg0012.tlg001.msA:2.865",
"urn:cite2:hmt:va_dse.v1.surface:": "urn:cite2:hmt:msA.v1:41r",
"urn:cite2:hmt:va_dse.v1.imageroi:": "urn:cite2:hmt:vaimg.2017a:[email protected],0.6855,0.452,0.0286"
},
"urn": "urn:cite2:hmt:va_dse.v1:il1479",
"references": [
"urn:cts:greekLit:tlg0012.tlg001.msA-folios:41r.2.865"
]
}
]
}
]
Loading

0 comments on commit 5709c57

Please sign in to comment.