rec:Polygon leaf node


URI

https://w3id.org/rec#Polygon

Label

Polygon

Superclasses (2)

Shapes (1)

Usage

Instances of rec:Polygon can have the following properties:

PROPERTYTYPEDESCRIPTIONRANGE

Property Shapes

By the associated SHACL property shapes, instances of rec:Polygon can have the following properties:

PROPERTY PROPERTY TYPE DESCRIPTION MIN MAX VALUE TYPE OTHER CONSTRAINTS GLOBAL RANGE
rec:Polygon
rec:coordinates owl:DatatypeProperty 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 --
rec:Geometry
rec:coordinateSystem owl:ObjectProperty coordinate system
0 1 xsd:string
sh:Literal
sh:in WGS84, SWEREF99, LocalCoordinates
--

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 ] .