Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
subugoe
ahiqar
api-documentation
Commits
326b0915
Commit
326b0915
authored
Feb 12, 2021
by
mrodzis
💪
Browse files
Merge branch '12-fix-data-paths' into 'main'
Resolve "fix data paths" Closes
#12
See merge request
!11
parents
94fce3fd
48f559cd
Changes
1
Hide whitespace changes
Inline
Side-by-side
content/page/annotation-api-specs.md
View file @
326b0915
...
...
@@ -208,123 +208,137 @@ Provides information about the target node or text the annotation refers to.
#### Annotation Collection: Example for Collection
`http://ahikar.sub.uni-goettingen.de/api/
textapi/ahikar/3r132/3r9ps
/annotationCollection.json`
`http://ahikar
-dev
.sub.uni-goettingen.de/api/
annotations/ahikar/arabic-karshuni
/annotationCollection.json`
```
json
{
"annotationCollection"
:
{
"total"
:
3926
,
"@context"
:
"http://www.w3.org/ns/anno.jsonld"
,
"first"
:
"https://ahikar.sub.uni-goettingen.de/
textapi/ahikar/3r9ps
/3r7
p9
/annotationPage.json"
,
"label"
:
"Ahikar annotations for textgrid:
3r9ps: arabic
"
,
"last"
:
"https://ahikar.sub.uni-goettingen.de/
textapi/ahikar/3r9ps/3rx14
/annotationPage.json"
,
"x-creator"
:
"Simon Birol, Aly Elrefaei"
,
"type"
:
"AnnotationCollection"
,
"id"
:
"http://ahikar.sub.uni-goettingen.de/ns/annotations/annotationCollection/
3r9ps
"
"annotationCollection"
:
{
"total"
:
7460
,
"@context"
:
"http://www.w3.org/ns/anno.jsonld"
,
"first"
:
"https://ahikar
-dev
.sub.uni-goettingen.de/
api/annotations/ahikar/arabic-karshuni
/3r7
nv
/annotationPage.json"
,
"label"
:
"Ahikar annotations for textgrid:
arabic-karshuni: The Arabic and Karshuni Collections
"
,
"last"
:
"https://ahikar
-dev
.sub.uni-goettingen.de/
api/annotations/ahikar/arabic-karshuni/3r17d
/annotationPage.json"
,
"x-creator"
:
"Simon Birol, Aly Elrefaei
, Salhani, Anton
"
,
"type"
:
"AnnotationCollection"
,
"id"
:
"http://ahikar.sub.uni-goettingen.de/ns/annotations/annotationCollection/
arabic-karshuni
"
}
}
```
#### Annotation Collection: Example for Manifest
`http://ahikar.sub.uni-goettingen.de/api/
textapi/ahikar/3r9ps/3rx14
/annotationCollection.json`
`http
s
://ahikar
-dev
.sub.uni-goettingen.de/api/
annotations/ahikar/arabic-karshuni/3r7nv
/annotationCollection.json`
```
json
{
"annotationCollection"
:
{
"total"
:
0
,
"@context"
:
"http://www.w3.org/ns/anno.jsonld"
,
"first"
:
"https://ahikar.sub.uni-goettingen.de/textapi/ahikar/3r9ps/3rx14/1/annotationPage.json"
,
"label"
:
"Ahikar annotations for textgrid:3rx14: arabic, page 1"
,
"x-creator"
:
"Simon Birol, Aly Elrefaei"
,
"type"
:
"AnnotationCollection"
,
"id"
:
"http://ahikar.sub.uni-goettingen.de/ns/annotations/annotationCollection/3rx14/1"
"annotationCollection"
:
{
"total"
:
395
,
"@context"
:
"http://www.w3.org/ns/anno.jsonld"
,
"first"
:
"https://ahikar-dev.sub.uni-goettingen.de/api/annotations/ahikar/arabic-karshuni/3r7nv/264v/annotationPage.json"
,
"label"
:
"Ahikar annotations for textgrid:3r7nv: Vat. Syriac 199"
,
"last"
:
"https://ahikar-dev.sub.uni-goettingen.de/api/annotations/ahikar/arabic-karshuni/3r7nv/283v/annotationPage.json"
,
"x-creator"
:
"Simon Birol, Aly Elrefaei"
,
"type"
:
"AnnotationCollection"
,
"id"
:
"http://ahikar.sub.uni-goettingen.de/ns/annotations/annotationCollection/3r7nv"
}
}
```
#### Annotation Collection: Example for Item
`http://ahikar.sub.uni-goettingen.de/api/
textapi/ahikar/3r9ps/3rx14-1
/annotationCollection.json`
`http
s
://ahikar
-dev
.sub.uni-goettingen.de/api/
annotations/ahikar/arabic-karshuni/3r7nv/264v
/annotationCollection.json`
```
json
{
"annotationCollection"
:
{
"total"
:
0
,
"creator"
:
"Simon Birol, Aly Elrefaei"
,
"first"
:
"http://ahikar.sub.uni-goettingen.de/api/textapi/ahikar/3r9ps/3rx14/1/annotationPage.json"
,
"label"
:
"Ahikar annotations for textgrid:3rx14: arabic, page 1"
,
"type"
:
"AnnotationCollection"
,
"id"
:
"http://ahikar.sub.uni-goettingen.de/ns/annotations/annotationCollection/3rx14/1"
"annotationCollection"
:
{
"total"
:
0
,
"@context"
:
"http://www.w3.org/ns/anno.jsonld"
,
"first"
:
"https://ahikar-dev.sub.uni-goettingen.de/api/annotations/ahikar/arabic-karshuni/3r7nv/264v/annotationPage.json"
,
"label"
:
"Ahikar annotations for textgrid:3r7nv: Vat. Syriac 199, page 264v"
,
"x-creator"
:
"Simon Birol, Aly Elrefaei"
,
"type"
:
"AnnotationCollection"
,
"id"
:
"http://ahikar.sub.uni-goettingen.de/ns/annotations/annotationCollection/3r7nv/264v"
}
}
```
#### Annotation Page: Example for Manifest
`http://ahikar.sub.uni-goettingen.de/api/
textapi/ahikar/3r9ps/3rx14
/annotationPage.json`
`http
s
://ahikar
-dev
.sub.uni-goettingen.de/api/
annotations/ahikar/arabic-karshuni/3r7nv
/annotationPage.json`
```
json
{
"annotationPage"
:
{
"items"
:
[
{
"bodyValue"
:
"A person's name."
,
"target"
:
{
"format"
:
"text/xml"
,
"language"
:
"ara"
,
"id"
:
"http://ahikar.sub.uni-goettingen.de/ns/annotations/3rx15/N1.1.1.1.2.3.2"
},
"type"
:
"Annotation"
,
"id"
:
"http://ahikar.sub.uni-goettingen.de/ns/annotations/3rx15/annotation-N1.1.1.1.2.3.2"
"annotationPage"
:
{
"items"
:
[
{
"bodyValue"
:
"A place's name."
,
"target"
:
{
"format"
:
"text/xml"
,
"language"
:
"karshuni"
,
"id"
:
"http://ahikar.sub.uni-goettingen.de/ns/annotations/3r7nt/N4.4.2.6.4.12.2"
},
...
],
"partOf"
:
{
"total"
:
3926
,
"label"
:
"Ahikar annotations for 3r9ps"
,
"id"
:
"http://ahikar.sub.uni-goettingen.de/ns/annotations/annotationCollection/3r9ps"
"type"
:
"Annotation"
,
"id"
:
"http://ahikar.sub.uni-goettingen.de/ns/annotations/3r7nt/annotation-N4.4.2.6.4.12.2"
},
{
"bodyValue"
:
"A person's name."
,
"target"
:
{
"format"
:
"text/xml"
,
"language"
:
"karshuni"
,
"id"
:
"http://ahikar.sub.uni-goettingen.de/ns/annotations/3r7nt/N4.4.2.6.4.8.2"
},
"type"
:
"Annotation"
,
"id"
:
"http://ahikar.sub.uni-goettingen.de/ns/annotations/3r7nt/annotation-N4.4.2.6.4.8.2"
}],
"partOf"
:
{
"total"
:
7460
,
"label"
:
"Ahikar annotations for arabic-karshuni"
,
"id"
:
"http://ahikar.sub.uni-goettingen.de/ns/annotations/annotationCollection/arabic-karshuni"
},
"@context"
:
"http://www.w3.org/ns/anno.jsonld"
,
"startIndex"
:
3601
,
"prev"
:
"https://ahikar.sub.uni-goettingen.de/textapi/ahikar/3r9ps/3r7n0/annotationPage.json"
,
"next"
:
null
,
"id"
:
"http://ahikar.sub.uni-goettingen.de/ns/annotations/annotationPage/
3r9ps/3rx14
"
"@context"
:
"http://www.w3.org/ns/anno.jsonld"
,
"startIndex"
:
2075
,
"prev"
:
null
,
"next"
:
"https://ahikar-dev.sub.uni-goettingen.de/api/annotations/ahikar/arabic-karshuni/3r7p9/annotationPage.json"
,
"id"
:
"http://ahikar.sub.uni-goettingen.de/ns/annotations/annotationPage/
arabic-karshuni/3r7nv
"
}
}
```
#### Annotation Page: Example for Item
`http://ahikar.sub.uni-goettingen.de/api/
textapi/ahikar/3r9ps/3rx14/1
/annotationPage.json`
`http
s
://ahikar
-dev
.sub.uni-goettingen.de/api/
annotations/ahikar/arabic-karshuni/3r7nv/264v
/annotationPage.json`
```
json
{
"annotationPage"
:
{
"items"
:
[
{
"bodyValue"
:
"A person's name."
,
"target"
:
{
"format"
:
"text/xml"
,
"language"
:
"ara"
,
"id"
:
"http://ahikar.sub.uni-goettingen.de/ns/annotations/3rx15/N1.1.1.1.2.3.2"
},
"type"
:
"Annotation"
,
"id"
:
"http://ahikar.sub.uni-goettingen.de/ns/annotations/3rx15/annotation-N1.1.1.1.2.3.2"
"annotationPage"
:
{
"items"
:
[
{
"bodyValue"
:
"A place's name."
,
"target"
:
{
"format"
:
"text/xml"
,
"language"
:
"karshuni"
,
"id"
:
"http://ahikar.sub.uni-goettingen.de/ns/annotations/3r7nt/N4.4.2.6.4.18.2"
},
"type"
:
"Annotation"
,
"id"
:
"http://ahikar.sub.uni-goettingen.de/ns/annotations/3r7nt/annotation-N4.4.2.6.4.18.2"
},
{
"bodyValue"
:
"A person's name."
,
"target"
:
{
"format"
:
"text/xml"
,
"language"
:
"karshuni"
,
"id"
:
"http://ahikar.sub.uni-goettingen.de/ns/annotations/3r7nt/N4.4.2.6.4.8.2"
},
...
],
"partOf"
:
{
"total"
:
325
,
"label"
:
"Ahikar annotations for textgrid:3rx14: Salhani"
,
"id"
:
"http://ahikar.sub.uni-goettingen.de/ns/annotations/annotationCollection/3rx14"
"type"
:
"Annotation"
,
"id"
:
"http://ahikar.sub.uni-goettingen.de/ns/annotations/3r7nt/annotation-N4.4.2.6.4.8.2"
}],
"partOf"
:
{
"total"
:
395
,
"label"
:
"Ahikar annotations for textgrid:3r7nv: Vat. Syriac 199"
,
"id"
:
"http://ahikar.sub.uni-goettingen.de/ns/annotations/annotationCollection/3r7nv"
},
"@context"
:
"http://www.w3.org/ns/anno.jsonld"
,
"startIndex"
:
0
,
"prev"
:
null
,
"next"
:
"https://ahikar.sub.uni-goettingen.de/
textapi/ahikar/3r9ps/3rx14/2
/annotationPage.json"
,
"type"
:
"AnnotationPage"
,
"id"
:
"http://ahikar.sub.uni-goettingen.de/ns/annotations/annotationPage/
3r9ps/3rx14/1
"
"@context"
:
"http://www.w3.org/ns/anno.jsonld"
,
"startIndex"
:
0
,
"prev"
:
null
,
"next"
:
"https://ahikar
-dev
.sub.uni-goettingen.de/
api/annotations/ahikar/arabic-karshuni/3r7nv/264r
/annotationPage.json"
,
"type"
:
"AnnotationPage"
,
"id"
:
"http://ahikar.sub.uni-goettingen.de/ns/annotations/annotationPage/
arabic-karshuni/3r7nv-264v
"
}
}
```
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment