Skip to content

Commit

Permalink
true literal
Browse files Browse the repository at this point in the history
  • Loading branch information
giacomociti committed Jan 30, 2024
1 parent 8cd66cd commit 052b1a5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/lemon-icons-clean.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"barnard59-shacl": patch
---

Produce SHACL report on successful validation
2 changes: 1 addition & 1 deletion packages/shacl/report.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ async function * validate(ds, maxViolations, iterable) {
const report = this.env.dataset()
const blankNode = this.env.blankNode('report')
report.add(this.env.quad(blankNode, this.env.ns.rdf.type, this.env.ns.sh.ValidationReport))
report.add(this.env.quad(blankNode, this.env.ns.sh.conforms, this.env.literal(true, this.env.ns.xsd.boolean)))
report.add(this.env.quad(blankNode, this.env.ns.sh.conforms, this.env.literal('true', this.env.ns.xsd.boolean)))
yield report
}
}
Expand Down

0 comments on commit 052b1a5

Please sign in to comment.