Skip to content

Commit

Permalink
update brick-tq-shacl, fix type signature
Browse files Browse the repository at this point in the history
  • Loading branch information
gtfierro committed Mar 18, 2024
1 parent f7116c6 commit 695290b
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion buildingmotif/dataclasses/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ def validate(
data_graph.serialize("/tmp/data_graph.ttl", format="turtle")

# validate the data graph
valid, report_g, report_str = shacl_validate(data_graph, shapeg, engine)
valid, report_g, report_str = shacl_validate(data_graph, shapeg, engine=engine)
return ValidationContext(
shape_collections,
shapeg,
Expand Down
4 changes: 3 additions & 1 deletion buildingmotif/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,9 @@ def skip_uri(uri: URIRef) -> bool:


def shacl_validate(
data_graph: Graph, shape_graph: Optional[Graph] = None, engine="topquadrant"
data_graph: Graph,
shape_graph: Optional[Graph] = None,
engine: Optional[str] = "topquadrant",
) -> Tuple[bool, Graph, str]:
"""
Validate the data graph against the shape graph.
Expand Down
8 changes: 4 additions & 4 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ setuptools = "^65.6.3"
psycopg2 = {version="^2.9.5", optional=true}
pygit2 = "~1.11.1"
jsonschema = "^4.21.1"
brick-tq-shacl = {optional = true, version="0.3.1"}
brick-tq-shacl = {optional = true, version="0.3.2a1"}
werkzeug="^2.3.7"
types-jsonschema = "^4.21.0.20240311"

Expand Down

0 comments on commit 695290b

Please sign in to comment.