Skip to content
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

Metadata Editor does not used the user-supplied property IRI for attribute-value fields when generating an instance #996

Open
martinjoconnor opened this issue Sep 5, 2024 · 0 comments

Comments

@martinjoconnor
Copy link
Member

martinjoconnor commented Sep 5, 2024

If I have an attribute-value field in a template or element and explicitly set the property IRI for that field, the generated instance should use that property IRI for all user-supplied fields for that attribute-value in the instance.

For example, if we have an attribute-value field "AV" with https://example.com/p1 set as its property IRI and we have two user-supplied fields "AVF1" and "ACF2" for that attribute-value in the instance then the JSON-LD should be:

 "@context": {
    "AVF1": "https://example.com/p1",
    "AVF2": "https://example.com/p1"
 }
 ...
 "AV": [ "AVF1", "AVF2" ],
 ...
 "AVF1": { "@value": "value 1" },  
 "AVF2": { "@value": "value 2" }
}

Currently, a property IRI is auto-generated for each user-supplied field instead of using the specified property IRI.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants