validation
This module defines auxiliary classes to represent pySHACL validation reports.
ProfileValidationReport
Validation report for a given profile.
Source code in ogc/na/validation.py
20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 |
|
__init__(profile_uri, profile_token, report)
Parameters:
Name | Type | Description | Default |
---|---|---|---|
profile_uri
|
URIRef
|
URI for the profile |
required |
profile_token
|
str
|
Token for the profile |
required |
report
|
ValidationReport
|
required |
Source code in ogc/na/validation.py
25 26 27 28 29 30 31 32 33 |
|
ProfilesValidationReport
Class to aggregate several ProfileValidationReport's coming from different profiles.
Results are exposed through the following fields:
reports
: list of validation reportsresult
:True
if all validations passed, otherwiseFalse
graph
: union of all SHACL validation report Graphstext
: full report text coming from all validation results (separated by profile)
Source code in ogc/na/validation.py
44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 |
|
__init__(profile_reports=None)
Parameters:
Name | Type | Description | Default |
---|---|---|---|
profile_reports
|
list[ProfileValidationReport]
|
list of initial validation reports |
None
|
Source code in ogc/na/validation.py
57 58 59 60 61 62 63 64 65 66 67 |
|
add(profile_report)
Add a new validation report.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
profile_report
|
ProfileValidationReport
|
|
required |
Source code in ogc/na/validation.py
69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 |
|