# 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/BridgeShape>
  a sh:NodeShape ;
  sh:targetClass <https://joinedcontext.com/models/Bridge> ;
  sh:closed false ;
  sh:property [
    sh:path <http://schema.org/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 as the publisher writes it, in Slovak; a string, as every Smart Data Model's `name` is (T-4523)."
  ] ;
  sh:property [
    sh:path <https://joinedcontext.com/models/bridgeCode> ;
    sh:name "bridgeCode", "Číslo mostu"@cs, "Brückennummer"@de, "Bridge number"@en, "Číslo mosta"@sk ;
    sh:order 1 ;
    sh:group <https://smartdatamodels.org/SummaryGroup> ;
    sh:datatype xsd:string ;
    sh:minCount 1 ;
    sh:maxCount 1 ;
    rdfs:comment "The bridge's number in the national road databank (Cestná databanka), such as `M9673`."
  ] ;
  sh:property [
    sh:path <https://joinedcontext.com/models/roadClass> ;
    sh:name "roadClass", "Třída silnice"@cs, "Straßenklasse"@de, "Road class"@en, "Trieda cesty"@sk ;
    sh:order 2 ;
    sh:group <https://smartdatamodels.org/SummaryGroup> ;
    sh:in ( "firstClass" "local" "motorway" "secondClass" "service" "thirdClass" ) ;
    sh:maxCount 1 ;
    rdfs:comment "The class of the road the bridge carries."
  ] ;
  sh:property [
    sh:path <https://joinedcontext.com/models/roadNumber> ;
    sh:name "roadNumber", "Číslo silnice"@cs, "Straßennummer"@de, "Road number"@en, "Číslo cesty"@sk ;
    sh:order 3 ;
    sh:group <https://smartdatamodels.org/SummaryGroup> ;
    sh:datatype xsd:string ;
    sh:maxCount 1 ;
    rdfs:comment "The number of the road the bridge carries, such as `66b`."
  ] ;
  sh:property [
    sh:path <https://joinedcontext.com/models/yearBuilt> ;
    sh:name "yearBuilt", "Rok výstavby"@cs, "Baujahr"@de, "Year built"@en, "Rok výstavby"@sk ;
    sh:order 4 ;
    sh:group <https://smartdatamodels.org/DetailGroup> ;
    sh:datatype xsd:integer ;
    sh:maxCount 1 ;
    rdfs:comment "The year the bridge was built."
  ] ;
  sh:property [
    sh:path <https://joinedcontext.com/models/spanCount> ;
    sh:name "spanCount", "Počet polí"@cs, "Felderanzahl"@de, "Spans"@en, "Počet polí"@sk ;
    sh:order 5 ;
    sh:group <https://smartdatamodels.org/DetailGroup> ;
    sh:datatype xsd:integer ;
    sh:maxCount 1 ;
    rdfs:comment "How many openings the bridge has."
  ] ;
  sh:property [
    sh:path <https://joinedcontext.com/models/bridgedLength> ;
    sh:name "bridgedLength", "Délka přemostění"@cs, "Überbrückte Länge"@de, "Bridged length"@en, "Dĺžka premostenia"@sk ;
    sh:order 6 ;
    sh:group <https://smartdatamodels.org/DetailGroup> ;
    sh:datatype xsd:float ;
    sh:maxCount 1 ;
    rdfs:comment "The length of the bridged gap."
  ] ;
  sh:property [
    sh:path <https://joinedcontext.com/models/structureMaterial> ;
    sh:name "structureMaterial", "Materiál konstrukce"@cs, "Tragwerksmaterial"@de, "Structure material"@en, "Materiál konštrukcie"@sk ;
    sh:order 7 ;
    sh:group <https://smartdatamodels.org/DetailGroup> ;
    sh:datatype xsd:string ;
    sh:maxCount 1 ;
    rdfs:comment "The material of the load-bearing structure, in the databank's words."
  ] ;
  sh:property [
    sh:path <https://joinedcontext.com/models/structureKind> ;
    sh:name "structureKind", "Druh konstrukce"@cs, "Tragwerksart"@de, "Structure type"@en, "Druh konštrukcie"@sk ;
    sh:order 8 ;
    sh:group <https://smartdatamodels.org/DetailGroup> ;
    sh:datatype xsd:string ;
    sh:maxCount 1 ;
    rdfs:comment "The kind of load-bearing structure, in the databank's words, such as `dosková`."
  ] ;
  sh:property [
    sh:path <https://joinedcontext.com/models/heritageStatus> ;
    sh:name "heritageStatus", "Památková ochrana"@cs, "Denkmalschutz"@de, "Heritage status"@en, "Pamiatková ochrana"@sk ;
    sh:order 9 ;
    sh:group <https://smartdatamodels.org/DetailGroup> ;
    sh:in ( "cultural" "culturalAndTechnical" "notListed" ) ;
    sh:maxCount 1 ;
    rdfs:comment "Whether the bridge is a listed monument; absent where the databank does not say."
  ] ;
  sh:property [
    sh:path <https://joinedcontext.com/models/managerName> ;
    sh:name "managerName", "Správce"@cs, "Verwalter"@de, "Manager"@en, "Správca"@sk ;
    sh:order 10 ;
    sh:group <https://smartdatamodels.org/DetailGroup> ;
    sh:datatype xsd:string ;
    sh:maxCount 1 ;
    rdfs:comment "The road administration that manages the bridge."
  ] ;
  sh:property [
    sh:path <https://joinedcontext.com/models/districtName> ;
    sh:name "districtName", "Okres"@cs, "Bezirk"@de, "District"@en, "Okres"@sk ;
    sh:order 11 ;
    sh:group <https://smartdatamodels.org/DetailGroup> ;
    sh:datatype xsd:string ;
    sh:maxCount 1 ;
    rdfs:comment "The district the record lies in, by name, as the publisher writes it."
  ] ;
  sh:property [
    sh:path <https://smartdatamodels.org/dataProvider> ;
    sh:name "dataProvider", "Poskytovatel dat"@cs, "Datenanbieter"@de, "Data provider"@en, "Poskytovateľ údajov"@sk ;
    sh:order 12 ;
    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://smartdatamodels.org/source> ;
    sh:name "source", "Zdroj"@cs, "Quelle"@de, "Source"@en, "Zdroj"@sk ;
    sh:order 13 ;
    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://purl.org/geojson/vocab#geometry> ;
    sh:name "location" ;
    sh:order 14 ;
    sh:group <https://smartdatamodels.org/DetailGroup> ;
    sh:maxCount 1 ;
    rdfs:comment "Where the entity is, as GeoJSON geometry."
  ] .
