Closed aaxelb closed 3 years ago
add a static definition of the SHAREv2 schema, so we can start trimming tangles around all the ShareObject models
ShareObject
share/schema/schema-spec.yaml
share.util.graph
share.models.validators
share.schema.shapes
share.schema.loader
share.schema.ShareV2Schema
things that are meaningfully different from the model-based SHAREv2 schema
ThroughContributors
Contributor.contributed_through
0
AbstractAgent
Person.given_name
Person.family_name
Person.additional_name
Person.suffix
AbstractCreativeWork
Registration.registration_type
Registration.withdrawn
Registration.justification
AbstractAgentWorkRelation
Creator.order_cited
Funder.awards
jira: ENG-1984
what
add a static definition of the SHAREv2 schema, so we can start trimming tangles around all the
ShareObject
modelsshare/schema/schema-spec.yaml
contains the barest info actually needed by other code (mostlyshare.util.graph
andshare.models.validators
)share.schema.shapes
defines how the schema info will be structuredshare.schema.loader
loads that yaml file and puts it in those structured shapesshare.schema.ShareV2Schema
ties the above together -- this is what consumers will import and usedeliberate deviations
things that are meaningfully different from the model-based SHAREv2 schema
ThroughContributors
(andContributor.contributed_through
) -- there are exactly0
of these on productionAbstractAgent
:Person.given_name
Person.family_name
Person.additional_name
Person.suffix
AbstractCreativeWork
:Registration.registration_type
Registration.withdrawn
Registration.justification
AbstractAgentWorkRelation
:Creator.order_cited
Funder.awards
TODO
jira: ENG-1984