# 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/AnyShape>
  a sh:NodeShape ;
  sh:targetClass <https://w3id.org/linkml/Any> ;
  sh:closed false .

<https://smartdatamodels.org/EventShape>
  a sh:NodeShape ;
  sh:targetClass <https://uri.etsi.org/ngsi-ld/default-context/Event> ;
  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://smartdatamodels.org/SummaryGroup> ;
    sh:datatype xsd:string ;
    sh:minCount 1 ;
    sh:maxCount 1 ;
    rdfs:comment "The title of the event as the source writes it, in Slovak."
  ] ;
  sh:property [
    sh:path <https://schema.org/startDate> ;
    sh:name "startDate", "Začátek"@cs, "Beginn"@de, "Start"@en, "Začiatok"@sk ;
    sh:order 1 ;
    sh:group <https://smartdatamodels.org/SummaryGroup> ;
    sh:datatype xsd:dateTime ;
    sh:minCount 1 ;
    sh:maxCount 1 ;
    rdfs:comment "When the event starts: one RFC 3339 date-time with its offset (`2026-11-14T19:00:00+01:00`, Europe/Bratislava as the source publishes it); an event that lasts whole days starts at its first day's local midnight (`2026-11-14T00:00:00+01:00`), as SDM Event 0.2.2 asks (format date-time)."
  ] ;
  sh:property [
    sh:path <https://schema.org/endDate> ;
    sh:name "endDate", "Konec"@cs, "Ende"@de, "End"@en, "Koniec"@sk ;
    sh:order 2 ;
    sh:group <https://smartdatamodels.org/DetailGroup> ;
    sh:datatype xsd:dateTime ;
    sh:maxCount 1 ;
    rdfs:comment "When the event ends, written as `startDate`; a whole-day event ends at 23:59:59 local time of its last day (`2026-11-16T23:59:59+01:00`). Absent when the source gives no end: the calendar then shows the start alone."
  ] ;
  sh:property [
    sh:path <https://purl.org/geojson/vocab#geometry> ;
    sh:name "location", "Poloha"@cs, "Standort"@de, "Location"@en, "Poloha"@sk ;
    sh:order 3 ;
    sh:group <https://smartdatamodels.org/DetailGroup> ;
    sh:maxCount 1 ;
    rdfs:comment "Where the event takes place, a GeoJSON Point in WGS 84 inside Slovakia (longitude 16.8 to 22.6, latitude 47.7 to 49.7): the source's own point, the venue's building, else the organizer's or the town's office or the town's centre (owner 2026-10-21: at least 90 % of events with a point)."
  ] ;
  sh:property [
    sh:path <https://schema.org/address> ;
    sh:name "address", "Adresa"@cs, "Adresse"@de, "Address"@en, "Adresa"@sk ;
    sh:order 4 ;
    sh:group <https://smartdatamodels.org/DetailGroup> ;
    sh:nodeKind sh:IRI ;
    sh:class <https://w3id.org/linkml/Any> ;
    sh:maxCount 1 ;
    rdfs:comment "The postal address of the venue, field by field (Smart Data Models' common PostalAddress); `addressLocality` is the town a calendar filters on. A field the source leaves out is absent, never guessed."
  ] ;
  sh:property [
    sh:path <https://smartdatamodels.org/category> ;
    sh:name "category", "Kategorie"@cs, "Kategorie"@de, "Category"@en, "Kategória"@sk ;
    sh:order 5 ;
    sh:group <https://smartdatamodels.org/SummaryGroup> ;
    sh:in ( "excursion" "gastronomy" "history" "museum" "outdoorActivities" "parksAndGardens" "religiousWorship" "shopping" "spectacle" "wellness" ) ;
    rdfs:comment "What kind of event it is, as Smart Data Models' Event `category` values (`spectacle`, `museum`); an event may have several. The pipeline maps the source's own word, the name or the kind of body that announced it through seeds/event-categories.json (docs API/12-event-categories.md); absent where none maps."
  ] ;
  sh:property [
    sh:path <https://schema.org/url> ;
    sh:name "url", "Odkaz"@cs, "Link"@de, "Link"@en, "Odkaz"@sk ;
    sh:order 6 ;
    sh:group <https://smartdatamodels.org/DetailGroup> ;
    sh:datatype xsd:anyURI ;
    sh:maxCount 1 ;
    rdfs:comment "An http(s) link a person opens: the page of the event at its source, where they read more or buy a ticket, else the organizer's page that lists its events."
  ] ;
  sh:property [
    sh:path <https://smartdatamodels.org/audience> ;
    sh:name "audience", "Pro koho"@cs, "Zielgruppe"@de, "Audience"@en, "Pre koho"@sk ;
    sh:order 7 ;
    sh:group <https://smartdatamodels.org/DetailGroup> ;
    sh:in ( "adult" "allPublic" "children" "family" "senior" "teenager" ) ;
    rdfs:comment "Who the event is for, in Smart Data Models' Event codes; set when the source's word or the name marks a children's or family event, `children` when the source or the name says children, else `family`; in the joinedcontext store a cheap model's answer at a confidence of at least 0.9 fills it where no rule does."
  ] ;
  sh:property [
    sh:path <https://smartdatamodels.org/refPointOfInterest> ;
    sh:name "refPointOfInterest", "Místo"@cs, "Ort"@de, "Place"@en, "Miesto"@sk ;
    sh:order 8 ;
    sh:group <https://smartdatamodels.org/DetailGroup> ;
    sh:nodeKind sh:IRI ;
    sh:class <https://uri.etsi.org/ngsi-ld/default-context/PointOfInterest> ;
    rdfs:comment "The venue as a PointOfInterest of this space, when the venue table placed the event; every event held there links the same one (DM-141). A list of ids, as Smart Data Models Event types it."
  ] ;
  sh:property [
    sh:path <https://smartdatamodels.org/areaServed> ;
    sh:name "areaServed", "Obec"@cs, "Gemeinde"@de, "Municipality"@en, "Obec"@sk ;
    sh:order 9 ;
    sh:group <https://smartdatamodels.org/DetailGroup> ;
    sh:datatype xsd:string ;
    sh:maxCount 1 ;
    rdfs:comment "The municipality the event or the venue belongs to, by its official name (`Detva`, `Košice`): the key a count or a filter per town reads, on every event (DM-141)."
  ] ;
  sh:property [
    sh:path <https://schema.org/description> ;
    sh:name "description", "Popis"@cs, "Beschreibung"@de, "Description"@en, "Popis"@sk ;
    sh:order 10 ;
    sh:group <https://smartdatamodels.org/DetailGroup> ;
    sh:datatype xsd:string ;
    sh:maxCount 1 ;
    rdfs:comment "What the source says about the event, as plain text without markup."
  ] ;
  sh:property [
    sh:path <https://smartdatamodels.org/dataProvider> ;
    sh:name "dataProvider", "Poskytovatel"@cs, "Anbieter"@de, "Provider"@en, "Poskytovateľ"@sk ;
    sh:order 11 ;
    sh:group <https://smartdatamodels.org/DetailGroup> ;
    sh:datatype xsd:string ;
    sh:maxCount 1 ;
    rdfs:comment "Who announced the event (the town, the region, the cultural body), as the credit names it."
  ] ;
  sh:property [
    sh:path <https://smartdatamodels.org/source> ;
    sh:name "source", "Zdroj"@cs, "Quelle"@de, "Source"@en, "Zdroj"@sk ;
    sh:order 12 ;
    sh:group <https://smartdatamodels.org/DetailGroup> ;
    sh:datatype xsd:anyURI ;
    sh:maxCount 1 ;
    rdfs:comment "The feed or the page the pipeline read the event from."
  ] ;
  sh:property [
    sh:path <https://smartdatamodels.org/dateModified> ;
    sh:name "dateModified", "Změněno"@cs, "Geändert"@de, "Modified"@en, "Zmenené"@sk ;
    sh:order 13 ;
    sh:group <https://smartdatamodels.org/DetailGroup> ;
    sh:datatype xsd:dateTime ;
    sh:maxCount 1 ;
    rdfs:comment "When the source last changed the record."
  ] .

<https://smartdatamodels.org/PointOfInterestShape>
  a sh:NodeShape ;
  sh:targetClass <https://uri.etsi.org/ngsi-ld/default-context/PointOfInterest> ;
  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://smartdatamodels.org/SummaryGroup> ;
    sh:datatype xsd:string ;
    sh:minCount 1 ;
    sh:maxCount 1 ;
    rdfs:comment "The venue's name (`Dom kultúry A. Sládkoviča`)."
  ] ;
  sh:property [
    sh:path <https://uri.etsi.org/ngsi-ld/default-context/address> ;
    sh:name "address", "Adresa"@cs, "Adresse"@de, "Address"@en, "Adresa"@sk ;
    sh:order 1 ;
    sh:group <https://smartdatamodels.org/SummaryGroup> ;
    sh:nodeKind sh:IRI ;
    sh:class <https://w3id.org/linkml/Any> ;
    sh:maxCount 1 ;
    rdfs:comment "The mailing address"
  ] ;
  sh:property [
    sh:path <https://uri.etsi.org/ngsi-ld/default-context/areaServed> ;
    sh:name "areaServed", "Obec"@cs, "Gemeinde"@de, "Municipality"@en, "Obec"@sk ;
    sh:order 2 ;
    sh:group <https://smartdatamodels.org/SummaryGroup> ;
    sh:datatype xsd:string ;
    sh:maxCount 1 ;
    rdfs:comment "The geographic area where a service or offered item is provided"
  ] ;
  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 3 ;
    sh:group <https://smartdatamodels.org/SummaryGroup> ;
    sh:datatype xsd:string ;
    sh:maxCount 1 ;
    rdfs:comment "A sequence of characters giving the original source of the entity data as a URL. Recommended to be the fully qualified domain name of the source provider, or the URL to the source object"
  ] ;
  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 4 ;
    sh:group <https://smartdatamodels.org/DetailGroup> ;
    sh:datatype xsd:string ;
    sh:maxCount 1 ;
    rdfs:comment "A sequence of characters identifying the provider of the harmonised data entity"
  ] ;
  sh:property [
    sh:path <https://uri.etsi.org/ngsi-ld/default-context/venueEvents> ;
    sh:name "venueEvents", "Akce"@cs, "Veranstaltungen"@de, "Events"@en, "Podujatia"@sk ;
    sh:order 5 ;
    sh:group <https://smartdatamodels.org/DetailGroup> ;
    sh:nodeKind sh:IRI ;
    sh:class <https://uri.etsi.org/ngsi-ld/default-context/Event> ;
    rdfs:comment "The events held at this venue, computed from their refPointOfInterest and never stored."
  ] ;
  sh:property [
    sh:path <https://purl.org/geojson/vocab#geometry> ;
    sh:name "location", "Poloha"@cs, "Standort"@de, "Location"@en, "Poloha"@sk ;
    sh:order 6 ;
    sh:group <https://smartdatamodels.org/DetailGroup> ;
    sh:maxCount 1 ;
    rdfs:comment "The venue's building as a GeoJSON Point in WGS 84 inside Slovakia."
  ] .
