Skip to content

Add mapping: 100075#30

Open
osaeedi wants to merge 3 commits into
mainfrom
mapping/100075
Open

Add mapping: 100075#30
osaeedi wants to merge 3 commits into
mainfrom
mapping/100075

Conversation

@osaeedi

@osaeedi osaeedi commented May 28, 2026

Copy link
Copy Markdown
Collaborator

RML Mapping: Fahrgastzahlen BVB

Die Daten umfassen die wöchentlichen Fahrgastzahlen der Basler Verkehrsbetriebe (BVB) von 2020 bis 2023. Ab 2024 werden monatliche Werte erfasst. Sie beruhen auf Messungen mit dem automatischen Fahrga...

Source Information

  • CSV Source: (not provided)
  • Context/Metadata Files: dcat.ttl, fields.json
  • Base URI: https://ld.bs.ch/

Mapping Structure

  • The following columns were mapped as dimensions:
    • startdatum_kalenderwoche_monat (temporal), as it defines the start date of each observation period (week or month).
    • kalenderwoche (categorical), reflecting weekly granularity where applicable.
    • granularitat (categorical), to indicate whether data is weekly or monthly.
    • A derived spatial dimension (RAUM), set to the dataset's context value "Basel-Stadt".
  • The measure column is fahrgaste_einsteiger_innen, representing the observed passenger count for each time period.
  • The column datum_der_monatswerte was dropped as it is redundant with startdatum_kalenderwoche_monat and not needed for cube structure.
  • Code (DefinedTerm) resources are generated for each key dimension to enable consistent dimension value representation.
  • No explicit hierarchies or aggregation levels were created beyond the week/month temporal granularity.

Dimensions:

  • startdatum_kalenderwoche_monat (temporal) - granularity: week_or_month
  • kalenderwoche (categorical)
  • granularitat (categorical)
  • RAUM (spatial)

Measures:

  • fahrgaste_einsteiger_innen (Fahrgäste)

CSV Preview

startdatum_kalenderwoche_monat fahrgaste_einsteiger_innen kalenderwoche granularitat datum_der_monatswerte
2020-02-10 2538000.0 7 Woche None
2020-03-16 822000.0 12 Woche None
2020-04-06 588000.0 15 Woche None
2020-04-13 613000.0 16 Woche None
2020-04-20 699000.0 17 Woche None
2020-05-04 915000.0 19 Woche None
2020-05-11 1232000.0 20 Woche None
2020-06-22 1722000.0 26 Woche None
2020-06-29 1628000.0 27 Woche None
2020-07-20 1421000.0 30 Woche None
2020-08-03 1584000.0 32 Woche None
2020-09-28 1654000.0 40 Woche None
2020-11-02 1596000.0 45 Woche None
2020-12-28 1008000.0 53 Woche None
2021-01-18 1334000.0 3 Woche None
2021-02-01 1363000.0 5 Woche None
2021-02-22 1277000.0 8 Woche None
2021-03-08 1536000.0 10 Woche None
2021-04-05 1322000.0 14 Woche None
2021-04-26 1573000.0 17 Woche None

RDF Preview

@prefix : <http://mapping.example.com/> .
@prefix csvw: <http://www.w3.org/ns/csvw#> .
@prefix cube: <https://cube.link/> .
@prefix d2rq: <http://www.wiwiss.fu-berlin.de/suhl/bizer/D2RQ/0.1#> .
@prefix dc: <http://purl.org/dc/terms/> .
@prefix ex: <https://ld.bs.ch/100075/> .
@prefix ex-code: <https://ld.bs.ch/code/> .
@prefix ex-obs: <https://ld.bs.ch/100075/observation/> .
@prefix ex-property: <https://ld.bs.ch/property/> .
@prefix fnml: <http://semweb.mmlab.be/ns/fnml#> .
@prefix fno: <https://w3id.org/function/ontology#> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix rml: <http://w3id.org/rml/> .
@prefix schema: <http://schema.org/> .
@prefix void: <http://rdfs.org/ns/void#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

ex:observation-set cube:observation ex-obs:2020-02-10_7_Woche, ex-obs:2020-03-16_12_Woche,
    ex-obs:2020-04-06_15_Woche .

ex-obs:2020-02-10_7_Woche a cube:Observation;
  ex-property:RAUM ex-code:BS;
  ex-property:ZEIT "2020-02-10"^^xsd:date;
  ex-property:fahrgaste_einsteiger_innen 2538000.0;
  ex-property:granularitat "Woche";
  ex-property:kalenderwoche 7 .

ex-obs:2020-03-16_12_Woche a cube:Observation;
  ex-property:RAUM ex-code:BS;
  ex-property:ZEIT "2020-03-16"^^xsd:date;
  ex-property:fahrgaste_einsteiger_innen 822000.0;
  ex-property:granularitat "Woche";
  ex-property:kalenderwoche 12 .

ex-obs:2020-04-06_15_Woche a cube:Observation;
  ex-property:RAUM ex-code:BS;
  ex-property:ZEIT "2020-04-06"^^xsd:date;
  ex-property:fahrgaste_einsteiger_innen 588000.0;
  ex-property:granularitat "Woche";
  ex-property:kalenderwoche 15 .

ex-code:12 a schema:DefinedTerm;
  schema:name "12" .

ex-code:15 a schema:DefinedTerm;
  schema:name "15" .

ex-code:7 a schema:DefinedTerm;
  schema:name "7" .

ex-code:BS a schema:DefinedTerm;
  schema:name "Basel-Stadt" .

ex-code:Woche a schema:DefinedTerm;
  schema:name "Woche
... (truncated)

Generated by OGD to LOD

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant