# 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/WeatherObservedShape>
  a sh:NodeShape ;
  sh:targetClass <https://uri.etsi.org/ngsi-ld/default-context/WeatherObserved> ;
  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, as the publisher writes it."
  ] ;
  sh:property [
    sh:path <https://uri.etsi.org/ngsi-ld/default-context/stationCode> ;
    sh:name "stationCode", "Číslo stanoviště"@cs, "Nummer des Sammelplatzes"@de, "Collection point number"@en, "Číslo stanovišťa"@sk ;
    sh:order 1 ;
    sh:group <https://smartdatamodels.org/SummaryGroup> ;
    sh:datatype xsd:string ;
    sh:minCount 1 ;
    sh:maxCount 1 ;
    rdfs:comment "The collection point's number in the city's waste register, such as 0022/ 001, or the ČHMÚ weather station's WIGOS id, such as 0-20000-0-11518."
  ] ;
  sh:property [
    sh:path <https://uri.etsi.org/ngsi-ld/default-context/dateObserved> ;
    sh:name "dateObserved", "Čas měření"@cs, "Messzeitpunkt"@de, "Observed at"@en, "Čas merania"@sk ;
    sh:order 2 ;
    sh:group <https://smartdatamodels.org/SummaryGroup> ;
    sh:datatype xsd:dateTime ;
    sh:maxCount 1 ;
    rdfs:comment "When the values were observed: the start of the hour the air quality readings average, the time of a vehicle's last position report, or the end of a weather station's newest 10 minutes."
  ] ;
  sh:property [
    sh:path <https://uri.etsi.org/ngsi-ld/default-context/temperature> ;
    sh:name "temperature", "Teplota vzduchu"@cs, "Lufttemperatur"@de, "Air temperature"@en, "Teplota vzduchu"@sk ;
    sh:order 3 ;
    sh:group <https://smartdatamodels.org/SummaryGroup> ;
    sh:datatype xsd:float ;
    sh:maxCount 1 ;
    rdfs:comment "The air temperature 2 m above ground, ČHMÚ's newest 10-minute value."
  ] ;
  sh:property [
    sh:path <https://uri.etsi.org/ngsi-ld/default-context/relativeHumidity> ;
    sh:name "relativeHumidity", "Relativní vlhkost"@cs, "Relative Luftfeuchtigkeit"@de, "Relative humidity"@en, "Relatívna vlhkosť"@sk ;
    sh:order 4 ;
    sh:group <https://smartdatamodels.org/DetailGroup> ;
    sh:datatype xsd:float ;
    sh:maxCount 1 ;
    rdfs:comment "The relative humidity as a fraction (0.57 is 57 %), the newest 10-minute value."
  ] ;
  sh:property [
    sh:path <https://uri.etsi.org/ngsi-ld/default-context/atmosphericPressure> ;
    sh:name "atmosphericPressure", "Atmosférický tlak"@cs, "Luftdruck"@de, "Atmospheric pressure"@en, "Atmosférický tlak"@sk ;
    sh:order 5 ;
    sh:group <https://smartdatamodels.org/DetailGroup> ;
    sh:datatype xsd:float ;
    sh:maxCount 1 ;
    rdfs:comment "The air pressure at the station's height (not reduced to sea level), the newest 10-minute value."
  ] ;
  sh:property [
    sh:path <https://uri.etsi.org/ngsi-ld/default-context/precipitation> ;
    sh:name "precipitation", "Srážky"@cs, "Niederschlag"@de, "Precipitation"@en, "Zrážky"@sk ;
    sh:order 6 ;
    sh:group <https://smartdatamodels.org/DetailGroup> ;
    sh:datatype xsd:float ;
    sh:maxCount 1 ;
    rdfs:comment "The precipitation of the newest 10 minutes, in millimetres (litres per square metre)."
  ] ;
  sh:property [
    sh:path <https://uri.etsi.org/ngsi-ld/default-context/windSpeed> ;
    sh:name "windSpeed", "Rychlost větru"@cs, "Windgeschwindigkeit"@de, "Wind speed"@en, "Rýchlosť vetra"@sk ;
    sh:order 7 ;
    sh:group <https://smartdatamodels.org/DetailGroup> ;
    sh:datatype xsd:float ;
    sh:maxCount 1 ;
    rdfs:comment "The mean wind speed 10 m above ground over the newest 10 minutes."
  ] ;
  sh:property [
    sh:path <https://uri.etsi.org/ngsi-ld/default-context/windDirection> ;
    sh:name "windDirection", "Směr větru"@cs, "Windrichtung"@de, "Wind direction"@en, "Smer vetra"@sk ;
    sh:order 8 ;
    sh:group <https://smartdatamodels.org/DetailGroup> ;
    sh:datatype xsd:float ;
    sh:maxCount 1 ;
    rdfs:comment "The mean wind direction over the newest 10 minutes, in degrees from north."
  ] ;
  sh:property [
    sh:path <https://uri.etsi.org/ngsi-ld/default-context/gustSpeed> ;
    sh:name "gustSpeed", "Rychlost nárazů větru"@cs, "Böengeschwindigkeit"@de, "Gust speed"@en, "Rýchlosť nárazov vetra"@sk ;
    sh:order 9 ;
    sh:group <https://smartdatamodels.org/DetailGroup> ;
    sh:datatype xsd:float ;
    sh:maxCount 1 ;
    rdfs:comment "The strongest gust of the newest 10 minutes, 10 m above ground."
  ] ;
  sh:property [
    sh:path <https://uri.etsi.org/ngsi-ld/default-context/dataProvider> ;
    sh:name "dataProvider", "Poskytovatel dat"@cs, "Datenanbieter"@de, "Data provider"@en, "Poskytovateľ údajov"@sk ;
    sh:order 10 ;
    sh:group <https://smartdatamodels.org/DetailGroup> ;
    sh:datatype xsd:string ;
    sh:maxCount 1 ;
    rdfs:comment "Who publishes the data the entity was read from, with the credit its licence asks for, as an application shows it beside the data."
  ] ;
  sh:property [
    sh:path <https://uri.etsi.org/ngsi-ld/default-context/source> ;
    sh:name "source", "Zdroj"@cs, "Quelle"@de, "Source"@en, "Zdroj"@sk ;
    sh:order 11 ;
    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/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."
  ] .
