-
Notifications
You must be signed in to change notification settings - Fork 1
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 #82 from Financial-Times/Feature/UPPSF-5438
Draft Annotations for FTA
- Loading branch information
Showing
8 changed files
with
233 additions
and
5 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
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
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,65 @@ | ||
{ | ||
"$schema": "https://json-schema.org/draft/2020-12/schema", | ||
"$id": "http://upp-publishing-prod.ft.com/schema/draft-annotations-fta-add+json", | ||
"title": "Draft FTA Annotations Add Endpoint", | ||
"type": "object", | ||
"description": "Schema for Draft FTA Annotations", | ||
"properties": { | ||
"annotation": { | ||
"type": "object", | ||
"description": "Schema for FTA Annotations", | ||
"properties": { | ||
"id": { | ||
"type": "string", | ||
"pattern": ".*/([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$", | ||
"description": "ID of the related concept" | ||
}, | ||
"predicate": { | ||
"type": "string", | ||
"description": "Predicate of the annotation", | ||
"enum": [ | ||
"http://www.ft.com/ontology/annotation/mentions", | ||
"http://www.ft.com/ontology/classification/isClassifiedBy", | ||
"http://www.ft.com/ontology/annotation/about", | ||
"http://www.ft.com/ontology/hasDisplayTag", | ||
"http://www.ft.com/ontology/annotation/isSponsoredBy" | ||
] | ||
}, | ||
"apiUrl": { | ||
"type": "string", | ||
"description": "API URL of the related concept" | ||
}, | ||
"type": { | ||
"type": "string", | ||
"description": "Type of the related concept" | ||
}, | ||
"prefLabel": { | ||
"type": "string", | ||
"description": "PrefLabel of the related concept" | ||
}, | ||
"isFTAuthor": { | ||
"type": "boolean", | ||
"description": "Indicates whether the related concept is an FT author" | ||
} | ||
}, | ||
"required": [ | ||
"id", | ||
"predicate" | ||
], | ||
"additionalProperties": false | ||
}, | ||
"publication": { | ||
"type": "array", | ||
"description": "Indicates which titles are aware of this content", | ||
"items": { | ||
"type": "string", | ||
"pattern": "[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}" | ||
} | ||
} | ||
}, | ||
"required": [ | ||
"annotation", | ||
"publication" | ||
], | ||
"additionalProperties": false | ||
} |
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,65 @@ | ||
{ | ||
"$schema": "https://json-schema.org/draft/2020-12/schema", | ||
"$id": "http://upp-publishing-prod.ft.com/schema/draft-annotations-fta-add+json", | ||
"title": "Draft FTA Annotations Replace Endpoint", | ||
"type": "object", | ||
"description": "Schema for Draft FTA Annotations", | ||
"properties": { | ||
"annotation": { | ||
"type": "object", | ||
"description": "Schema for FTA Annotations", | ||
"properties": { | ||
"id": { | ||
"type": "string", | ||
"pattern": ".*/([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$", | ||
"description": "ID of the related concept" | ||
}, | ||
"predicate": { | ||
"type": "string", | ||
"description": "Predicate of the annotation", | ||
"enum": [ | ||
"http://www.ft.com/ontology/annotation/mentions", | ||
"http://www.ft.com/ontology/classification/isClassifiedBy", | ||
"http://www.ft.com/ontology/annotation/about", | ||
"http://www.ft.com/ontology/hasDisplayTag", | ||
"http://www.ft.com/ontology/annotation/isSponsoredBy" | ||
] | ||
}, | ||
"apiUrl": { | ||
"type": "string", | ||
"description": "API URL of the related concept" | ||
}, | ||
"type": { | ||
"type": "string", | ||
"description": "Type of the related concept" | ||
}, | ||
"prefLabel": { | ||
"type": "string", | ||
"description": "PrefLabel of the related concept" | ||
}, | ||
"isFTAuthor": { | ||
"type": "boolean", | ||
"description": "Indicates whether the related concept is an FT author" | ||
} | ||
}, | ||
"required": [ | ||
"id", | ||
"predicate" | ||
], | ||
"additionalProperties": false | ||
}, | ||
"publication": { | ||
"type": "array", | ||
"description": "Indicates which titles are aware of this content", | ||
"items": { | ||
"type": "string", | ||
"pattern": "[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}" | ||
} | ||
} | ||
}, | ||
"required": [ | ||
"annotation", | ||
"publication" | ||
], | ||
"additionalProperties": false | ||
} |
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,74 @@ | ||
{ | ||
"$schema": "https://json-schema.org/draft/2020-12/schema", | ||
"$id": "http://upp-publishing-prod.ft.com/schema/draft-annotations-fta-write+json", | ||
"title": "Draft FTA Annotations", | ||
"type": "object", | ||
"description": "Schema for Draft FTA Annotations", | ||
"properties": { | ||
"annotations": { | ||
"type": "array", | ||
"description": "Draft FTA annotations", | ||
"items": { | ||
"$ref": "#/$defs/annotation" | ||
} | ||
}, | ||
"publication": { | ||
"type": "array", | ||
"description": "Indicates which titles are aware of this content", | ||
"items": { | ||
"type": "string", | ||
"pattern": "[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}" | ||
} | ||
} | ||
}, | ||
"required": [ | ||
"annotations", | ||
"publication" | ||
], | ||
"additionalProperties": false, | ||
"$defs": { | ||
"annotation": { | ||
"type": "object", | ||
"description": "Schema for FTA Annotations", | ||
"properties": { | ||
"id": { | ||
"type": "string", | ||
"pattern": ".*/([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$", | ||
"description": "ID of the related concept" | ||
}, | ||
"predicate": { | ||
"type": "string", | ||
"description": "Predicate of the annotation", | ||
"enum": [ | ||
"http://www.ft.com/ontology/annotation/mentions", | ||
"http://www.ft.com/ontology/classification/isClassifiedBy", | ||
"http://www.ft.com/ontology/annotation/about", | ||
"http://www.ft.com/ontology/hasDisplayTag", | ||
"http://www.ft.com/ontology/annotation/isSponsoredBy" | ||
] | ||
}, | ||
"apiUrl": { | ||
"type": "string", | ||
"description": "API URL of the related concept" | ||
}, | ||
"type": { | ||
"type": "string", | ||
"description": "Type of the related concept" | ||
}, | ||
"prefLabel": { | ||
"type": "string", | ||
"description": "PrefLabel of the related concept" | ||
}, | ||
"isFTAuthor": { | ||
"type": "boolean", | ||
"description": "Indicates whether the related concept is an FT author" | ||
} | ||
}, | ||
"required": [ | ||
"id", | ||
"predicate" | ||
], | ||
"additionalProperties": false | ||
} | ||
} | ||
} |
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