Incremental SHACL validation support with reduced graph extraction over Virtuoso.
Project description
UpSHACLAST
from upshacl import GraphSource, UpShaclConfig, run_upshacl
result = run_upshacl(
data_graph=GraphSource(file_path="data/my_data.ttl"),
shapes_graph=GraphSource(graph_uri="http://example.org/shapes"),
insert_graph=GraphSource(file_path="data/insert.ttl"),
delete_graph=GraphSource(file_path="data/delete.ttl"),
config=UpShaclConfig(
query_endpoint="http://localhost:8890/sparql",
update_endpoint="http://localhost:8890/sparql",
username="dba",
password="dba",
docker_container_name="new_virtuoso",
data_dir_in_docker="/data",
storage_dir="/mnt/data/zete",
),
)
result.export_reduced_graph("results/reduced_graph.ttl")
result.export_reduced_report("results/reduced_report.ttl")
Install locally with:
pip install -e .
After publishing to PyPI:
pip install upshacl
Publish workflow:
python -m pip install -U build twine
python -m build
python -m twine check dist/*
python -m twine upload dist/*
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
upshacl-0.1.0.tar.gz
(24.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
upshacl-0.1.0-py3-none-any.whl
(26.1 kB
view details)
File details
Details for the file upshacl-0.1.0.tar.gz.
File metadata
- Download URL: upshacl-0.1.0.tar.gz
- Upload date:
- Size: 24.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2f166271750c272a300b31c4f83c6d11b22b71386a0063618a29c95c2964fad0
|
|
| MD5 |
7984d0e3f63a4ffe9300790078d390be
|
|
| BLAKE2b-256 |
f77962e7fe114f4ad299fcc17a5845adab7f140a8f8c208b225e3f957e6999f3
|
File details
Details for the file upshacl-0.1.0-py3-none-any.whl.
File metadata
- Download URL: upshacl-0.1.0-py3-none-any.whl
- Upload date:
- Size: 26.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
285350d8489534499fee4a539322f6dae086b2797d9235386ddb29c1b07f2b63
|
|
| MD5 |
544e50d002189b6535c15f97717f9545
|
|
| BLAKE2b-256 |
a65506b40c59087564168115c8d68d30271ec2b0c37e216db5068137b4c8c940
|