# 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/KeyPerformanceIndicatorShape>
  a sh:NodeShape ;
  sh:targetClass <https://uri.etsi.org/ngsi-ld/default-context/KeyPerformanceIndicator> ;
  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/dataSet> ;
    sh:name "dataSet", "Řada"@cs, "Reihe"@de, "Series"@en, "Séria"@sk ;
    sh:order 1 ;
    sh:group <https://smartdatamodels.org/SummaryGroup> ;
    sh:datatype xsd:string ;
    sh:minCount 1 ;
    sh:maxCount 1 ;
    rdfs:comment "The series the figure belongs to, the same for every year's file of one publication, such as `mp-cinnost` for the monthly activity reports of the municipal police."
  ] ;
  sh:property [
    sh:path <https://uri.etsi.org/ngsi-ld/default-context/indicator> ;
    sh:name "indicator", "Ukazatel"@cs, "Indikator"@de, "Indicator"@en, "Ukazovateľ"@sk ;
    sh:order 2 ;
    sh:group <https://smartdatamodels.org/SummaryGroup> ;
    sh:datatype xsd:string ;
    sh:minCount 1 ;
    sh:maxCount 1 ;
    rdfs:comment "What the figure counts, as the publisher's own headings joined by ` / `, such as `Odtahy vozidel / Celkem`, or the budget line's function and item codes."
  ] ;
  sh:property [
    sh:path <https://uri.etsi.org/ngsi-ld/default-context/refArea> ;
    sh:name "refArea", "Území"@cs, "Gebiet"@de, "Area"@en, "Územie"@sk ;
    sh:order 3 ;
    sh:group <https://smartdatamodels.org/SummaryGroup> ;
    sh:datatype xsd:string ;
    sh:minCount 1 ;
    sh:maxCount 1 ;
    rdfs:comment "The territory the figure describes: `CZ010` for the whole city, or a city district's identification number (IČO) and name, such as `00063410 HMP-MČ PRAHA 1`."
  ] ;
  sh:property [
    sh:path <https://uri.etsi.org/ngsi-ld/default-context/refPeriod> ;
    sh:name "refPeriod", "Období"@cs, "Zeitraum"@de, "Period"@en, "Obdobie"@sk ;
    sh:order 4 ;
    sh:group <https://smartdatamodels.org/DetailGroup> ;
    sh:datatype xsd:string ;
    sh:minCount 1 ;
    sh:maxCount 1 ;
    rdfs:comment "The period the figure covers, a month (`2025-09`) or a budget year to date (`2026`)."
  ] ;
  sh:property [
    sh:path <https://uri.etsi.org/ngsi-ld/default-context/dimensionKey> ;
    sh:name "dimensionKey", "Další členění"@cs, "Weitere Gliederung"@de, "Further breakdown"@en, "Ďalšie členenie"@sk ;
    sh:order 5 ;
    sh:group <https://smartdatamodels.org/DetailGroup> ;
    sh:datatype xsd:string ;
    sh:maxCount 1 ;
    rdfs:comment "The further breakdown beyond area and period: the police unit (`OŘ1`, `Hlídkový útvar`), the budget area of a budget line (`09 Školství`) or where a district's transfer comes from (`Státní rozpočet`); absent when the series has none."
  ] ;
  sh:property [
    sh:path <https://uri.etsi.org/ngsi-ld/default-context/kpiValue> ;
    sh:name "kpiValue", "Hodnota"@cs, "Wert"@de, "Value"@en, "Hodnota"@sk ;
    sh:order 6 ;
    sh:group <https://smartdatamodels.org/DetailGroup> ;
    sh:datatype xsd:float ;
    sh:minCount 1 ;
    sh:maxCount 1 ;
    rdfs:comment "The figure as published: a count (unitCode C62), a share in percent (P1), or an amount of money drawn so far, in the unit the budget publishes (thousands of CZK), named by `unitText`."
  ] ;
  sh:property [
    sh:path <https://uri.etsi.org/ngsi-ld/default-context/unitText> ;
    sh:name "unitText", "Jednotka"@cs, "Einheit"@de, "Unit"@en, "Jednotka"@sk ;
    sh:order 7 ;
    sh:group <https://smartdatamodels.org/DetailGroup> ;
    sh:datatype xsd:string ;
    sh:maxCount 1 ;
    rdfs:comment "The unit in words, such as `Kč` or `tis. Kč`, kept because a UN/CEFACT code has no currency."
  ] ;
  sh:property [
    sh:path <https://joinedcontext.com/models/approvedAmount> ;
    sh:name "approvedAmount", "Schválený rozpočet"@cs, "Genehmigter Betrag"@de, "Approved amount"@en, "Schválený rozpočet"@sk ;
    sh:order 8 ;
    sh:group <https://smartdatamodels.org/DetailGroup> ;
    sh:datatype xsd:float ;
    sh:maxCount 1 ;
    rdfs:comment "The amount the council approved, as the city publishes it. The city's documentation names no unit; the 2026 expenditure lines add up to 119 054 085, which is the size of Prague's budget in thousands of CZK."
  ] ;
  sh:property [
    sh:path <https://joinedcontext.com/models/adjustedAmount> ;
    sh:name "adjustedAmount", "Upravený rozpočet"@cs, "Angepasster Betrag"@de, "Adjusted amount"@en, "Upravený rozpočet"@sk ;
    sh:order 9 ;
    sh:group <https://smartdatamodels.org/DetailGroup> ;
    sh:datatype xsd:float ;
    sh:maxCount 1 ;
    rdfs:comment "The amount after the year's budget changes so far, in the same unit as the approved one."
  ] ;
  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."
  ] .
