General
Test was expected to fail and it did.
Files
Using feature-missing-type-fail.json from test resources
JSON-LD context is present - uplifting
Output JSON-LD feature-missing-type-fail.jsonld created
Output Turtle feature-missing-type-fail.ttl created
JSON Schema
ValidationError: 'type' is a required property
Failed validating 'required' in schema['allOf'][0]:
{'$schema': 'http://json-schema.org/draft-07/schema#',
'$id': 'https://geojson.org/schema/Feature.json',
'title': 'GeoJSON Feature',
'type': 'object',
'required': ['type', 'properties', 'geometry'],
'properties': {'type': {'type': 'string',
'enum': ['Feature'],
'x-jsonld-id': '@type'},
'id': {'oneOf': [{'type': 'number'},
{'type': 'string'}],
'x-jsonld-id': '@id'},
'properties': {'oneOf': [{'type': 'null'},
{'type': 'object'}],
'x-jsonld-id': '@nest'},
'geometry': {'oneOf': [{'type': 'null'},
{'title': 'GeoJSON Point',
'type': 'object',
'required': ['type',
'coordinates'],
'properties': {'type': {'type': 'string',
'enum': ['Point'],
'x-jsonld-id': '@type'},
'coordinates': {'type': 'array',
'minItems': 2,
'items': {'type': 'number'},
'x-jsonld-container': '@list',
'x-jsonld-id': 'https://purl.org/geojson/vocab#coordinates'},
'bbox': {'type': 'array',
'minItems': 4,
'items': {'type': 'number'},
'x-jsonld-container': '@list',
'x-jsonld-id': 'https://purl.org/geojson/vocab#bbox'}}},
{'title': 'GeoJSON LineString',
'type': 'object',
'required': ['type',
'coordinates'],
'properties': {'type': {'type': 'string',
'enum': ['LineString'],
'x-jsonld-id': '@type'},
'coordinates': {'type': 'array',
'minItems': 2,
'items': {'type': 'array',
'minItems': 2,
'items': {'type': 'number'}},
'x-jsonld-container': '@list',
'x-jsonld-id': 'https://purl.org/geojson/vocab#coordinates'},
'bbox': {'type': 'array',
'minItems': 4,
'items': {'type': 'number'},
'x-jsonld-container': '@list',
'x-jsonld-id': 'https://purl.org/geojson/vocab#bbox'}}},
{'title': 'GeoJSON Polygon',
'type': 'object',
'required': ['type',
'coordinates'],
'properties': {'type': {'type': 'string',
'enum': ['Polygon'],
'x-jsonld-id': '@type'},
'coordinates': {'type': 'array',
'items': {'type': 'array',
'minItems': 4,
'items': {'type': 'array',
'minItems': 2,
'items': {'type': 'number'}}},
'x-jsonld-container': '@list',
'x-jsonld-id': 'https://purl.org/geojson/vocab#coordinates'},
'bbox': {'type': 'array',
'minItems': 4,
'items': {'type': 'number'},
'x-jsonld-container': '@list',
'x-jsonld-id': 'https://purl.org/geojson/vocab#bbox'}}},
{'title': 'GeoJSON MultiPoint',
'type': 'object',
'required': ['type',
'coordinates'],
'properties': {'type': {'type': 'string',
'enum': ['MultiPoint'],
'x-jsonld-id': '@type'},
'coordinates': {'type': 'array',
'items': {'type': 'array',
'minItems': 2,
'items': {'type': 'number'}},
'x-jsonld-container': '@list',
'x-jsonld-id': 'https://purl.org/geojson/vocab#coordinates'},
'bbox': {'type': 'array',
'minItems': 4,
'items': {'type': 'number'},
'x-jsonld-container': '@list',
'x-jsonld-id': 'https://purl.org/geojson/vocab#bbox'}}},
{'title': 'GeoJSON '
'MultiLineString',
'type': 'object',
'required': ['type',
'coordinates'],
'properties': {'type': {'type': 'string',
'enum': ['MultiLineString'],
'x-jsonld-id': '@type'},
'coordinates': {'type': 'array',
'items': {'type': 'array',
'minItems': 2,
'items': {'type': 'array',
'minItems': 2,
'items': {'type': 'number'}}},
'x-jsonld-container': '@list',
'x-jsonld-id': 'https://purl.org/geojson/vocab#coordinates'},
'bbox': {'type': 'array',
'minItems': 4,
'items': {'type': 'number'},
'x-jsonld-container': '@list',
'x-jsonld-id': 'https://purl.org/geojson/vocab#bbox'}}},
{'title': 'GeoJSON MultiPolygon',
'type': 'object',
'required': ['type',
'coordinates'],
'properties': {'type': {'type': 'string',
'enum': ['MultiPolygon'],
'x-jsonld-id': '@type'},
'coordinates': {'type': 'array',
'items': {'type': 'array',
'items': {'type': 'array',
'minItems': 4,
'items': {'type': 'array',
'minItems': 2,
'items': {'type': 'number'}}}},
'x-jsonld-container': '@list',
'x-jsonld-id': 'https://purl.org/geojson/vocab#coordinates'},
'bbox': {'type': 'array',
'minItems': 4,
'items': {'type': 'number'},
'x-jsonld-container': '@list',
'x-jsonld-id': 'https://purl.org/geojson/vocab#bbox'}}},
{'title': 'GeoJSON '
'GeometryCollection',
'type': 'object',
'required': ['type',
'geometries'],
'properties': {'type': {'type': 'string',
'enum': ['GeometryCollection'],
'x-jsonld-id': '@type'},
'geometries': {'type': 'array',
'items': {'oneOf': [{'title': 'GeoJSON '
'Point',
'type': 'object',
'required': ['type',
'coordinates'],
'properties': {'type': {'type': 'string',
'enum': ['Point'],
'x-jsonld-id': '@type'},
'coordinates': {'type': 'array',
'minItems': 2,
'items': {'type': 'number'},
'x-jsonld-container': '@list',
'x-jsonld-id': 'https://purl.org/geojson/vocab#coordinates'},
'bbox': {'type': 'array',
'minItems': 4,
'items': {'type': 'number'},
'x-jsonld-container': '@list',
'x-jsonld-id': 'https://purl.org/geojson/vocab#bbox'}}},
{'title': 'GeoJSON '
'LineString',
'type': 'object',
'required': ['type',
'coordinates'],
'properties': {'type': {'type': 'string',
'enum': ['LineString'],
'x-jsonld-id': '@type'},
'coordinates': {'type': 'array',
'minItems': 2,
'items': {'type': 'array',
'minItems': 2,
'items': {'type': 'number'}},
'x-jsonld-container': '@list',
'x-jsonld-id': 'https://purl.org/geojson/vocab#coordinates'},
'bbox': {'type': 'array',
'minItems': 4,
'items': {'type': 'number'},
'x-jsonld-container': '@list',
'x-jsonld-id': 'https://purl.org/geojson/vocab#bbox'}}},
{'title': 'GeoJSON '
'Polygon',
'type': 'object',
'required': ['type',
'coordinates'],
'properties': {'type': {'type': 'string',
'enum': ['Polygon'],
'x-jsonld-id': '@type'},
'coordinates': {'type': 'array',
'items': {'type': 'array',
'minItems': 4,
'items': {'type': 'array',
'minItems': 2,
'items': {'type': 'number'}}},
'x-jsonld-container': '@list',
'x-jsonld-id': 'https://purl.org/geojson/vocab#coordinates'},
'bbox': {'type': 'array',
'minItems': 4,
'items': {'type': 'number'},
'x-jsonld-container': '@list',
'x-jsonld-id': 'https://purl.org/geojson/vocab#bbox'}}},
{'title': 'GeoJSON '
'MultiPoint',
'type': 'object',
'required': ['type',
'coordinates'],
'properties': {'type': {'type': 'string',
'enum': ['MultiPoint'],
'x-jsonld-id': '@type'},
'coordinates': {'type': 'array',
'items': {'type': 'array',
'minItems': 2,
'items': {'type': 'number'}},
'x-jsonld-container': '@list',
'x-jsonld-id': 'https://purl.org/geojson/vocab#coordinates'},
'bbox': {'type': 'array',
'minItems': 4,
'items': {'type': 'number'},
'x-jsonld-container': '@list',
'x-jsonld-id': 'https://purl.org/geojson/vocab#bbox'}}},
{'title': 'GeoJSON '
'MultiLineString',
'type': 'object',
'required': ['type',
'coordinates'],
'properties': {'type': {'type': 'string',
'enum': ['MultiLineString'],
'x-jsonld-id': '@type'},
'coordinates': {'type': 'array',
'items': {'type': 'array',
'minItems': 2,
'items': {'type': 'array',
'minItems': 2,
'items': {'type': 'number'}}},
'x-jsonld-container': '@list',
'x-jsonld-id': 'https://purl.org/geojson/vocab#coordinates'},
'bbox': {'type': 'array',
'minItems': 4,
'items': {'type': 'number'},
'x-jsonld-container': '@list',
'x-jsonld-id': 'https://purl.org/geojson/vocab#bbox'}}},
{'title': 'GeoJSON '
'MultiPolygon',
'type': 'object',
'required': ['type',
'coordinates'],
'properties': {'type': {'type': 'string',
'enum': ['MultiPolygon'],
'x-jsonld-id': '@type'},
'coordinates': {'type': 'array',
'items': {'type': 'array',
'items': {'type': 'array',
'minItems': 4,
'items': {'type': 'array',
'minItems': 2,
'items': {'type': 'number'}}}},
'x-jsonld-container': '@list',
'x-jsonld-id': 'https://purl.org/geojson/vocab#coordinates'},
'bbox': {'type': 'array',
'minItems': 4,
'items': {'type': 'number'},
'x-jsonld-container': '@list',
'x-jsonld-id': 'https://purl.org/geojson/vocab#bbox'}}}]}},
'bbox': {'type': 'array',
'minItems': 4,
'items': {'type': 'number'},
'x-jsonld-container': '@list',
'x-jsonld-id': 'https://purl.org/geojson/vocab#bbox'}}}],
'x-jsonld-id': 'https://purl.org/geojson/vocab#geometry'},
'bbox': {'type': 'array',
'minItems': 4,
'items': {'type': 'number'},
'x-jsonld-container': '@list',
'x-jsonld-id': 'https://purl.org/geojson/vocab#bbox'}},
'x-jsonld-extra-terms': {'Feature': 'https://purl.org/geojson/vocab#Feature',
'FeatureCollection': 'https://purl.org/geojson/vocab#FeatureCollection',
'GeometryCollection': 'https://purl.org/geojson/vocab#GeometryCollection',
'LineString': 'https://purl.org/geojson/vocab#LineString',
'MultiLineString': 'https://purl.org/geojson/vocab#MultiLineString',
'MultiPoint': 'https://purl.org/geojson/vocab#MultiPoint',
'MultiPolygon': 'https://purl.org/geojson/vocab#MultiPolygon',
'Point': 'https://purl.org/geojson/vocab#Point',
'Polygon': 'https://purl.org/geojson/vocab#Polygon',
'features': {'x-jsonld-container': '@set',
'x-jsonld-id': 'https://purl.org/geojson/vocab#features'}},
'x-jsonld-prefixes': {'geojson': 'https://purl.org/geojson/vocab#'},
'x-bblocks-metadata': {'itemIdentifier': 'ogc.geo.common.data_types.geojson',
'register': 'https://opengeospatial.github.io/bblocks/register.json',
'version': '1.0',
'dateOfLastChange': '2026-11-08'}}
On instance:
{'id': 'http://www.example.com/features/bad1',
'geometry': {'type': 'Point', 'coordinates': [174.7, -36.9]},
'properties': {}}
SHACL
Validation result for registereditems/geo/features/feature/shapes.shacl: no results
Focus nodes for registereditems/geo/features/feature/shapes.shacl:
- Shape geojson:GeometryShape: *none*
- Shape geojson:GeometryShape/sh:or/rdf:rest/rdf:first: *none*
- Shape geojson:FeatureShape: *none*
- Shape geojson:GeometryShape/sh:or/rdf:first: *none*
- Shape geojson:LinkShape: *none*