# SHACL shapes, rendered from the LinkML model.
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix sh: <http://www.w3.org/ns/shacl#> .

<https://smartdatamodels.org/SummaryGroup>
  a sh:PropertyGroup ;
  sh:order 0 ;
  rdfs:label "Základné"@sk, "Summary"@en .

<https://smartdatamodels.org/DetailGroup>
  a sh:PropertyGroup ;
  sh:order 1 ;
  rdfs:label "Detail"@sk, "Detail"@en .

<https://smartdatamodels.org/AdministrativeAreaShape>
  a sh:NodeShape ;
  sh:targetClass <https://uri.etsi.org/ngsi-ld/default-context/AdministrativeArea> ;
  sh:closed false ;
  sh:property [
    sh:path <https://uri.etsi.org/ngsi-ld/default-context/name> ;
    sh:name "name", "Název"@cs, "Name"@de, "Name"@en, "Názov"@sk ;
    sh:order 0 ;
    sh:group <https://smartdatamodels.org/SummaryGroup> ;
    sh:datatype xsd:string ;
    sh:maxCount 1 ;
    rdfs:comment "The name, per language."
  ] ;
  sh:property [
    sh:path <https://uri.etsi.org/ngsi-ld/default-context/districtCode> ;
    sh:name "districtCode", "Kód části"@cs, "Bezirksnummer"@de, "District code"@en, "Kód časti"@sk ;
    sh:order 1 ;
    sh:group <https://smartdatamodels.org/SummaryGroup> ;
    sh:datatype xsd:string ;
    sh:maxCount 1 ;
    rdfs:comment "The city's own code of the area: the district number, for a sub-district the full ten-digit code the city's statistics use for it, for a quarter the register's ten-digit quarter code, for a voting district the district number and a letter (049A). An HSL fare zone has none; its letter is its `fareZone`. The districts, sub-districts, quarters and voting-districts mappings write no area without it."
  ] ;
  sh:property [
    sh:path <https://uri.etsi.org/ngsi-ld/default-context/divisionLevel> ;
    sh:name "divisionLevel", "Úroveň členění"@cs, "Gliederungsebene"@de, "Division level"@en, "Úroveň členenia"@sk ;
    sh:order 2 ;
    sh:group <https://smartdatamodels.org/SummaryGroup> ;
    sh:in ( "basicDistrict" "city" "cityPart" "district" "fareZone" "majorDistrict" "preschoolAdmissionArea" "quarter" "subDistrict" "votingDistrict" ) ;
    sh:minCount 1 ;
    sh:maxCount 1 ;
    rdfs:comment "Which of the city's divisions the area belongs to: a district, sub-district, quarter or voting district for an AdministrativeArea; for a statistics indicator also the city, a major or basic district, or the inner city or the suburbs."
  ] ;
  sh:property [
    sh:path <https://uri.etsi.org/ngsi-ld/default-context/fareZone> ;
    sh:name "fareZone", "Tarifní pásmo"@cs, "Tarifzone"@de, "Fare zone"@en, "Tarifné pásmo"@sk ;
    sh:order 3 ;
    sh:group <https://smartdatamodels.org/SummaryGroup> ;
    sh:datatype xsd:string ;
    sh:maxCount 1 ;
    rdfs:comment "The HSL fare zone the stop or the sales point lies in, A to D; none for a place beyond HSL's zones."
  ] ;
  sh:property [
    sh:path <https://uri.etsi.org/ngsi-ld/default-context/dataProvider> ;
    sh:name "dataProvider", "Poskytovatel"@cs, "Anbieter"@de, "Provider"@en, "Tarjoaja"@fi, "Poskytovateľ"@sk ;
    sh:order 4 ;
    sh:group <https://smartdatamodels.org/DetailGroup> ;
    sh:datatype xsd:string ;
    sh:maxCount 1 ;
    rdfs:comment "Who publishes the data the entity was read from, as an application credits it beside the licence (CC BY 4.0 for every feed of this space)."
  ] ;
  sh:property [
    sh:path <https://uri.etsi.org/ngsi-ld/default-context/source> ;
    sh:name "source", "Zdroj"@cs, "Quelle"@de, "Source"@en, "Lähde"@fi, "Zdroj"@sk ;
    sh:order 5 ;
    sh:group <https://smartdatamodels.org/DetailGroup> ;
    sh:datatype xsd:anyURI ;
    sh:maxCount 1 ;
    rdfs:comment "The open-data service the entity was read from."
  ] ;
  sh:property [
    sh:path <https://uri.etsi.org/ngsi-ld/default-context/publicAreaPermits> ;
    sh:name "publicAreaPermits", "Povolení na veřejném prostranství"@cs, "Genehmigungen für öffentliche Flächen"@de, "Public area permits"@en, "Povolenia na verejnom priestranstve"@sk ;
    sh:order 6 ;
    sh:group <https://smartdatamodels.org/DetailGroup> ;
    sh:datatype xsd:anyURI ;
    rdfs:comment "The public-area permits that lie in this district, computed from their refDistrict and never stored."
  ] ;
  sh:property [
    sh:path <https://uri.etsi.org/ngsi-ld/default-context/areaIndicators> ;
    sh:name "areaIndicators", "Ukazatele území"@cs, "Gebietsindikatoren"@de, "Area indicators"@en, "Ukazovatele územia"@sk ;
    sh:order 7 ;
    sh:group <https://smartdatamodels.org/DetailGroup> ;
    sh:datatype xsd:anyURI ;
    rdfs:comment "The statistics indicators that describe this sub-district, computed from their refArea and never stored."
  ] ;
  sh:property [
    sh:path <http://purl.org/dc/terms/description> ;
    sh:name "description", "Popis"@cs, "Beschreibung"@de, "Description"@en, "Popis"@sk ;
    sh:order 8 ;
    sh:group <https://smartdatamodels.org/DetailGroup> ;
    sh:datatype xsd:string ;
    sh:maxCount 1 ;
    rdfs:comment "A short description, per language."
  ] ;
  sh:property [
    sh:path <https://uri.etsi.org/ngsi-ld/default-context/validFrom> ;
    sh:name "validFrom", "Platí od"@cs, "Gültig ab"@de, "Valid from"@en, "Platí od"@sk ;
    sh:order 9 ;
    sh:group <https://smartdatamodels.org/DetailGroup> ;
    sh:datatype xsd:dateTime ;
    sh:maxCount 1 ;
    rdfs:comment "When the situation starts; for a preschool admission area, the first day of its school year."
  ] ;
  sh:property [
    sh:path <https://uri.etsi.org/ngsi-ld/default-context/validTo> ;
    sh:name "validTo", "Platí do"@cs, "Gültig bis"@de, "Valid until"@en, "Platí do"@sk ;
    sh:order 10 ;
    sh:group <https://smartdatamodels.org/DetailGroup> ;
    sh:datatype xsd:dateTime ;
    sh:maxCount 1 ;
    rdfs:comment "When the situation ends; absent while open-ended. For a preschool admission area, the last day of its school year."
  ] ;
  sh:property [
    sh:path <https://uri.etsi.org/ngsi-ld/default-context/serviceUnits> ;
    sh:name "serviceUnits", "Provozovny"@cs, "Einrichtungen"@de, "Service units"@en, "Prevádzky"@sk ;
    sh:order 11 ;
    sh:group <https://smartdatamodels.org/DetailGroup> ;
    sh:datatype xsd:anyURI ;
    rdfs:comment "The units of the city's service register that serve the area: for a preschool admission area, the schools and day care centres that give its preschool education, each a PointOfInterest the services pipeline writes."
  ] ;
  sh:property [
    sh:path <https://uri.etsi.org/ngsi-ld/location> ;
    sh:name "location" ;
    sh:order 12 ;
    sh:group <https://smartdatamodels.org/DetailGroup> ;
    sh:maxCount 1 ;
    rdfs:comment "Where the entity is, as GeoJSON geometry."
  ] .
