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

Golang Improvements #37

Merged
merged 3 commits into from
Jan 16, 2025
Merged

Golang Improvements #37

merged 3 commits into from
Jan 16, 2025

Conversation

JPEWdev
Copy link
Owner

@JPEWdev JPEWdev commented Jan 15, 2025

Makes a few improvement to golang bindings. Notably:

  • Shorthand for adding an object or IRI to a List of references
  • Any object that is referenced more than once will be serialized in the top level @graph (to match the other bindings)
  • Blank nodes IDs now include the compact type name (if any)

Reference properties have a convenient API to set the value to an object
or an IRI, but this is missing for the list classes
If an object is referenced more than once, it will automatically be put
in the top level @graph. In addition, objects in the @graph are now
sorted by ID
If a compact type is available, use in the name of the blank nodes to
make them easier to read
Copy link

Coverage report

This PR does not seem to contain any modification to coverable code.

@JPEWdev JPEWdev merged commit ad858c4 into main Jan 16, 2025
13 checks passed
@JPEWdev JPEWdev deleted the golang branch January 16, 2025 15:38
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.

1 participant