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

Improve generated context #28

Merged
merged 9 commits into from
Feb 11, 2025
Merged

Improve generated context #28

merged 9 commits into from
Feb 11, 2025

Conversation

iherman
Copy link
Member

@iherman iherman commented Jan 29, 2025

Followup on the mail discussion: this is an improved version for the context file generation. The result is fairly close to the structure of context files used in VC.

See

(The vocabulary itself is a test vocabulary, namely an early version of the "real" VC that I use for testing. It may not be accurate for VC. It has three "external" terms in it: proof, name and description. name is defined (via a domain statement) to be usable on a verifiable credential. proof and verifiableCredential are specified as referring to a graph using the boolean dataset term in the yml file.

- handles `@json`, but also the other built-in rdf datatypes (not only json)
- minor error that generated an unjustified `@id` type in some cases
If a property's range is a locally defined class, then it should also be set to a object property, and this also results in a `"@type":"@id"` in the generated context.
@iherman iherman self-assigned this Jan 29, 2025
@iherman iherman merged commit cfd3b62 into main Feb 11, 2025
@iherman iherman deleted the Improve-generated-context branch February 11, 2025 05:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant