-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #70 from DiSSCo/feature/fdo-profiles
Feature/fdo profiles
- Loading branch information
Showing
28 changed files
with
1,048 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
data-model/digitalobjects/0.1.0/digital-media-objects/schema/digital-entity.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
data-model/digitalobjects/0.1.0/digital-specimens/schema/chronometric-age.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
data-model/digitalobjects/0.1.0/digital-specimens/schema/digital-specimen.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
data-model/digitalobjects/0.1.0/digital-specimens/schema/events.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
data-model/digitalobjects/0.1.0/digital-specimens/schema/identifications.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
data-model/digitalobjects/0.1.0/digital-specimens/schema/location.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
data-model/digitalobjects/0.1.0/digital-specimens/schema/material-entity.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
data-model/digitalobjects/0.1.0/digital-specimens/schema/occurrences.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
45 changes: 45 additions & 0 deletions
45
data-model/fdo-profiles/0.1.0/annotation/schema/annotation-request.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
{ | ||
"$id": "https://json-schema.org/draft/2020-12/schemas/fdo-profiles/0.1.0/annotation-request.json", | ||
"$schema": "https://json-schema.org/draft/2020-12/schema", | ||
"description": "Schema for creating new PID records for Annotations using the DiSSCO PID API. API maps requests to annotation.json profile", | ||
"$comment":"FDO Profile Version 0.1.0", | ||
"allof": [ | ||
{ | ||
"$ref": "https://schemas.dissco.tech/schemas/fdo-profiles/0.1.0/handle-request.json" | ||
} | ||
], | ||
"properties": { | ||
"targetPid": { | ||
"type": "string", | ||
"description": "A Handle or DOI of the object that is being annotated", | ||
"example": "https:/hdl.handle.net/20.5000.1025/ABC-123-XYZ", | ||
"$comment": "idx = 500" | ||
}, | ||
"targetType": { | ||
"type": "string", | ||
"description": "Map to ods:type in annotation model", | ||
"$comment": "idx = 500" | ||
}, | ||
"motivation": { | ||
"enum": [ | ||
"ods:adding", | ||
"oa:assessing", | ||
"oa:editing", | ||
"oa:commenting" | ||
], | ||
"description": "The motivation for the annotation. Based on a selection of https://www.w3.org/TR/annotation-model/#motivation-and-purpose. The motivation ods:adding is added for DiSSCo's purposes.", | ||
"$comment": "idx = 502" | ||
}, | ||
"annotationHash": { | ||
"type": "string", | ||
"description": "MD5 hash based on target, motivation, and creator. Internally generated by DiSSCo Annotation Processing Service for machine annotations", | ||
"$comment": "idx = 503" | ||
} | ||
}, | ||
"additionalProperties": false, | ||
"required": [ | ||
"targetPid", | ||
"targetType", | ||
"motivation" | ||
] | ||
} |
45 changes: 45 additions & 0 deletions
45
data-model/fdo-profiles/0.1.0/annotation/schema/annotation.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
{ | ||
"$id": "https://json-schema.org/draft/2020-12/schemas/fdo-profiles/0.1.0/annotation.json", | ||
"$schema": "https://json-schema.org/draft/2020-12/schema", | ||
"description": "FDO Profile for DiSSCo Annotations", | ||
"$comment":"FDO Profile Version 0.1.0", | ||
"allof": [ | ||
{ | ||
"$ref": "https://schemas.dissco.tech/schemas/fdo-profiles/0.1.0/handle-kernel.json" | ||
} | ||
], | ||
"properties": { | ||
"targetPid": { | ||
"type": "string", | ||
"description": "A Handle or DOI of the object that is being annotated", | ||
"example": "https:/hdl.handle.net/20.5000.1025/ABC-123-XYZ", | ||
"$comment": "idx = 500" | ||
}, | ||
"targetType": { | ||
"type": "string", | ||
"description": "Map to ods:type in annotation model", | ||
"$comment": "idx = 500" | ||
}, | ||
"motivation": { | ||
"enum": [ | ||
"ods:adding", | ||
"oa:assessing", | ||
"oa:editing", | ||
"oa:commenting" | ||
], | ||
"description": "The motivation for the annotation. Based on a selection of https://www.w3.org/TR/annotation-model/#motivation-and-purpose. The motivation ods:adding is added for DiSSCo's purposes.", | ||
"$comment": "idx = 502" | ||
}, | ||
"annotationHash": { | ||
"type": "string", | ||
"description": "MD5 hash based on target, motivation, and creator. Internally generated by DiSSCo Annotation Processing Service for machine annotations", | ||
"$comment": "idx = 503" | ||
} | ||
}, | ||
"additionalProperties": false, | ||
"required": [ | ||
"targetPid", | ||
"targetType", | ||
"motivation" | ||
] | ||
} |
Oops, something went wrong.