-
Notifications
You must be signed in to change notification settings - Fork 34
Issue #486 ValidationReport UML #487
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: gh-pages
Are you sure you want to change the base?
Changes from 5 commits
5498be5
780e767
c804c0a
61bf1e8
59f7c25
9ba949e
731cbcc
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
all: ValidationReport-UML.svg | ||
|
||
%.svg: %.puml | ||
plantuml -Tsvg $^ |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
@startuml | ||
hide circles | ||
hide empty members | ||
skinparam pathHoverColor red ' on cover, highlight blue links as red | ||
|
||
class "<color:blue><u>sh:ValidationReport" as ValidationReport [[#results-validation-report]] { | ||
[[#conforms sh:conforms]] : xsd:boolean | ||
[[#shapesGraphWellFormed sh:shapesGraphWellFormed]] : xsd:boolean | ||
} | ||
|
||
class "<color:blue><u>sh:ValidationResult" as ValidationResult [[#results-validation-result]] { | ||
[[#results-focus-node sh:focusNode]] : any | ||
[[#results-path sh:resultPath]] : [[#property-paths SHACL prop path]] | ||
[[#results-value sh:value]] : any | ||
[[#results-source-shape sh:sourceShape]] : [[#shapes sh:Shape]] | ||
[[#results-source-constraint-component sh:sourceConstraintComponent]] : [[#dfn-constraint-component sh:ConstraintComponent]] | ||
[[#results-message sh:resultMessage]] : xsd:string or rdf:langString | ||
[[#results-severity sh:resultSeverity]] : [[#severity sh:Severity]] | ||
} | ||
|
||
ValidationReport --> ValidationResult : [[#result sh:result]] * | ||
ValidationResult -> ValidationResult : [[#results-detail sh:detail]] * | ||
@enduml |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
<title>SHACL 1.2 Core</title> | ||
<meta charset="utf-8"> | ||
<script src="https://www.w3.org/Tools/respec/respec-w3c" class="remove" defer=""></script> | ||
<meta name="color-scheme" content="light dark"> | ||
<script class="remove"> | ||
|
||
function prepareSyntaxRules() { | ||
|
@@ -2920,8 +2921,9 @@ <h3>Validation Report</h3> | |
<p> | ||
The <dfn data-lt="validation report|report">validation report</dfn> is the result of the <a>validation</a> process that reports the <a>conformance</a> and the set of all <dfn data-lt="validation result|result">validation results</dfn>. | ||
The validation report is described with the SHACL <dfn>Validation Report Vocabulary</dfn> as defined in this section. | ||
This vocabulary defines the RDF properties to represent structural information that may provide guidance on how to identify or fix violations in the data graph. | ||
This vocabulary defines the RDF classes and properties to represent structural information that may provide guidance on how to identify or fix violations in the data graph: | ||
</p> | ||
<div id="ValidationReport-UML.svg"></div> | ||
<p><!-- ISSUE-181 --> | ||
SHACL-compliant processors MUST be capable of returning a validation report with all required <a>validation results</a> | ||
described in this specification. | ||
|
@@ -7976,11 +7978,24 @@ <h2>Changes between SHACL 1.0 Core and SHACL 1.2 Core</h2> | |
|
||
<script type="text/javascript"> | ||
|
||
tooltip = "Targets are not the only way to initiate validation, SHACL also allows specific nodes to be validated against specific shapes."; | ||
var t = document.getElementsByClassName("target-can-be-skipped"); | ||
for (var i = 0; i < t.length; i++) { | ||
t[i].title = tooltip; | ||
} | ||
// tooltip = "Targets are not the only way to initiate validation, SHACL also allows specific nodes to be validated against specific shapes."; | ||
// var t = document.getElementsByClassName("target-can-be-skipped"); | ||
// for (var i = 0; i < t.length; i++) { | ||
// t[i].title = tooltip; | ||
// } | ||
|
||
// Load and inline SVG diagrams | ||
YoucTagh marked this conversation as resolved.
Show resolved
Hide resolved
|
||
// TODO: add <svg desc> for accessibility | ||
function svgInline(svg) { | ||
fetch('images/'+svg) | ||
.then(response => response.text()) | ||
.then(svgText => { | ||
const container = document.getElementById(svg); | ||
container.innerHTML = svgText; | ||
})}; | ||
|
||
// svgInline('SHACL-UML.svg'); | ||
svgInline('ValidationReport-UML.svg'); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why don't you use plain HTML with an img element? That would reduce the total lines of JS code and make the spec a bit easier to maintain. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think we won't have clickable links with img. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Makes sense. But it should be mentioned in the comment. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @bergos that's exactly the reason. |
||
|
||
</script> | ||
|
||
|
Uh oh!
There was an error while loading. Please reload this page.