General
Test was expected to fail and it did.
Files
Using feature-fail.json from test resources
JSON-LD context is present - uplifting
Output JSON-LD feature-fail.jsonld created
Output Turtle feature-fail.ttl created
JSON Schema
ValidationError: 'LT' is a required property
Failed validating 'required' in schema[0]['allOf'][1]['properties']['properties']:
{'$schema': 'https://json-schema.org/draft/2020-12/schema',
'description': 'My example schema',
'type': 'object',
'properties': {'LT': {'type': 'string',
'x-jsonld-id': 'https://w3id.org/ogc/hosted/focal/properties/lesniTyp',
'x-jsonld-type': '@id',
'x-jsonld-base': 'https://w3id.org/ogc/hosted/focal/lt/'},
'LES_OBL': {'type': 'number',
'x-jsonld-id': 'https://w3id.org/ogc/hosted/focal/properties/lesniOblast'},
'LO_CAST': {'type': 'string',
'x-jsonld-id': 'https://w3id.org/ogc/hosted/focal/properties/lesniOblastCast'},
'UDRZBA': {'type': 'number',
'x-jsonld-id': 'https://w3id.org/ogc/hosted/focal/properties/lesniUDRZBA'},
'ZMENA': {'type': 'string',
'x-jsonld-id': 'https://w3id.org/ogc/hosted/focal/properties/lesniZMENA'},
'ZADOST': {'type': 'string',
'x-jsonld-id': 'https://w3id.org/ogc/hosted/focal/properties/lesniZADOST'},
'CHS': {'type': 'number',
'x-jsonld-id': 'https://w3id.org/ogc/hosted/focal/properties/lesniCHS'},
'PCHS': {'type': 'string',
'x-jsonld-id': 'https://w3id.org/ogc/hosted/focal/properties/lesniPCHS'},
'OVER_T': {'type': 'string',
'x-jsonld-id': 'https://w3id.org/ogc/hosted/focal/properties/lesniOVERT'},
'ROK_MAP': {'type': 'number',
'x-jsonld-id': 'https://w3id.org/ogc/hosted/focal/properties/lesniROKMAP'},
'ID1': {'type': 'number',
'x-jsonld-id': 'https://w3id.org/ogc/hosted/focal/properties/lesniID1'},
'SLT': {'type': 'string',
'x-jsonld-id': 'https://w3id.org/ogc/hosted/focal/properties/lesniSLT'},
'PLOCHA': {'type': 'number',
'x-jsonld-id': 'https://w3id.org/ogc/hosted/focal/properties/lesniPLOCHA'},
'DS_OPRL': {'type': 'number',
'x-jsonld-id': 'https://w3id.org/ogc/hosted/focal/properties/lesniDSOPRL'}},
'required': ['LT'],
'x-jsonld-prefixes': {'focal-prop': 'https://w3id.org/ogc/hosted/focal/properties/'},
'x-bblocks-metadata': {'itemIdentifier': 'ogc.bbr.examples.linkeddata.forestStandProperties',
'register': 'http://localhost:9090/register/build-local/register.json',
'version': '0.1',
'dateOfLastChange': '2026-11-04'}}
On instance['properties']:
{'LES_OBL': 8,
'LO_CAST': 'a',
'UDRZBA': 2022,
'ZMENA': 'Uvedení do souladu s KN',
'ZADOST': '-',
'CHS': 25,
'PCHS': '25a',
'OVER_T': 'NE',
'ROK_MAP': 2015,
'ID1': 128301,
'SLT': '2S',
'PLOCHA': 1224.24963,
'DS_OPRL': 2025}
SHACL
Using SHACL closure graph sources (declared closures, ontologies and RDF data resources):
- /home/bblocks/bblocks-examples/_sources/linkeddata/forest-ontology/ontology.ttl
Validation result for _sources/linkeddata/forestStandFeature/shapes.shacl: 1 violation
Violation (sh:MinCountConstraintComponent):
Source shape: <https://example.com/focal/feature-lesniTyp>/sh:property "lesniTyp" (path focal-prop:lesniTyp)
Focus node: _:N905aeecff24e4459b28c304343ba6bfa
Result path: focal-prop:lesniTyp
Message: Every geojson:Feature must have at least one focal-prop:lesniTyp whose value is an IRI resource.
Focus nodes for _sources/linkeddata/forestStandFeature/shapes.shacl:
- Shape <https://example.com/focal/feature-lesniTyp>: _:N2cdf1ade96cb4d499a738b46781a5e74,_:N1725fd3c97ab48f4b1b9e385c0954df3,_:N905aeecff24e4459b28c304343ba6bfa,_:N54b18c6b27b74762ac6eca5e50951389,_:N634244f4be954a4ea79cac4473562c56,_:Nf0c1fbde85324443950890f1e22d3d90,_:N715f581df9474970a352d0a5fae95b99,_:N2c929817b51c4bb6a3e28c703a4d2028,_:N505281e37a5643f7a2b8f0b5613f380b,_:N941b2645a2a64735a429d010a02f15f2,_:N487811c1a7f946da9212223af132687a,_:N2d47b9edab744c76b1445a72dc753538,_:N8e82b41bd9744ab287de408949a607c5
Validation result for https://opengeospatial.github.io/bblocks/registereditems/geo/features/feature/shapes.shacl: no results
Focus nodes for https://opengeospatial.github.io/bblocks/registereditems/geo/features/feature/shapes.shacl:
- Shape geojson:FeatureShape: _:N2cdf1ade96cb4d499a738b46781a5e74,_:N1725fd3c97ab48f4b1b9e385c0954df3,_:N905aeecff24e4459b28c304343ba6bfa,_:N54b18c6b27b74762ac6eca5e50951389,_:N634244f4be954a4ea79cac4473562c56,_:Nf0c1fbde85324443950890f1e22d3d90,_:N715f581df9474970a352d0a5fae95b99,_:N2c929817b51c4bb6a3e28c703a4d2028,_:N505281e37a5643f7a2b8f0b5613f380b,_:N941b2645a2a64735a429d010a02f15f2,_:N487811c1a7f946da9212223af132687a,_:N2d47b9edab744c76b1445a72dc753538,_:N8e82b41bd9744ab287de408949a607c5
- Shape geojson:GeometryShape: *none*
- Shape geojson:GeometryShape/sh:or/rdf:first: *none*
- Shape geojson:GeometryShape/sh:or/rdf:rest/rdf:first: *none*
- Shape geojson:LinkShape: *none*
Validation result for https://opengeospatial.github.io/bblocks/registereditems/geo/features/featureCollection/shapes.shacl: no results
Focus nodes for https://opengeospatial.github.io/bblocks/registereditems/geo/features/featureCollection/shapes.shacl:
- Shape geojson:FeatureShape: *none*
- Shape geojson:FeatureCollectionShape: _:Nd1d45f2d675a400e995108b10dd2ab53
- Shape geojson:GeometryShape: *none*
- Shape geojson:GeometryShape/sh:or/rdf:rest/rdf:first: *none*
- Shape geojson:GeometryShape/sh:or/rdf:first: *none*
- Shape geojson:LinkShape: *none*