Skip to content
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

(Do not merge) Draft OC-191 #321

Draft
wants to merge 11 commits into
base: develop
Choose a base branch
from
Next Next commit
Regenerate Make-managed file
This file should have been regenerated before the merge of CP-23.  CP-91
is assisting with correcting this oversight.

References:
* [OC-68] (CP-23) Convert current property restrictions and domain
  assertions to SHACL class shapes
* [OC-193] (CP-91) Unit test validation results should be normalized

Signed-off-by: Alex Nelson <[email protected]>
ajnelson-nist committed Dec 2, 2021
commit adf42ce9d687414a9025cf24f00968f850c34a8d
22 changes: 1 addition & 21 deletions tests/examples/action_result_PASS_validation.ttl
Original file line number Diff line number Diff line change
@@ -1,26 +1,6 @@
@prefix action: <https://unifiedcyberontology.org/ontology/uco/action#> .
@prefix core: <https://unifiedcyberontology.org/ontology/uco/core#> .
@prefix sh: <http://www.w3.org/ns/shacl#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

[] a sh:ValidationReport ;
sh:conforms false ;
sh:result [ a sh:ValidationResult ;
sh:focusNode [ a action:ActionReferencesFacet ;
action:result <http://example.org/kb/node-0>,
<http://example.org/kb/node-1>,
<http://example.org/kb/node-2>,
<http://example.org/kb/node-3>,
<http://example.org/kb/node-4>,
<http://example.org/kb/node-5>,
<http://example.org/kb/node-6>,
<http://example.org/kb/node-7> ] ;
sh:resultMessage "Value does not have class core:UcoObject" ;
sh:resultPath action:result ;
sh:resultSeverity sh:Violation ;
sh:sourceConstraintComponent sh:ClassConstraintComponent ;
sh:sourceShape [ sh:class core:UcoObject ;
sh:nodeKind sh:BlankNodeOrIRI ;
sh:path action:result ] ;
sh:value <http://example.org/kb/node-0> ] .
sh:conforms true .