-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Model representation for attribute/value field type #54
Comments
[This message contains preliminary ideas and can be ignored. Skip to next message.] Some initial notes. The template representation of attribute-value fields can be pretty straightforward, e.g.,
Here we have a field type of Multi-instance will work out-of the box in templates. Attribute-value field values in template instances can use this field to point to the attribute-value field in the template that specified them (that is, the For example if a Metadata Editor user creates an attribute-value field using the "My Attribute/Value" field with the name "Attribute 1" and a value of "Fred" the instance could look as follows:
This approach means that attribute-value fields specified by users in the Metadata Editor become first class fields in the instance and can be mapped directly to RDF triples. It will also require a context entry for the field. When the name is changed in the Metadata Editor the context must be updated. Will need to discuss with @willrett and @marcosmro. This approach will not be super easy for the Metadata Editor to manage. Some additional points: . Model work required to support this. Since we are effectively adding new fields to instances that are not pre-named in the template specification we will need to allow additional properties at the JSON Schema level and require that the only new fields allowed are attribute-value fields. |
Marcos suggested using the
We do NOT add the above field name ("My Attribute/Value") to the template's A field value with a user-selected name of "Attribute 1" could then look as follows:
We can use an
Any additional attribute fields in an instance must follow this specification and must have a |
Note that when a user adds a new attribute/value field in the Metadata Editor an |
Final representation is option #3 here: https://docs.google.com/document/d/1eMXLOan1E9YVeByrReHO2T6hfrWsR-6Jr525TpkGkNY/edit |
See metadatacenter-attic/cedar-docs#8 for field representation. |
Model representation for attribute/value field type (metadatacenter/cedar-project#595).
The text was updated successfully, but these errors were encountered: