shacl2code 0.0.15__tar.gz → 0.0.16__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {shacl2code-0.0.15 → shacl2code-0.0.16}/PKG-INFO +4 -4
- {shacl2code-0.0.15 → shacl2code-0.0.16}/README.md +3 -2
- {shacl2code-0.0.15 → shacl2code-0.0.16}/src/shacl2code/lang/templates/python.j2 +3 -3
- {shacl2code-0.0.15 → shacl2code-0.0.16}/src/shacl2code/model.py +5 -4
- shacl2code-0.0.16/src/shacl2code/version.py +1 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/tests/data/model/test.ttl +3 -2
- {shacl2code-0.0.15 → shacl2code-0.0.16}/tests/expect/cpp/context/Doxyfile +1 -1
- {shacl2code-0.0.15 → shacl2code-0.0.16}/tests/expect/cpp/context/Makefile +3 -3
- {shacl2code-0.0.15 → shacl2code-0.0.16}/tests/expect/cpp/context/test-context-validate.cpp +2 -2
- {shacl2code-0.0.15 → shacl2code-0.0.16}/tests/expect/cpp/context/test-context.pc +1 -1
- {shacl2code-0.0.15 → shacl2code-0.0.16}/tests/expect/cpp/nocontext/Doxyfile +1 -1
- {shacl2code-0.0.15 → shacl2code-0.0.16}/tests/expect/cpp/nocontext/Makefile +3 -3
- {shacl2code-0.0.15 → shacl2code-0.0.16}/tests/expect/cpp/nocontext/test-validate.cpp +2 -2
- {shacl2code-0.0.15 → shacl2code-0.0.16}/tests/expect/cpp/nocontext/test.pc +1 -1
- {shacl2code-0.0.15 → shacl2code-0.0.16}/tests/expect/python/context/test-context.py +3 -3
- {shacl2code-0.0.15 → shacl2code-0.0.16}/tests/expect/python/nocontext/test.py +3 -3
- shacl2code-0.0.15/src/shacl2code/version.py +0 -1
- {shacl2code-0.0.15 → shacl2code-0.0.16}/.flake8 +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/.github/workflows/coverage-generate.yaml +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/.github/workflows/coverage-report.yaml +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/.github/workflows/publish.yaml +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/.github/workflows/test.yaml +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/.gitignore +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/LICENSE +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/pyproject.toml +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/src/shacl2code/__init__.py +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/src/shacl2code/__main__.py +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/src/shacl2code/context.py +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/src/shacl2code/lang/__init__.py +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/src/shacl2code/lang/common.py +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/src/shacl2code/lang/cpp.py +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/src/shacl2code/lang/jinja.py +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/src/shacl2code/lang/jsonschema.py +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/src/shacl2code/lang/lang.py +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/src/shacl2code/lang/python.py +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/src/shacl2code/lang/sources/cpp/json.hpp +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/src/shacl2code/lang/templates/cpp/Doxyfile.j2 +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/src/shacl2code/lang/templates/cpp/Makefile.j2 +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/src/shacl2code/lang/templates/cpp/api.hpp.j2 +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/src/shacl2code/lang/templates/cpp/datetime.cpp.j2 +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/src/shacl2code/lang/templates/cpp/datetime.hpp.j2 +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/src/shacl2code/lang/templates/cpp/decode.cpp.j2 +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/src/shacl2code/lang/templates/cpp/decode.hpp.j2 +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/src/shacl2code/lang/templates/cpp/encode.cpp.j2 +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/src/shacl2code/lang/templates/cpp/encode.hpp.j2 +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/src/shacl2code/lang/templates/cpp/errorhandler.cpp.j2 +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/src/shacl2code/lang/templates/cpp/errorhandler.hpp.j2 +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/src/shacl2code/lang/templates/cpp/exceptions.hpp.j2 +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/src/shacl2code/lang/templates/cpp/extensible.cpp.j2 +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/src/shacl2code/lang/templates/cpp/extensible.hpp.j2 +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/src/shacl2code/lang/templates/cpp/header.j2 +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/src/shacl2code/lang/templates/cpp/jsonld-header.j2 +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/src/shacl2code/lang/templates/cpp/jsonld-source.j2 +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/src/shacl2code/lang/templates/cpp/link.cpp.j2 +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/src/shacl2code/lang/templates/cpp/link.hpp.j2 +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/src/shacl2code/lang/templates/cpp/namedindividual.cpp.j2 +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/src/shacl2code/lang/templates/cpp/namedindividual.hpp.j2 +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/src/shacl2code/lang/templates/cpp/object.cpp.j2 +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/src/shacl2code/lang/templates/cpp/object.hpp.j2 +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/src/shacl2code/lang/templates/cpp/objectpath.cpp.j2 +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/src/shacl2code/lang/templates/cpp/objectpath.hpp.j2 +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/src/shacl2code/lang/templates/cpp/objectset.cpp.j2 +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/src/shacl2code/lang/templates/cpp/objectset.hpp.j2 +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/src/shacl2code/lang/templates/cpp/pkgconfig.pc.j2 +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/src/shacl2code/lang/templates/cpp/prop.hpp.j2 +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/src/shacl2code/lang/templates/cpp/property.cpp.j2 +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/src/shacl2code/lang/templates/cpp/property.hpp.j2 +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/src/shacl2code/lang/templates/cpp/propertyvalue.cpp.j2 +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/src/shacl2code/lang/templates/cpp/propertyvalue.hpp.j2 +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/src/shacl2code/lang/templates/cpp/ref.hpp.j2 +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/src/shacl2code/lang/templates/cpp/refproperty.cpp.j2 +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/src/shacl2code/lang/templates/cpp/refproperty.hpp.j2 +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/src/shacl2code/lang/templates/cpp/source.j2 +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/src/shacl2code/lang/templates/cpp/type.cpp.j2 +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/src/shacl2code/lang/templates/cpp/type.hpp.j2 +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/src/shacl2code/lang/templates/cpp/util.cpp.j2 +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/src/shacl2code/lang/templates/cpp/util.hpp.j2 +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/src/shacl2code/lang/templates/cpp/validate.j2 +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/src/shacl2code/lang/templates/cpp/walk.hpp.j2 +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/src/shacl2code/lang/templates/jsonschema.j2 +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/src/shacl2code/main.py +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/src/shacl2code/urlcontext.py +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/testfixtures/httpserver.py +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/testfixtures/jsonvalidation.py +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/tests/conftest.py +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/tests/data/abort.j2 +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/tests/data/bad-id.j2 +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/tests/data/bad-node-kind.ttl +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/tests/data/bad-pattern-class.ttl +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/tests/data/bad-pattern-integer.ttl +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/tests/data/bad-prop-type.ttl +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/tests/data/bad-reference.jsonld +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/tests/data/context-url.j2 +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/tests/data/context.j2 +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/tests/data/missing-range.ttl +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/tests/data/model/test-context.json +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/tests/data/python/bad-object-type-inline.json +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/tests/data/python/bad-object-type-ref-after.json +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/tests/data/python/bad-object-type-ref-before.json +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/tests/data/python/links.json +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/tests/data/raw.j2 +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/tests/data/roundtrip.json +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/tests/expect/cpp/context/api.hpp +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/tests/expect/cpp/context/datetime.cpp +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/tests/expect/cpp/context/datetime.hpp +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/tests/expect/cpp/context/decode.cpp +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/tests/expect/cpp/context/decode.hpp +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/tests/expect/cpp/context/encode.cpp +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/tests/expect/cpp/context/encode.hpp +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/tests/expect/cpp/context/errorhandler.cpp +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/tests/expect/cpp/context/errorhandler.hpp +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/tests/expect/cpp/context/exceptions.hpp +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/tests/expect/cpp/context/extensible.cpp +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/tests/expect/cpp/context/extensible.hpp +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/tests/expect/cpp/context/link.cpp +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/tests/expect/cpp/context/link.hpp +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/tests/expect/cpp/context/namedindividual.cpp +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/tests/expect/cpp/context/namedindividual.hpp +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/tests/expect/cpp/context/object.cpp +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/tests/expect/cpp/context/object.hpp +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/tests/expect/cpp/context/objectpath.cpp +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/tests/expect/cpp/context/objectpath.hpp +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/tests/expect/cpp/context/objectset.cpp +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/tests/expect/cpp/context/objectset.hpp +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/tests/expect/cpp/context/prop.hpp +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/tests/expect/cpp/context/property.cpp +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/tests/expect/cpp/context/property.hpp +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/tests/expect/cpp/context/propertyvalue.cpp +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/tests/expect/cpp/context/propertyvalue.hpp +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/tests/expect/cpp/context/ref.hpp +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/tests/expect/cpp/context/refproperty.cpp +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/tests/expect/cpp/context/refproperty.hpp +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/tests/expect/cpp/context/test-context-jsonld.cpp +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/tests/expect/cpp/context/test-context-jsonld.hpp +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/tests/expect/cpp/context/test-context.cpp +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/tests/expect/cpp/context/test-context.hpp +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/tests/expect/cpp/context/type.cpp +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/tests/expect/cpp/context/type.hpp +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/tests/expect/cpp/context/util.cpp +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/tests/expect/cpp/context/util.hpp +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/tests/expect/cpp/context/walk.hpp +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/tests/expect/cpp/nocontext/api.hpp +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/tests/expect/cpp/nocontext/datetime.cpp +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/tests/expect/cpp/nocontext/datetime.hpp +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/tests/expect/cpp/nocontext/decode.cpp +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/tests/expect/cpp/nocontext/decode.hpp +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/tests/expect/cpp/nocontext/encode.cpp +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/tests/expect/cpp/nocontext/encode.hpp +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/tests/expect/cpp/nocontext/errorhandler.cpp +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/tests/expect/cpp/nocontext/errorhandler.hpp +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/tests/expect/cpp/nocontext/exceptions.hpp +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/tests/expect/cpp/nocontext/extensible.cpp +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/tests/expect/cpp/nocontext/extensible.hpp +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/tests/expect/cpp/nocontext/link.cpp +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/tests/expect/cpp/nocontext/link.hpp +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/tests/expect/cpp/nocontext/namedindividual.cpp +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/tests/expect/cpp/nocontext/namedindividual.hpp +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/tests/expect/cpp/nocontext/object.cpp +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/tests/expect/cpp/nocontext/object.hpp +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/tests/expect/cpp/nocontext/objectpath.cpp +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/tests/expect/cpp/nocontext/objectpath.hpp +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/tests/expect/cpp/nocontext/objectset.cpp +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/tests/expect/cpp/nocontext/objectset.hpp +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/tests/expect/cpp/nocontext/prop.hpp +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/tests/expect/cpp/nocontext/property.cpp +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/tests/expect/cpp/nocontext/property.hpp +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/tests/expect/cpp/nocontext/propertyvalue.cpp +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/tests/expect/cpp/nocontext/propertyvalue.hpp +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/tests/expect/cpp/nocontext/ref.hpp +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/tests/expect/cpp/nocontext/refproperty.cpp +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/tests/expect/cpp/nocontext/refproperty.hpp +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/tests/expect/cpp/nocontext/test-jsonld.cpp +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/tests/expect/cpp/nocontext/test-jsonld.hpp +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/tests/expect/cpp/nocontext/test.cpp +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/tests/expect/cpp/nocontext/test.hpp +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/tests/expect/cpp/nocontext/type.cpp +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/tests/expect/cpp/nocontext/type.hpp +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/tests/expect/cpp/nocontext/util.cpp +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/tests/expect/cpp/nocontext/util.hpp +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/tests/expect/cpp/nocontext/walk.hpp +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/tests/expect/jsonschema/context/test-context.json +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/tests/expect/jsonschema/nocontext/test.json +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/tests/expect/make_expect.py +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/tests/expect/raw/context/test-context.txt +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/tests/expect/raw/nocontext/test.txt +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/tests/test_cli.py +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/tests/test_common_jinja.py +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/tests/test_common_prefix.py +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/tests/test_context.py +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/tests/test_cpp.py +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/tests/test_jsonschema.py +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/tests/test_model_source.py +0 -0
- {shacl2code-0.0.15 → shacl2code-0.0.16}/tests/test_python.py +0 -0
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: shacl2code
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.16
|
|
4
4
|
Summary: Convert SHACL model file to code bindings
|
|
5
5
|
Project-URL: Homepage, https://github.com/JPEWdev/shacl2code
|
|
6
6
|
Project-URL: Repository, https://github.com/JPEWdev/shacl2code.git
|
|
7
7
|
Project-URL: Issues, https://github.com/JPEWdev/shacl2code/issues
|
|
8
8
|
Author-email: Joshua Watt <JPEWhacker@gmail.com>
|
|
9
|
-
License-File: LICENSE
|
|
10
9
|
Classifier: Development Status :: 4 - Beta
|
|
11
10
|
Classifier: Intended Audience :: Developers
|
|
12
11
|
Classifier: License :: OSI Approved :: MIT License
|
|
@@ -196,8 +195,9 @@ with the following turtle:
|
|
|
196
195
|
|
|
197
196
|
<MyClass> a owl:Class, sh:NodeShape ;
|
|
198
197
|
# SHACL to prevent a class from being instansiated as this exact type
|
|
199
|
-
sh:
|
|
200
|
-
sh:
|
|
198
|
+
sh:property [
|
|
199
|
+
sh:path rdf:type ;
|
|
200
|
+
sh:not [ sh:hasValue <MyClass> ]
|
|
201
201
|
] .
|
|
202
202
|
|
|
203
203
|
```
|
|
@@ -166,8 +166,9 @@ with the following turtle:
|
|
|
166
166
|
|
|
167
167
|
<MyClass> a owl:Class, sh:NodeShape ;
|
|
168
168
|
# SHACL to prevent a class from being instansiated as this exact type
|
|
169
|
-
sh:
|
|
170
|
-
sh:
|
|
169
|
+
sh:property [
|
|
170
|
+
sh:path rdf:type ;
|
|
171
|
+
sh:not [ sh:hasValue <MyClass> ]
|
|
171
172
|
] .
|
|
172
173
|
|
|
173
174
|
```
|
|
@@ -1197,7 +1197,7 @@ class SHACLObjectSet(object):
|
|
|
1197
1197
|
|
|
1198
1198
|
return SHACLObjectSet(new_objects, link=True)
|
|
1199
1199
|
|
|
1200
|
-
def encode(self, encoder, force_list=False):
|
|
1200
|
+
def encode(self, encoder, force_list=False, *, key=None):
|
|
1201
1201
|
"""
|
|
1202
1202
|
Serialize a list of objects to a serialization encoder
|
|
1203
1203
|
|
|
@@ -1244,7 +1244,7 @@ class SHACLObjectSet(object):
|
|
|
1244
1244
|
else:
|
|
1245
1245
|
objects = list(self.objects)
|
|
1246
1246
|
|
|
1247
|
-
objects.sort()
|
|
1247
|
+
objects.sort(key=key)
|
|
1248
1248
|
|
|
1249
1249
|
if use_list:
|
|
1250
1250
|
# Ensure top level objects are only written in the top level graph
|
|
@@ -1265,7 +1265,7 @@ class SHACLObjectSet(object):
|
|
|
1265
1265
|
with list_s.write_list_item() as item_s:
|
|
1266
1266
|
o.encode(item_s, state)
|
|
1267
1267
|
|
|
1268
|
-
|
|
1268
|
+
elif objects:
|
|
1269
1269
|
objects[0].encode(encoder, state)
|
|
1270
1270
|
|
|
1271
1271
|
def decode(self, decoder):
|
|
@@ -165,10 +165,6 @@ class Model(object):
|
|
|
165
165
|
if bool(self.model.value(s, SHACL2CODE.isAbstract, default=False)):
|
|
166
166
|
return True
|
|
167
167
|
|
|
168
|
-
for n in self.model.objects(s, SH["not"]):
|
|
169
|
-
if (n, SH["class"], s) in self.model:
|
|
170
|
-
return True
|
|
171
|
-
|
|
172
168
|
return False
|
|
173
169
|
|
|
174
170
|
class_iris = set(self.model.subjects(RDF.type, OWL.Class))
|
|
@@ -200,6 +196,11 @@ class Model(object):
|
|
|
200
196
|
|
|
201
197
|
for obj_prop in self.model.objects(cls_iri, SH.property):
|
|
202
198
|
prop = self.model.value(obj_prop, SH.path)
|
|
199
|
+
if prop == RDF.type:
|
|
200
|
+
for n in self.model.objects(obj_prop, SH["not"]):
|
|
201
|
+
if (n, SH.hasValue, cls_iri) in self.model:
|
|
202
|
+
c.is_abstract = True
|
|
203
|
+
continue
|
|
203
204
|
|
|
204
205
|
p = Property(
|
|
205
206
|
varname=self.model.value(
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
VERSION = "0.0.16"
|
|
@@ -491,8 +491,9 @@
|
|
|
491
491
|
|
|
492
492
|
<abstract-sh-class> a rdf:Class, sh:NodeShape, owl:Class ;
|
|
493
493
|
rdfs:comment: "An Abstract class using SHACL validation" ;
|
|
494
|
-
sh:
|
|
495
|
-
sh:
|
|
494
|
+
sh:property [
|
|
495
|
+
sh:path rdf:type ;
|
|
496
|
+
sh:not [ sh:hasValue <abstract-sh-class> ]
|
|
496
497
|
] .
|
|
497
498
|
|
|
498
499
|
<concrete-class> a rdf:Class, sh:NodeShape, owl:Class ;
|
|
@@ -38,7 +38,7 @@ PROJECT_NAME = "test-context"
|
|
|
38
38
|
# could be handy for archiving the generated documentation or if some version
|
|
39
39
|
# control system is used.
|
|
40
40
|
|
|
41
|
-
PROJECT_NUMBER = "0.0.
|
|
41
|
+
PROJECT_NUMBER = "0.0.16"
|
|
42
42
|
|
|
43
43
|
# Using the PROJECT_BRIEF tag one can provide an optional one line description
|
|
44
44
|
# for a project that appears at the top of each page and should give viewer a
|
|
@@ -22,9 +22,9 @@ clean:
|
|
|
22
22
|
install: libtest-context.so libtest-context.a docs
|
|
23
23
|
# Library
|
|
24
24
|
$(INSTALL) -d $(DESTDIR)/$(PREFIX)/lib
|
|
25
|
-
$(INSTALL) -m 0755 libtest-context.so $(DESTDIR)/$(PREFIX)/lib/libtest-context.so.0.0.
|
|
26
|
-
ln -s libtest-context.so.0.0.
|
|
27
|
-
ln -s libtest-context.so.0.0.
|
|
25
|
+
$(INSTALL) -m 0755 libtest-context.so $(DESTDIR)/$(PREFIX)/lib/libtest-context.so.0.0.16
|
|
26
|
+
ln -s libtest-context.so.0.0.16 $(DESTDIR)/$(PREFIX)/lib/libtest-context.so
|
|
27
|
+
ln -s libtest-context.so.0.0.16 $(DESTDIR)/$(PREFIX)/lib/libtest-context.so.0
|
|
28
28
|
|
|
29
29
|
$(INSTALL) -m 0644 libtest-context.a $(DESTDIR)/$(PREFIX)/lib/
|
|
30
30
|
|
|
@@ -108,7 +108,7 @@ int main(int argc, char* argv[]) {
|
|
|
108
108
|
switch (opt) {
|
|
109
109
|
case 'h':
|
|
110
110
|
std::cout << "Validate test-context" << std::endl
|
|
111
|
-
<< "Version 0.0.
|
|
111
|
+
<< "Version 0.0.16" << std::endl
|
|
112
112
|
<< std::endl;
|
|
113
113
|
showHelp(argv[0]);
|
|
114
114
|
return 0;
|
|
@@ -118,7 +118,7 @@ int main(int argc, char* argv[]) {
|
|
|
118
118
|
break;
|
|
119
119
|
|
|
120
120
|
case 'V':
|
|
121
|
-
std::cout << "0.0.
|
|
121
|
+
std::cout << "0.0.16" << std::endl;
|
|
122
122
|
return 0;
|
|
123
123
|
|
|
124
124
|
case '?':
|
|
@@ -38,7 +38,7 @@ PROJECT_NAME = "test"
|
|
|
38
38
|
# could be handy for archiving the generated documentation or if some version
|
|
39
39
|
# control system is used.
|
|
40
40
|
|
|
41
|
-
PROJECT_NUMBER = "0.0.
|
|
41
|
+
PROJECT_NUMBER = "0.0.16"
|
|
42
42
|
|
|
43
43
|
# Using the PROJECT_BRIEF tag one can provide an optional one line description
|
|
44
44
|
# for a project that appears at the top of each page and should give viewer a
|
|
@@ -22,9 +22,9 @@ clean:
|
|
|
22
22
|
install: libtest.so libtest.a docs
|
|
23
23
|
# Library
|
|
24
24
|
$(INSTALL) -d $(DESTDIR)/$(PREFIX)/lib
|
|
25
|
-
$(INSTALL) -m 0755 libtest.so $(DESTDIR)/$(PREFIX)/lib/libtest.so.0.0.
|
|
26
|
-
ln -s libtest.so.0.0.
|
|
27
|
-
ln -s libtest.so.0.0.
|
|
25
|
+
$(INSTALL) -m 0755 libtest.so $(DESTDIR)/$(PREFIX)/lib/libtest.so.0.0.16
|
|
26
|
+
ln -s libtest.so.0.0.16 $(DESTDIR)/$(PREFIX)/lib/libtest.so
|
|
27
|
+
ln -s libtest.so.0.0.16 $(DESTDIR)/$(PREFIX)/lib/libtest.so.0
|
|
28
28
|
|
|
29
29
|
$(INSTALL) -m 0644 libtest.a $(DESTDIR)/$(PREFIX)/lib/
|
|
30
30
|
|
|
@@ -108,7 +108,7 @@ int main(int argc, char* argv[]) {
|
|
|
108
108
|
switch (opt) {
|
|
109
109
|
case 'h':
|
|
110
110
|
std::cout << "Validate test" << std::endl
|
|
111
|
-
<< "Version 0.0.
|
|
111
|
+
<< "Version 0.0.16" << std::endl
|
|
112
112
|
<< std::endl;
|
|
113
113
|
showHelp(argv[0]);
|
|
114
114
|
return 0;
|
|
@@ -118,7 +118,7 @@ int main(int argc, char* argv[]) {
|
|
|
118
118
|
break;
|
|
119
119
|
|
|
120
120
|
case 'V':
|
|
121
|
-
std::cout << "0.0.
|
|
121
|
+
std::cout << "0.0.16" << std::endl;
|
|
122
122
|
return 0;
|
|
123
123
|
|
|
124
124
|
case '?':
|
|
@@ -1197,7 +1197,7 @@ class SHACLObjectSet(object):
|
|
|
1197
1197
|
|
|
1198
1198
|
return SHACLObjectSet(new_objects, link=True)
|
|
1199
1199
|
|
|
1200
|
-
def encode(self, encoder, force_list=False):
|
|
1200
|
+
def encode(self, encoder, force_list=False, *, key=None):
|
|
1201
1201
|
"""
|
|
1202
1202
|
Serialize a list of objects to a serialization encoder
|
|
1203
1203
|
|
|
@@ -1244,7 +1244,7 @@ class SHACLObjectSet(object):
|
|
|
1244
1244
|
else:
|
|
1245
1245
|
objects = list(self.objects)
|
|
1246
1246
|
|
|
1247
|
-
objects.sort()
|
|
1247
|
+
objects.sort(key=key)
|
|
1248
1248
|
|
|
1249
1249
|
if use_list:
|
|
1250
1250
|
# Ensure top level objects are only written in the top level graph
|
|
@@ -1265,7 +1265,7 @@ class SHACLObjectSet(object):
|
|
|
1265
1265
|
with list_s.write_list_item() as item_s:
|
|
1266
1266
|
o.encode(item_s, state)
|
|
1267
1267
|
|
|
1268
|
-
|
|
1268
|
+
elif objects:
|
|
1269
1269
|
objects[0].encode(encoder, state)
|
|
1270
1270
|
|
|
1271
1271
|
def decode(self, decoder):
|
|
@@ -1197,7 +1197,7 @@ class SHACLObjectSet(object):
|
|
|
1197
1197
|
|
|
1198
1198
|
return SHACLObjectSet(new_objects, link=True)
|
|
1199
1199
|
|
|
1200
|
-
def encode(self, encoder, force_list=False):
|
|
1200
|
+
def encode(self, encoder, force_list=False, *, key=None):
|
|
1201
1201
|
"""
|
|
1202
1202
|
Serialize a list of objects to a serialization encoder
|
|
1203
1203
|
|
|
@@ -1244,7 +1244,7 @@ class SHACLObjectSet(object):
|
|
|
1244
1244
|
else:
|
|
1245
1245
|
objects = list(self.objects)
|
|
1246
1246
|
|
|
1247
|
-
objects.sort()
|
|
1247
|
+
objects.sort(key=key)
|
|
1248
1248
|
|
|
1249
1249
|
if use_list:
|
|
1250
1250
|
# Ensure top level objects are only written in the top level graph
|
|
@@ -1265,7 +1265,7 @@ class SHACLObjectSet(object):
|
|
|
1265
1265
|
with list_s.write_list_item() as item_s:
|
|
1266
1266
|
o.encode(item_s, state)
|
|
1267
1267
|
|
|
1268
|
-
|
|
1268
|
+
elif objects:
|
|
1269
1269
|
objects[0].encode(encoder, state)
|
|
1270
1270
|
|
|
1271
1271
|
def decode(self, decoder):
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
VERSION = "0.0.15"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{shacl2code-0.0.15 → shacl2code-0.0.16}/src/shacl2code/lang/templates/cpp/errorhandler.cpp.j2
RENAMED
|
File without changes
|
{shacl2code-0.0.15 → shacl2code-0.0.16}/src/shacl2code/lang/templates/cpp/errorhandler.hpp.j2
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{shacl2code-0.0.15 → shacl2code-0.0.16}/src/shacl2code/lang/templates/cpp/namedindividual.cpp.j2
RENAMED
|
File without changes
|
{shacl2code-0.0.15 → shacl2code-0.0.16}/src/shacl2code/lang/templates/cpp/namedindividual.hpp.j2
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{shacl2code-0.0.15 → shacl2code-0.0.16}/src/shacl2code/lang/templates/cpp/propertyvalue.cpp.j2
RENAMED
|
File without changes
|
{shacl2code-0.0.15 → shacl2code-0.0.16}/src/shacl2code/lang/templates/cpp/propertyvalue.hpp.j2
RENAMED
|
File without changes
|
|
File without changes
|
{shacl2code-0.0.15 → shacl2code-0.0.16}/src/shacl2code/lang/templates/cpp/refproperty.cpp.j2
RENAMED
|
File without changes
|
{shacl2code-0.0.15 → shacl2code-0.0.16}/src/shacl2code/lang/templates/cpp/refproperty.hpp.j2
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|