id: https://joinedcontext.com/models/bbsk/bbsk-registre/views/cx5p4ldnpyf2vzn6sjt4vjiykd3734t6
name: bbsk-registre
title: Registers of the Banská Bystrica region
description: "What the region's register space carries side by side (DM-01, DM-61): the outlines of its 13 districts and 516 municipalities, the organisations the region founded, the hospitals, the social services run by public bodies, and the bridges of the road network, each read from the region's own open-data portal (opendata.bbsk.sk). One model, one space, one public endpoint. Where Smart Data Models has the class, its IRI is cited rather than minted (DM-04, DM-16)."
license: https://joinedcontext.com/licenses/cc-by-4.0
prefixes:
  geojson: https://purl.org/geojson/vocab#
  jc: https://joinedcontext.com/models/
  schema: http://schema.org/
  sdm: https://smartdatamodels.org/
default_prefix: sdm
default_range: string
imports:
  - linkml:types
classes:
  AdministrativeArea:
    name: AdministrativeArea
    class_uri: https://uri.etsi.org/ngsi-ld/default-context/AdministrativeArea
    exact_mappings:
      - jc:AdministrativeArea
    slots:
      - location
      - name
      - areaCode
      - divisionLevel
      - refParentArea
      - surfaceArea
      - isPartOf
      - dataProvider
      - source
      - childAreas
      - publicOrganizations
    annotations:
      upstream_source: https://github.com/marek-mraz/joinedcontext-deployment/blob/main/scripts/open-data/sdm/extensions/AdministrativeArea
    description: One district (okres) or municipality (obec) of the region, its outline and its code, as the Smart Data Model extension AdministrativeArea (PointOfInterest base).
slots:
  areaCode:
    name: areaCode
    slot_uri: https://uri.etsi.org/ngsi-ld/default-context/areaCode
    exact_mappings:
      - jc:areaCode
    range: string
    required: true
    annotations:
      label:
        tag: label
        value:
          sk: Kód územia
          cs: Kód území
          en: Area code
          de: Gebietscode
      ngsi_ld_kind: Property
    description: "The area's statistical code: LAU 1 (`SK0321`) for a district, LAU 2 (`SK0321508438`) for a municipality, the same codes the Statistical Office's cubes carry in `refArea`."
  childAreas:
    name: childAreas
    slot_uri: https://uri.etsi.org/ngsi-ld/default-context/childAreas
    exact_mappings:
      - jc:childAreas
    range: AdministrativeArea
    multivalued: true
    inlined: false
    inverse: refParentArea
    annotations:
      label:
        tag: label
        value:
          sk: Obce
          cs: Obce
          en: Municipalities
          de: Gemeinden
      ngsi_ld_kind: Relationship
    description: The municipalities of a district, computed from their refParentArea and never stored.
  dataProvider:
    name: dataProvider
    slot_uri: https://uri.etsi.org/ngsi-ld/default-context/dataProvider
    exact_mappings:
      - sdm:dataProvider
    range: string
    annotations:
      label:
        tag: label
        value:
          sk: Poskytovateľ údajov
          cs: Poskytovatel dat
          en: Data provider
          de: Datenanbieter
      ngsi_ld_kind: Property
      upstream_source: https://github.com/smart-data-models/data-models
    description: Who publishes the data the entity was read from, with the credit its licence asks for, as an application shows it beside the data.
  divisionLevel:
    name: divisionLevel
    slot_uri: https://uri.etsi.org/ngsi-ld/default-context/divisionLevel
    exact_mappings:
      - jc:divisionLevel
    range: DivisionLevel
    required: true
    annotations:
      label:
        tag: label
        value:
          sk: Úroveň
          cs: Úroveň
          en: Level
          de: Ebene
      ngsi_ld_kind: Property
    description: Which tier of the territorial division the area is.
  isPartOf:
    name: isPartOf
    slot_uri: https://uri.etsi.org/ngsi-ld/default-context/isPartOf
    exact_mappings:
      - jc:isPartOf
    range: uri
    annotations:
      label:
        tag: label
        value:
          sk: Dataset
          cs: Datová sada
          en: Dataset
          de: Datensatz
      ngsi_ld_kind: Property
    description: The catalogue dataset the record belongs to, which tells the region's districts from its municipalities in one type.
  location:
    name: location
    slot_uri: https://uri.etsi.org/ngsi-ld/location
    exact_mappings:
      - geojson:geometry
    range: string
    annotations:
      ngsi_ld_kind: GeoProperty
      upstream_source: ETSI NGSI-LD core context v1.8
    description: Where the entity is, as GeoJSON geometry.
  name:
    name: name
    slot_uri: https://uri.etsi.org/ngsi-ld/default-context/name
    exact_mappings:
      - schema:name
    range: string
    annotations:
      label:
        tag: label
        value:
          sk: Názov
          cs: Název
          en: Name
          de: Name
      ngsi_ld_kind: Property
      upstream_source: https://schema.org/name
    description: "The name as the publisher writes it, in Slovak; a string, as every Smart Data Model's `name` is."
  publicOrganizations:
    name: publicOrganizations
    slot_uri: https://uri.etsi.org/ngsi-ld/default-context/publicOrganizations
    exact_mappings:
      - jc:publicOrganizations
    range: uriorcurie
    multivalued: true
    inlined: false
    annotations:
      label:
        tag: label
        value:
          sk: Organizácie kraja
          cs: Organizace kraje
          en: Regional bodies
          de: Einrichtungen der Region
      ngsi_ld_kind: Relationship
    description: The organisations the region founded in this municipality, computed from their refMunicipality and never stored.
  refParentArea:
    name: refParentArea
    slot_uri: https://uri.etsi.org/ngsi-ld/default-context/refParentArea
    exact_mappings:
      - jc:refParentArea
    range: AdministrativeArea
    inlined: false
    inverse: childAreas
    annotations:
      label:
        tag: label
        value:
          sk: Okres
          cs: Okres
          en: District
          de: Bezirk
      ngsi_ld_kind: Relationship
      on_delete: restrict
    description: The district a municipality lies in; absent on a district.
  source:
    name: source
    slot_uri: https://uri.etsi.org/ngsi-ld/default-context/source
    exact_mappings:
      - sdm:source
    range: uri
    annotations:
      label:
        tag: label
        value:
          sk: Zdroj
          cs: Zdroj
          en: Source
          de: Quelle
      ngsi_ld_kind: Property
      upstream_source: https://github.com/smart-data-models/data-models
    description: The open-data service the entity was read from.
  surfaceArea:
    name: surfaceArea
    slot_uri: https://uri.etsi.org/ngsi-ld/default-context/surfaceArea
    exact_mappings:
      - jc:surfaceArea
    range: float
    unit:
      ucum_code: m2
    annotations:
      label:
        tag: label
        value:
          sk: Výmera
          cs: Výměra
          en: Area
          de: Fläche
      ngsi_ld_kind: Property
    description: The area's surface as the cadastre states it.
enums:
  DivisionLevel:
    name: DivisionLevel
    permissible_values:
      district:
        text: district
        description: A district (okres), LAU 1.
        annotations:
          label:
            tag: label
            value:
              sk: okres
              cs: okres
              en: district
              de: Bezirk
      municipality:
        text: municipality
        description: A municipality or town (obec, mesto), LAU 2.
        annotations:
          label:
            tag: label
            value:
              sk: obec
              cs: obec
              en: municipality
              de: Gemeinde
