# 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://smartdatamodels.org/offeredBy> ;
    sh:name "offeredBy", "Pořadatel"@cs, "Veranstalter"@de, "Organizer"@en, "Organizátor"@sk ;
    sh:order 6 ;
    sh:group <https://smartdatamodels.org/SummaryGroup> ;
    sh:nodeKind sh:IRI ;
    sh:class <https://w3id.org/linkml/Any> ;
    sh:maxCount 1 ;
    rdfs:comment "Smart Data Models Event's organizer (offeredBy). Who runs the event: the museum, the school, the town or the named performer, never the feed or the aggregator that announced it (that is `dataProvider`). Its name and its web site only, never a person's e-mail or phone."
  ] ;
  sh:property [
    sh:path <https://schema.org/url> ;
    sh:name "url", "Odkaz"@cs, "Link"@de, "Link"@en, "Odkaz"@sk ;
    sh:order 7 ;
    sh:group <https://smartdatamodels.org/DetailGroup> ;
    sh:datatype xsd:anyURI ;
    sh:minCount 1 ;
    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/subCategory> ;
    sh:name "subCategory", "Podkategorie"@cs, "Unterkategorie"@de, "Sub-category"@en, "Podkategória"@sk ;
    sh:order 8 ;
    sh:group <https://smartdatamodels.org/DetailGroup> ;
    sh:in ( "archaeologicalSite" "architecture" "cabaret" "canoeing" "castle" "cathedral" "cave" "cemetery" "church" "climbing" "contemporaryArt" "ethnology" "fineArts" "hiking" "humor" "literature" "localProducts" "market" "massage" "memorial" "military" "mining" "monastery" "naturalScience" "painting" "popularArtsAndTraditions" "scienceAndTechnology" "sculpture" "skiing" "spa" "swimmingPool" "theater" "traditional" "warMemorials" "wine" "wineRoute" ) ;
    rdfs:comment "The Smart Data Models Event `subCategory` values under the event's categories (`theater`, `market`, `castle`), mapped like `category`; absent where none maps."
  ] ;
  sh:property [
    sh:path <https://smartdatamodels.org/audience> ;
    sh:name "audience", "Pro koho"@cs, "Zielgruppe"@de, "Audience"@en, "Pre koho"@sk ;
    sh:order 9 ;
    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`."
  ] ;
  sh:property [
    sh:path <https://smartdatamodels.org/refPointOfInterest> ;
    sh:name "refPointOfInterest", "Místo"@cs, "Ort"@de, "Place"@en, "Miesto"@sk ;
    sh:order 10 ;
    sh:group <https://smartdatamodels.org/DetailGroup> ;
    sh:datatype xsd:anyURI ;
    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 11 ;
    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 12 ;
    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/seeAlso> ;
    sh:name "seeAlso", "Další zdroje"@cs, "Weitere Quellen"@de, "Other sources"@en, "Ďalšie zdroje"@sk ;
    sh:order 13 ;
    sh:group <https://smartdatamodels.org/DetailGroup> ;
    sh:datatype xsd:anyURI ;
    rdfs:comment "The pages of the other sources that announce the same event (the aggregated dataset's dedupe); `url` is the primary page."
  ] ;
  sh:property [
    sh:path <https://smartdatamodels.org/eventStatus> ;
    sh:name "eventStatus", "Stav"@cs, "Status"@de, "Status"@en, "Stav"@sk ;
    sh:order 14 ;
    sh:group <https://smartdatamodels.org/DetailGroup> ;
    sh:in ( "cancelled" "closed" "finished" "opened" "postponed" "rescheduled" "scheduled" "suspended" ) ;
    rdfs:comment "Whether the event takes place as announced, in Smart Data Models Event `eventStatus` codes: `cancelled` or `postponed` when the source's title says so (zrušené, presunuté), `rescheduled` when the aggregated dataset saw its start move; absent while it is announced as planned."
  ] ;
  sh:property [
    sh:path <https://smartdatamodels.org/contentURL> ;
    sh:name "contentURL", "Obrázek"@cs, "Bild"@de, "Image"@en, "Obrázok"@sk ;
    sh:order 15 ;
    sh:group <https://smartdatamodels.org/DetailGroup> ;
    sh:datatype xsd:anyURI ;
    sh:maxCount 1 ;
    rdfs:comment "The URL of the event's official image or video at its source (Smart Data Models Event `contentURL`): an absolute https address on the event page's host, the source's host or a CDN the source declares; absent where the source has none."
  ] ;
  sh:property [
    sh:path <https://smartdatamodels.org/dataProvider> ;
    sh:name "dataProvider", "Poskytovatel"@cs, "Anbieter"@de, "Provider"@en, "Poskytovateľ"@sk ;
    sh:order 16 ;
    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 17 ;
    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://uri.etsi.org/ngsi-ld/default-context/isAccessibleForFree> ;
    sh:name "isAccessibleForFree", "Vstup zdarma"@cs, "Eintritt frei"@de, "Free entry"@en, "Vstup zdarma"@sk ;
    sh:order 18 ;
    sh:group <https://smartdatamodels.org/DetailGroup> ;
    sh:datatype xsd:boolean ;
    sh:maxCount 1 ;
    rdfs:comment "A flag to signal that the item, event, or place is accessible for free."
  ] ;
  sh:property [
    sh:path <https://uri.etsi.org/ngsi-ld/default-context/eventPriceFrom> ;
    sh:name "eventPriceFrom", "Cena od"@cs, "Preis ab"@de, "Price from"@en, "Cena od"@sk ;
    sh:order 19 ;
    sh:group <https://smartdatamodels.org/DetailGroup> ;
    sh:datatype xsd:float ;
    sh:maxCount 1 ;
    rdfs:comment "Min Price. The unit code (text) of measurement is given using the [UN/CEFACT Common Codes](http://wiki.goodrelations-vocabulary.org/Documentation/UN/CEFACT_Common_Codes). For instance, **EUR** represents **€uro**"
  ] ;
  sh:property [
    sh:path <https://uri.etsi.org/ngsi-ld/default-context/eventPriceTo> ;
    sh:name "eventPriceTo", "Cena do"@cs, "Preis bis"@de, "Price to"@en, "Cena do"@sk ;
    sh:order 20 ;
    sh:group <https://smartdatamodels.org/DetailGroup> ;
    sh:datatype xsd:float ;
    sh:maxCount 1 ;
    rdfs:comment "Max Price. The unit code (text) of measurement is given using the [UN/CEFACT Common Codes](http://wiki.goodrelations-vocabulary.org/Documentation/UN/CEFACT_Common_Codes). For instance, **EUR** represents **€uro**"
  ] ;
  sh:property [
    sh:path <http://purl.org/dc/terms/title> ;
    sh:name "title", "Titul"@cs, "Titel"@de, "Title"@en, "Titul"@sk ;
    sh:order 21 ;
    sh:group <https://smartdatamodels.org/DetailGroup> ;
    sh:datatype xsd:string ;
    sh:maxCount 1 ;
    rdfs:comment "Title of the Event"
  ] ;
  sh:property [
    sh:path <https://uri.etsi.org/ngsi-ld/default-context/director> ;
    sh:name "director", "Režie"@cs, "Regie"@de, "Director"@en, "Réžia"@sk ;
    sh:order 22 ;
    sh:group <https://smartdatamodels.org/DetailGroup> ;
    sh:datatype xsd:string ;
    rdfs:comment "List of director who manage the composition"
  ] ;
  sh:property [
    sh:path <https://uri.etsi.org/ngsi-ld/default-context/publicAccess> ;
    sh:name "publicAccess", "Veřejně přístupné"@cs, "Öffentlich zugänglich"@de, "Open to the public"@en, "Verejne prístupné"@sk ;
    sh:order 23 ;
    sh:group <https://smartdatamodels.org/DetailGroup> ;
    sh:datatype xsd:boolean ;
    sh:maxCount 1 ;
    rdfs:comment "A flag to signal that the Place is open to public visitors. If this property is omitted there is no assumed default boolean value"
  ] ;
  sh:property [
    sh:path <https://smartdatamodels.org/dateModified> ;
    sh:name "dateModified", "Změněno"@cs, "Geändert"@de, "Modified"@en, "Zmenené"@sk ;
    sh:order 24 ;
    sh:group <https://smartdatamodels.org/DetailGroup> ;
    sh:datatype xsd:dateTime ;
    sh:maxCount 1 ;
    rdfs:comment "When the source last changed the record."
  ] .
