-
Notifications
You must be signed in to change notification settings - Fork 35
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
Example Generation Adding @Context #150
Comments
@mprorock @Therecanbeonlyone1969 @mkhraisha can I assign one of you to fix this? |
Synthetic data generation should not nest contexts. |
@OR13 ... yeah i can do that together with the suggested enhancements etc. |
Happy to take over this, if needed. |
The agreement on the 29/06 call was to remove nested contexts and place them on the root level context object and remove duplicates. So assuming:
this would change to
|
@msporny this is probably something you want to weigh in on. |
If the contexts are all duplicated, then moving them all to the top is a good thing. If the contexts are unique, and occur at multiple levels of the document, you may want to think more deeply about the ramifications. Doing either is fine (keep in place OR migrate to top). If you're going to migrate all contexts to the top level of a document, you may want to use scoped properties to narrow the fields where the second context comes into play. For example, you could scope by type for 'Purchase' -- examples of scoping by type can be found here: If you scope by type, you avoid polluging your top-level namespace (a good thing). The downside to moving all contexts to the top level is that if you want to pluck the purchase order out of the Personally, I'd prefer to keep the second context with the purchase order, but don't know the details of the use case to comment more than that.
Minor nit, always use singular form for words to be consistent. All properties in JSON-LD (and graph-based data models in general) can always have one or more values associated with them. So, either all properties should be plural, or all properties should be singular. In general, you will have more singular properties than plural, which is why all properties tend to be singular form. It's not a requirement, but rather a stylistic one (that some people disagree with). |
PROPOSAL: replace |
This proposal passed on todays call, I have the action of making these changes available. |
We resolved this proposal as well. |
differed to next meeting, pending issues opened and feeback requested. |
I have been taking notes here, please excuse my mess, I am moving these to separate issues. |
In several spots in the Traceability Vocab, I've noticed that examples are being generated with contexts embedded into the credential subject and other properties. These additional contexts are not needed and we should fix the example generator to not display them. See example below for
credentialSubject
andrelatedDocuments
:The text was updated successfully, but these errors were encountered: