-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
Assuming sample_data/mobility/positives/M-P-03-valid-mobility-distribution.ttl is a valid ttl (as it's in directorypositives), I run
uv run scripts/validate.py --data sample_data/mobility/positives/M-P-03-valid-mobility-distribution.ttl --shacl shacl/ -vand expect it to validate successfully.
However, it fails with the following violations:
Loading SHACL shapes...
✓ Loaded 2 SHACL file(s)
✗ FAIL M-P-03-valid-mobility-distribution.ttl
Violations found: 8
[1] Property: description
Constraint: MinCountConstraintComponent
Message: Description is mandatory, must have a valid EU language tag, cannot be empty, and each language can
[2] Property: accrualPeriodicity
Constraint: MinCountConstraintComponent
Message: Frequency is mandatory. Exactly one value from EU Frequency vocabulary (http://publications.europa.e
[3] Property: mobilityTheme
Constraint: MinCountConstraintComponent
Message: Mobility theme is mandatory. At least one theme from the controlled vocabulary (https://w3id.org/mob
[4] Property: spatial
Constraint: MinCountConstraintComponent
Message: Spatial coverage is mandatory. At least one geographical area must be provided
[5] Property: publisher
Constraint: MinCountConstraintComponent
Message: Publisher is mandatory. Exactly one publisher must be provided
[6] Property: mobilityDataStandard
Constraint: MinCountConstraintComponent
Message: Mobility data standard is mandatory. Must be either a URI from https://w3id.org/mobilitydcat-ap/mobi
[7] Property: format
Constraint: ClassConstraintComponent
Message: Format must be a dct:MediaTypeOrExtent instance
[8] Property: rights
Constraint: ClassConstraintComponent
Message: Rights must be a dct:RightsStatement instance
And what exactly is wrong with all the failing ClassConstraintComponent constraints?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels