# 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://joinedcontext.com/models/SummaryGroup>
  a sh:PropertyGroup ;
  sh:order 0 ;
  rdfs:label "Základné"@sk, "Summary"@en .

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

<https://joinedcontext.com/models/ProposalStatisticShape>
  a sh:NodeShape ;
  sh:targetClass <https://uri.etsi.org/ngsi-ld/default-context/ProposalStatistic> ;
  sh:closed false ;
  sh:property [
    sh:path <https://schema.org/name> ;
    sh:name "name", "Název"@cs, "Name"@de, "Name"@en, "Názov"@sk ;
    sh:order 0 ;
    sh:group <https://joinedcontext.com/models/SummaryGroup> ;
    sh:datatype xsd:string ;
    sh:minCount 1 ;
    sh:maxCount 1 ;
    rdfs:comment "The title as the platform shows it, in the instance's language."
  ] ;
  sh:property [
    sh:path <https://joinedcontext.com/models/processName> ;
    sh:name "processName", "Proces"@cs, "Prozess"@de, "Process"@en, "Proces"@sk ;
    sh:order 1 ;
    sh:group <https://joinedcontext.com/models/SummaryGroup> ;
    sh:datatype xsd:string ;
    sh:minCount 1 ;
    sh:maxCount 1 ;
    rdfs:comment "The title of the process the figure counts, as the platform shows it."
  ] ;
  sh:property [
    sh:path <https://joinedcontext.com/models/stateLabel> ;
    sh:name "stateLabel", "Stav na stránce"@cs, "Angezeigter Status"@de, "State shown"@en, "Stav na stránke"@sk ;
    sh:order 2 ;
    sh:group <https://joinedcontext.com/models/SummaryGroup> ;
    sh:datatype xsd:string ;
    sh:maxCount 1 ;
    rdfs:comment "The state as the page shows it, `Postupuje do hlasovania`."
  ] ;
  sh:property [
    sh:path <https://joinedcontext.com/models/proposalCount> ;
    sh:name "proposalCount", "Počet návrhů"@cs, "Vorschläge"@de, "Proposals"@en, "Počet návrhov"@sk ;
    sh:order 3 ;
    sh:group <https://joinedcontext.com/models/SummaryGroup> ;
    sh:datatype xsd:integer ;
    sh:minCount 1 ;
    sh:maxCount 1 ;
    rdfs:comment "How many proposals of the process are in this state."
  ] ;
  sh:property [
    sh:path <https://uri.etsi.org/ngsi-ld/default-context/proposalState> ;
    sh:name "proposalState", "Stav návrhu"@cs, "Status des Vorschlags"@de, "Proposal state"@en, "Stav návrhu"@sk ;
    sh:order 4 ;
    sh:group <https://joinedcontext.com/models/DetailGroup> ;
    sh:datatype xsd:string ;
    sh:maxCount 1 ;
    rdfs:comment "The town's answer as Decidim's state token: `not_answered`, `evaluating`, `accepted`, `rejected`, `withdrawn`, or a token the instance defined itself. Empty when only the page was readable; `stateLabel` then holds what the page shows."
  ] ;
  sh:property [
    sh:path <https://joinedcontext.com/models/refParticipatoryProcess> ;
    sh:name "refParticipatoryProcess", "Participativní proces"@cs, "Beteiligungsprozess"@de, "Participatory process"@en, "Participatívny proces"@sk ;
    sh:order 5 ;
    sh:group <https://joinedcontext.com/models/DetailGroup> ;
    sh:datatype xsd:anyURI ;
    sh:minCount 1 ;
    sh:maxCount 1 ;
    rdfs:comment "The ParticipatoryProcess of this space the record belongs to, its URN."
  ] ;
  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 6 ;
    sh:group <https://joinedcontext.com/models/DetailGroup> ;
    sh:datatype xsd:anyURI ;
    sh:maxCount 1 ;
    rdfs:comment "The participation platform the record was read from, its base URL."
  ] ;
  sh:property [
    sh:path <https://uri.etsi.org/ngsi-ld/default-context/dataProvider> ;
    sh:name "dataProvider", "Poskytovatel"@cs, "Anbieter"@de, "Provider"@en, "Poskytovateľ"@sk ;
    sh:order 7 ;
    sh:group <https://joinedcontext.com/models/DetailGroup> ;
    sh:datatype xsd:string ;
    sh:maxCount 1 ;
    rdfs:comment "The town or body that runs the participation platform."
  ] ;
  sh:property [
    sh:path <https://uri.etsi.org/ngsi-ld/location> ;
    sh:name "location" ;
    sh:order 8 ;
    sh:group <https://joinedcontext.com/models/DetailGroup> ;
    sh:maxCount 1 ;
    rdfs:comment "Where the entity is, as GeoJSON geometry."
  ] ;
  sh:property [
    sh:path <https://uri.etsi.org/ngsi-ld/default-context/dateModified> ;
    sh:name "dateModified", "Změněno"@cs, "Geändert"@de, "Modified"@en, "Zmenené"@sk ;
    sh:order 9 ;
    sh:group <https://joinedcontext.com/models/DetailGroup> ;
    sh:datatype xsd:dateTime ;
    sh:maxCount 1 ;
    rdfs:comment "When the platform last changed the record."
  ] .
