feat: add templates_to_graph exposing templates as RDF#53
Conversation
|
Thanks for putting in the effort here!
Strongly support one-hop list encoding.
We have since introduced a new internal prefix maplib, but I think I favor this one as we can dereference them. We still have to set that up though :-) Will merge this and sort this out.
Across maplib we have graph=None meaning the default graph, so that would be consistent here also.
I suggest stable IRIs using uuidv5, I guess the iri-template and some kind of unique path inside of the template will be sufficient. Think we can merge this for now and put this on the todo list as it is not crucial.
|
Opening PR as a form of technical discussion starter:
https://datatreehouse.github.io/maplib/vocab#. Is this the canonical/permanent base IRI we want to publish under?Main motivating test/high-level entrypoint for review:
https://github.com/DataTreehouse/maplib/pull/53/changes#diff-f1ef54932586718fa9703beb8e469f2cd0c5d054e30790ea3d6cd6deaf8e960aR128
Note, the alternative approach to this template-based codegen is using tools like:
https://pypi.org/project/shexer/