-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: nouvelle structure des métadonnées d'un article
- Loading branch information
1 parent
88046e0
commit 569a5e8
Showing
2 changed files
with
236 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,232 @@ | ||
{ | ||
"$schema": "https://json-schema.org/draft/2020-12/schema", | ||
"$id": "https://stylo.huma-num.fr/schemas/article-metadata.schema.json", | ||
"title": "Article metadata", | ||
"type": "object", | ||
"definitions": { | ||
"lang": { | ||
"type": "string", | ||
"enum": [ | ||
"fr", | ||
"en", | ||
"it", | ||
"es", | ||
"pt", | ||
"de", | ||
"uk", | ||
"ar" | ||
] | ||
}, | ||
"person": { | ||
"type": "object", | ||
"properties": { | ||
"surname": { | ||
"type": "string", | ||
"title": "Last name" | ||
}, | ||
"forname": { | ||
"type": "string", | ||
"title": "First name" | ||
}, | ||
"affiliations": { | ||
"type": "string", | ||
"title": "Affiliations" | ||
}, | ||
"biography": { | ||
"type": "string", | ||
"title": "Biography" | ||
}, | ||
"email": { | ||
"type": "string", | ||
"title": "Email" | ||
}, | ||
"orcid": { | ||
"type": "string", | ||
"title": "ORCID" | ||
}, | ||
"viaf": { | ||
"type": "string", | ||
"title": "VIAF" | ||
}, | ||
"foaf": { | ||
"type": "string", | ||
"title": "FOAF" | ||
}, | ||
"isni": { | ||
"type": "string", | ||
"title": "ISNI" | ||
}, | ||
"wikidata": { | ||
"type": "string", | ||
"title": "Wikidata" | ||
} | ||
} | ||
}, | ||
"localizedContent": { | ||
"type": "object", | ||
"properties": { | ||
"lang": { | ||
"$ref": "#/definitions/lang" | ||
}, | ||
"title": { | ||
"type": "string" | ||
}, | ||
"subtitle": { | ||
"type": "string" | ||
}, | ||
"abstract": { | ||
"type": "string" | ||
}, | ||
"keywords": { | ||
"type": "array", | ||
"items": { | ||
"type": "string" | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"properties": { | ||
"type": { | ||
"type": "string", | ||
"const": "article" | ||
}, | ||
"@version": { | ||
"type": "string", | ||
"const": "1.0" | ||
}, | ||
"id": { | ||
"type": "string" | ||
}, | ||
"publicationDate": { | ||
"type": "string", | ||
"format": "date" | ||
}, | ||
"url": { | ||
"type": "string", | ||
"format": "uri" | ||
}, | ||
"license": { | ||
"type": "string" | ||
}, | ||
"localizedContent": { | ||
"type": "array", | ||
"items": { | ||
"$ref": "#/definitions/localizedContent" | ||
} | ||
}, | ||
"authors": { | ||
"type": "array", | ||
"items": { | ||
"$ref": "#/definitions/person" | ||
} | ||
}, | ||
"reviewers": { | ||
"type": "array", | ||
"items": { | ||
"$ref": "#/definitions/person" | ||
} | ||
}, | ||
"transcribers": { | ||
"type": "array", | ||
"items": { | ||
"$ref": "#/definitions/person" | ||
} | ||
}, | ||
"translators": { | ||
"type": "array", | ||
"items": { | ||
"$ref": "#/definitions/person" | ||
} | ||
}, | ||
"translations": { | ||
"type": "array", | ||
"items": { | ||
"type": "object", | ||
"properties": { | ||
"title": { | ||
"type": "string" | ||
}, | ||
"url": { | ||
"type": "string" | ||
}, | ||
"lang": { | ||
"$ref": "#/definitions/lang" | ||
} | ||
} | ||
} | ||
}, | ||
"issue": { | ||
"type": "object", | ||
"properties": { | ||
"title": { | ||
"type": "string" | ||
}, | ||
"identifier": { | ||
"type": "string" | ||
}, | ||
"number": { | ||
"type": "string" | ||
} | ||
} | ||
}, | ||
"issueDirectors": { | ||
"type": "array", | ||
"items": { | ||
"$ref": "#/definitions/person" | ||
} | ||
}, | ||
"issn": { | ||
"type": "string" | ||
}, | ||
"producer": { | ||
"type": "string" | ||
}, | ||
"prodNum": { | ||
"type": "string" | ||
}, | ||
"diffNum": { | ||
"type": "string" | ||
}, | ||
"funder": { | ||
"type": "object", | ||
"title": "", | ||
"properties": { | ||
"organization": { | ||
"type": "string" | ||
}, | ||
"id": { | ||
"type": "string" | ||
} | ||
} | ||
}, | ||
"journal": { | ||
"type": "object", | ||
"properties": { | ||
"name": { | ||
"type": "string" | ||
}, | ||
"publisher": { | ||
"type": "string" | ||
}, | ||
"email": { | ||
"type": "string" | ||
}, | ||
"url": { | ||
"type": "string" | ||
} | ||
} | ||
}, | ||
"journalDirectors": { | ||
"type": "array", | ||
"items": { | ||
"$ref": "#/definitions/person" | ||
} | ||
} | ||
}, | ||
"allOf": [ | ||
{ | ||
"$ref": "#/definitions/localizedContent" | ||
} | ||
] | ||
} |
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