Skip to content

Commit

Permalink
Fix root schema
Browse files Browse the repository at this point in the history
* Add missing relation_type values
* remove Funder from contributor_type
* etc
  • Loading branch information
Janne Karjalainen authored and noblespirit committed Nov 3, 2021
1 parent 2a41284 commit ef7f134
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions b2share/modules/schemas/root_schemas/root_schema_v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@
"identifierType": {
"type": "string",
"description": "The type of the identifier.",
"enum": ["ARK", "arXiv", "bibcode", "DOI", "EAN13", "EISSN", "Handle", "ISBN", "ISSN", "ISTC", "LISSN", "LSID", "ORCiD", "PMID", "PURL", "UPC", "URL", "URN"]
"enum": ["ARK", "arXiv", "bibcode", "DOI", "EAN13", "EISSN", "Handle", "ISBN", "ISSN", "ISTC", "LISSN", "LSID", "ORCID", "PMID", "PURL", "UPC", "URL", "URN", "w3id"]
},
"resourceType": {
"type": "string",
"enum": ["Audiovisual", "Book", "BookChapter", "Collection", "ComputationalNotebook", "ConferencePaper", "ConferenceProceeding", "Dataset", "Dissertation", "Event", "Image", "InteractiveResource", "Journal", "JournalArticle", "Model", "OutputManagementPlan", "PeerReview", "PhysicalObject", "Preprint", "Report", "Service", "Software", "Sound", "Standard", "Text", "Workflow", "Other"]
"enum": ["Audiovisual", "Book", "BookChapter", "Collection", "ComputationalNotebook", "ConferencePaper", "ConferenceProceeding", "DataPaper", "Dataset", "Dissertation", "Event", "Image", "InteractiveResource", "Journal", "JournalArticle", "Model", "OutputManagementPlan", "PeerReview", "PhysicalObject", "Preprint", "Report", "Service", "Software", "Sound", "Standard", "Text", "Workflow", "Other"]
},
"funderIdentifierType": {
"type": "string",
Expand Down Expand Up @@ -119,11 +119,6 @@
"title": "Latitude",
"description": "The latitude of the point.",
"$ref": "#/definitions/latitude"
},
"point_vertical": {
"title": "Vertical",
"description": "The vertical position of the point.",
"type": "number"
}
},
"required": ["point_longitude", "point_latitude"]
Expand Down Expand Up @@ -219,7 +214,7 @@
},
"type": {
"title": "Type",
"enum": ["Alternative Title", "Subtitle", "TranslatedTitle"],
"enum": ["Alternative Title", "Subtitle", "TranslatedTitle", "Other"],
"description": "The type of the title."
}
},
Expand Down Expand Up @@ -349,7 +344,7 @@
"contributor_type": {
"title": "Contributor type",
"description": "The type of the contributor.",
"enum": ["ContactPerson", "DataCollector", "DataCurator", "DataManager", "Distributor", "Editor", "Funder", "HostingInstitution", "Producer", "ProjectLeader", "ProjectManager", "ProjectMember", "RegistrationAgency", "RegistrationAuthority", "RelatedPerson", "Researcher", "ResearchGroup", "RightsHolder", "Sponsor", "Supervisor", "WorkPackageLeader", "Other"]
"enum": ["ContactPerson", "DataCollector", "DataCurator", "DataManager", "Distributor", "Editor", "HostingInstitution", "Producer", "ProjectLeader", "ProjectManager", "ProjectMember", "RegistrationAgency", "RegistrationAuthority", "RelatedPerson", "Researcher", "ResearchGroup", "RightsHolder", "Sponsor", "Supervisor", "WorkPackageLeader", "Other"]
}
},
"additionalProperties": false,
Expand Down Expand Up @@ -422,7 +417,7 @@
"relation_type": {
"title": "Relation",
"description": "The relation type of the described reference.",
"enum": ["IsCitedBy", "Cites", "IsSupplementTo", "IsPublishedIn", "IsSupplementedBy", "IsContinuedBy", "Continues", "HasMetadata", "IsMetadataFor", "IsNewVersionOf", "IsPreviousVersionOf", "IsPartOf", "HasPart", "IsReferencedBy", "References", "IsDocumentedBy", "Documents", "isCompiledBy", "Compiles", "IsVariantFormOf", "IsOriginalFormOf", "IsIdenticalTo", "IsReviewedBy", "Reviews", "IsDerivedFrom", "IsSourceOf"]
"enum": ["IsCitedBy", "Cites", "IsSupplementTo", "IsPublishedIn", "IsSupplementedBy", "IsContinuedBy", "Continues", "HasMetadata", "IsMetadataFor", "IsNewVersionOf", "IsPreviousVersionOf", "IsPartOf", "HasPart", "IsReferencedBy", "References", "IsDocumentedBy", "Documents", "isCompiledBy", "Compiles", "IsVariantFormOf", "IsOriginalFormOf", "IsIdenticalTo", "IsReviewedBy", "Reviews", "IsDerivedFrom", "IsSourceOf", "Describes", "IsDescribedBy", "HasVersion", "IsVersionOf", "Requires", "IsRequiredBy", "Obsoletes", "IsObsoletedBy"]
},
"$ref": "#/definitions/schemeWithUri"
},
Expand Down

0 comments on commit ef7f134

Please sign in to comment.