Skip to content

Conversation

@JPEWdev
Copy link
Owner

@JPEWdev JPEWdev commented Aug 21, 2025

Adds (optional) support for serialized and deserializing from an rdflib.Graph object. This should make it possible to serialize RDF data in a format that passes the JSON schema.

@github-actions
Copy link

Coverage report

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

Many tests are now invoking shacl2code to generate bindings, so factor
out the code to make it simpler
Reformats the python code. Also configures black to correctly reformat
the python template file.
If the timezone offset is 00:00, convert the datetime to explicitly use
the UTC timezone.
All other language bindings (C++, go) will encode extensible properties
as a list, even if they only contain one item, so make python match this
behavior.
Adds support for an optional serializer and deserializer that can go to
and from anf rdflib Graph.

This should make it possible to correctly encode an RDF graph in a
format that can be accepted by the JSON schema
@JPEWdev JPEWdev requested a review from bact August 21, 2025 18:09
@bact bact added the enhancement New feature or request label Aug 21, 2025
@JPEWdev JPEWdev merged commit 38bbc07 into main Aug 22, 2025
13 checks passed
@JPEWdev JPEWdev deleted the python-rdf branch August 22, 2025 14:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants