Skip to content

Commit

Permalink
schema edits
Browse files Browse the repository at this point in the history
  • Loading branch information
ialarmedalien committed May 17, 2024
1 parent e3c0221 commit e36d86b
Showing 1 changed file with 46 additions and 47 deletions.
93 changes: 46 additions & 47 deletions schema/kbase/jsonschema/credit_metadata.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
},
"contributor_type": {
"$ref": "#/$defs/ContributorType",
"description": "Must be either 'Person' or 'Organization'"
"description": "Must be either 'Person' or 'Organization'."
},
"family_name": {
"description": "The family name(s) of the contributor.",
Expand Down Expand Up @@ -67,7 +67,7 @@
"type": "object"
},
"ContributorRole": {
"description": "The type of contribution made by a contributor",
"description": "The type of contribution made by a contributor.",
"enum": [
"DataCite:ContactPerson",
"DataCite:DataCollector",
Expand Down Expand Up @@ -109,7 +109,7 @@
"type": "string"
},
"ContributorType": {
"description": "The type of contributor being represented",
"description": "The type of contributor being represented.",
"enum": [
"Person",
"Organization"
Expand Down Expand Up @@ -171,7 +171,7 @@
},
"license": {
"$ref": "#/$defs/License",
"description": "Usage license for the resource. Use one of the SPDX license identifiers or provide a link to the license text if no SPDX ID is available.\n\nAll data published at KBase is done so under a Creative Commons 0 or Creative Commons 4.0 license.\n"
"description": "Usage license for the resource. Use one of the SPDX license identifiers or provide a link to the license text if no SPDX ID is available.\n\nAll data published at KBase is done so under a Creative Commons 0 or Creative Commons 4.0 license."
},
"publisher": {
"$ref": "#/$defs/Organization",
Expand Down Expand Up @@ -266,7 +266,7 @@
},
"description_type": {
"$ref": "#/$defs/DescriptionType",
"description": "The type of text being represented"
"description": "The type of text being represented."
},
"language": {
"description": "The language in which the description is written, using the appropriate IETF BCP-47 notation.",
Expand All @@ -280,7 +280,7 @@
"type": "object"
},
"DescriptionType": {
"description": "The type of text being represented",
"description": "The type of text being represented.",
"enum": [
"abstract",
"description",
Expand Down Expand Up @@ -311,7 +311,7 @@
"type": "object"
},
"EventType": {
"description": "The type of date being represented",
"description": "The type of date being represented.",
"enum": [
"accepted",
"available",
Expand All @@ -334,18 +334,18 @@
"properties": {
"funder": {
"$ref": "#/$defs/Organization",
"description": "The funder for the grant or award"
"description": "The funder for the grant or award."
},
"grant_id": {
"description": "Code for the grant, assigned by the funder",
"description": "Code for the grant, assigned by the funder.",
"type": "string"
},
"grant_title": {
"description": "Title for the grant",
"description": "Title for the grant.",
"type": "string"
},
"grant_url": {
"description": "URL for the grant",
"description": "URL for the grant.",
"pattern": "^https?://\\S",
"type": "string",
"format": "uri"
Expand Down Expand Up @@ -391,7 +391,7 @@
"description": "Represents an organization.\n\nRecommended resources for organization identifiers and canonical organization names include:\n - Research Organization Registry, http://ror.org\n - International Standard Name Identifier, https://isni.org\n - Crossref Funder Registry, https://www.crossref.org/services/funder-registry/\n\nFor example, the US DOE would be entered as:\n organization_name: United States Department of Energy\n organization_id: ROR:01bj3aw27",
"properties": {
"organization_id": {
"description": "Persistent unique identifier for the organization in the format <database name>:<identifier within database>",
"description": "Persistent unique identifier for the organization in the format <database name>:<identifier within database>.",
"pattern": "^[a-zA-Z0-9.-_]+:\\S",
"type": "string"
},
Expand Down Expand Up @@ -421,7 +421,7 @@
},
"relationship_type": {
"$ref": "#/$defs/RelationshipType",
"description": "The relationship between the ID and some other entity.\nFor example, when a PermanentID class is used to represent objects in the CreditMetadata field 'related_identifiers', the 'relationship_type' field captures the relationship between the CreditMetadata and this ID.\n"
"description": "The relationship between the ID and some other entity.\nFor example, when a PermanentID class is used to represent objects in the CreditMetadata field 'related_identifiers', the 'relationship_type' field captures the relationship between the CreditMetadata and this ID."
}
},
"required": [
Expand All @@ -432,8 +432,38 @@
"type": "object"
},
"RelationshipType": {
"description": "The relationship between two entities",
"description": "The relationship between two entities.",
"enum": [
"Crossref:BasedOnData",
"Crossref:Finances",
"Crossref:HasComment",
"Crossref:HasDerivation",
"Crossref:HasExpression",
"Crossref:HasFormat",
"Crossref:HasManifestation",
"Crossref:HasManuscript",
"Crossref:HasPreprint",
"Crossref:HasRelatedMaterial",
"Crossref:HasReply",
"Crossref:HasReview",
"Crossref:HasTranslation",
"Crossref:IsBasedOn",
"Crossref:IsBasisFor",
"Crossref:IsCommentOn",
"Crossref:IsDataBasisFor",
"Crossref:IsExpressionOf",
"Crossref:IsFinancedBy",
"Crossref:IsFormatOf",
"Crossref:IsManifestationOf",
"Crossref:IsManuscriptOf",
"Crossref:IsPreprintOf",
"Crossref:IsRelatedMaterial",
"Crossref:IsReplacedBy",
"Crossref:IsReplyTo",
"Crossref:IsReviewOf",
"Crossref:IsSameAs",
"Crossref:IsTranslationOf",
"Crossref:Replaces",
"DataCite:Cites",
"DataCite:Compiles",
"DataCite:Continues",
Expand All @@ -458,45 +488,14 @@
"DataCite:IsReferencedBy",
"DataCite:IsRequiredBy",
"DataCite:IsReviewedBy",
"DataCite:IsSourceOf",
"DataCite:IsSupplementTo",
"DataCite:IsSupplementedBy",
"DataCite:IsSupplementTo",
"DataCite:IsVariantFormOf",
"DataCite:IsVersionOf",
"DataCite:Obsoletes",
"DataCite:References",
"DataCite:Requires",
"DataCite:Reviews",
"Crossref:BasedOnData",
"Crossref:Finances",
"Crossref:HasComment",
"Crossref:HasDerivation",
"Crossref:HasExpression",
"Crossref:HasFormat",
"Crossref:HasManifestation",
"Crossref:HasManuscript",
"Crossref:HasPreprint",
"Crossref:HasRelatedMaterial",
"Crossref:HasReply",
"Crossref:HasReview",
"Crossref:HasTranslation",
"Crossref:IsBasedOn",
"Crossref:IsBasisFor",
"Crossref:IsCommentOn",
"Crossref:IsDataBasisFor",
"Crossref:IsExpressionOf",
"Crossref:IsFinancedBy",
"Crossref:IsFormatOf",
"Crossref:IsManifestationOf",
"Crossref:IsManuscriptOf",
"Crossref:IsPreprintOf",
"Crossref:IsRelatedMaterial",
"Crossref:IsReplacedBy",
"Crossref:IsReplyTo",
"Crossref:IsReviewOf",
"Crossref:IsSameAs",
"Crossref:IsTranslationOf",
"Crossref:Replaces",
"unknown"
],
"title": "RelationshipType",
Expand All @@ -519,7 +518,7 @@
"type": "string"
},
"title": {
"description": "A string used as a title for a resource",
"description": "A string used as a title for a resource.",
"type": "string"
},
"title_type": {
Expand Down

0 comments on commit e36d86b

Please sign in to comment.