Commit 22f50243 authored by mrodzis's avatar mrodzis 🌿
Browse files

feat: add draft for semantic annotation types

parent 94fce3fd
......@@ -153,11 +153,22 @@ A sequence of annotations belonging to an Annotation Page.
| Field Name | Cardinality | Type | Description |
|----|----|----|----|
| bodyValue | 1 | string | the content of the annotation |
| target | 1 | \[[Target Object](#target-object)\] | information about the target of the annotation |
| body | 1 | \[[Body Object](#body-object)\] | the content of the annotation |
| target | 1 | [Target Object](#target-object) | information about the target of the annotation |
| type | 1 | string | MUST be `Annotation`|
| id | 1 | URI | a unique identifier for the annotation in the form of `http://ahikar.sub.uni-goettingen.de/ns/annotations/{$resource-URI}/{$node-ID}`. `{$node-ID}` refers to the ID of the TEI node from which the annotation has been extracted |
### Body Object
The content of the annotation.
| Field Name | Cardinality | Type | Description |
|----|----|----|----|
| type | 1 | string | MUST be `TextualBody` |
| value | 1 | string | the content of the annotation |
| format | 1 | MIME type | MUST be `text/plain` since we only provide a string as the annotation content |
| x-content-type | 1 | string | the semantic type of the annotation. MUST be one of the following: `Person`, `Place`, `Motif`. |
### Target Object
Provides information about the target node or text the annotation refers to.
......@@ -193,15 +204,18 @@ Provides information about the target node or text the annotation refers to.
// objects
[PartOf|-id 1; -label 1; -total 1]
[Annotation Item| -bodyValue 1; -@context 1; -target 1; -type 1; -id 1]
[Annotation Item| -body 1; -@context 1; -target 1; -type 1; -id 1]
[Target| -format 1; -language 1; -id 1]
[Body| -type 1; -value 1; -format 1; -x-content-type 1]
// imports
[Annotation Page]-[PartOf]
[Annotation Page]-[Annotation Item]
[Annotation Item]-[Target]
[Annotation Item]-[Body]
```
### Examples
......@@ -269,7 +283,12 @@ Provides information about the target node or text the annotation refers to.
"annotationPage": {
"items": [
{
"bodyValue": "A person's name.",
"body": {
"type": "TextualBody",
"value": "A person's name.",
"format": "text/plain",
"x-content-type": "Person"
},
"target": {
"format": "text/xml",
"language": "ara",
......@@ -277,8 +296,7 @@ Provides information about the target node or text the annotation refers to.
},
"type": "Annotation",
"id": "http://ahikar.sub.uni-goettingen.de/ns/annotations/3rx15/annotation-N1.1.1.1.2.3.2"
},
...
}
],
"partOf": {
"total": 3926,
......@@ -303,7 +321,12 @@ Provides information about the target node or text the annotation refers to.
"annotationPage": {
"items": [
{
"bodyValue": "A person's name.",
"body": {
"type": "TextualBody",
"value": "A person's name.",
"format": "text/plain",
"x-content-type": "Person"
},
"target": {
"format": "text/xml",
"language": "ara",
......@@ -311,8 +334,7 @@ Provides information about the target node or text the annotation refers to.
},
"type": "Annotation",
"id": "http://ahikar.sub.uni-goettingen.de/ns/annotations/3rx15/annotation-N1.1.1.1.2.3.2"
},
...
}
],
"partOf": {
"total": 325,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment