rec:Polygon leaf node


URI

https://w3id.org/rec#Polygon

Label

Polygon

Superclasses (2)

Targets (1)

Property Constraints (1)

Focus nodes of this shape (rec:Polygon) can have the following properties:

PROPERTY DESCRIPTION MIN MAX VALUE TYPE OTHER CONSTRAINTS
rec:coordinates coordinates
A GeoJSON Polygon coordinate listing. Coordinates may be expressed in two or three dimensions. Ex: [[30.0, 10.0, 0.0], [40.0, 40.0, 2.0], [20.0, 40.0, 2.0], [10.0, 20.0, 2.0], [30.0, 10.0, 0.0]].
0 1 https://geojson.org/Polygon

Implementation

@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix rec: <https://w3id.org/rec#> .
@prefix sh: <http://www.w3.org/ns/shacl#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

rec:Polygon a rdfs:Class,
        sh:NodeShape ;
    rdfs:label "Polygon"^^xsd:string ;
    rdfs:subClassOf rec:Geometry ;
    sh:property [ a sh:PropertyShape ;
            sh:datatype <https://geojson.org/Polygon> ;
            sh:description "A GeoJSON Polygon coordinate listing. Coordinates may be expressed in two or three dimensions. Ex: [[30.0, 10.0, 0.0], [40.0, 40.0, 2.0], [20.0, 40.0, 2.0], [10.0, 20.0, 2.0], [30.0, 10.0, 0.0]]."^^xsd:string ;
            sh:maxCount 1 ;
            sh:name "coordinates"^^xsd:string ;
            sh:path rec:coordinates ] .