"id": "https://joinedcontext.com/models/barcelona/barcelona/views/73jd7qdgjysvov6xfhwpmnwgwomjg4fi"
"name": "barcelona"
"imports":
  - "linkml:types"
"default_range": "string"
"prefixes":
  "sdm":
    "prefix_prefix": "sdm"
    "prefix_reference": "https://smartdatamodels.org/"
"default_prefix": "sdm"
"classes":
  "TrafficFlowObserved":
    "name": "TrafficFlowObserved"
    "class_uri": "https://uri.etsi.org/ngsi-ld/default-context/TrafficFlowObserved"
    "slots":
      - "location"
      - "name"
      - "dateObserved"
      - "congested"
      - "trafficState"
      - "trafficStateForecast"
      - "travelTime"
      - "usualTravelTime"
      - "source"
    "annotations":
      "upstream_source":
        "tag": "upstream_source"
        "value": "https://github.com/smart-data-models/dataModel.Transportation"
    "description": "One street section of the city's traffic-state network with its line, its state now and the state forecast for 15 minutes, every five minutes (Open Data BCN trams and transit-relacio-trams)."
"slots":
  "congested":
    "name": "congested"
    "slot_uri": "https://uri.etsi.org/ngsi-ld/default-context/congested"
    "range": "boolean"
    "annotations":
      "label":
        "tag": "label"
        "value": "{\"sk\": \"Z\\u00e1pcha\", \"cs\": \"Z\\u00e1cpa\", \"en\": \"Congested\", \"de\": \"Stau\"}"
      "ngsi_ld_kind":
        "tag": "ngsi_ld_kind"
        "value": "Property"
      "upstream_source":
        "tag": "upstream_source"
        "value": "https://github.com/smart-data-models/dataModel.Transportation"
    "description": "Whether the section is congested now: true for the city's states 4 (very dense) and 5 (congestion), false otherwise, as SDM reads an absent flag (no data and closed included; trafficState tells those apart)."
  "dateObserved":
    "name": "dateObserved"
    "slot_uri": "https://uri.etsi.org/ngsi-ld/default-context/dateObserved"
    "range": "datetime"
    "required": true
    "annotations":
      "label":
        "tag": "label"
        "value": "{\"sk\": \"\\u010cas merania\", \"cs\": \"\\u010cas m\\u011b\\u0159en\\u00ed\", \"en\": \"Observed at\", \"de\": \"Messzeitpunkt\"}"
      "ngsi_ld_kind":
        "tag": "ngsi_ld_kind"
        "value": "Property"
      "upstream_source":
        "tag": "upstream_source"
        "value": "https://github.com/smart-data-models/dataModel.Environment"
    "description": "The end of the period the entity's newest readings cover, UTC: the hour of an air-quality mean, the local day of a weather station's values, the day of a well's reading, a traffic state's report, a charging point's newest port change."
  "location":
    "name": "location"
    "slot_uri": "https://uri.etsi.org/ngsi-ld/location"
    "range": "string"
    "annotations":
      "ngsi_ld_kind":
        "tag": "ngsi_ld_kind"
        "value": "GeoProperty"
      "upstream_source":
        "tag": "upstream_source"
        "value": "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"
    "range": "string"
    "annotations":
      "label":
        "tag": "label"
        "value": "{\"sk\": \"N\\u00e1zov\", \"cs\": \"N\\u00e1zev\", \"en\": \"Name\", \"de\": \"Name\"}"
      "ngsi_ld_kind":
        "tag": "ngsi_ld_kind"
        "value": "Property"
      "upstream_source":
        "tag": "upstream_source"
        "value": "https://schema.org/name"
    "description": "The name as the city publishes it, in Catalan (a station, an event, a facility, a street section and its stretch, a street address, a district or barri, a work)."
  "source":
    "name": "source"
    "slot_uri": "https://uri.etsi.org/ngsi-ld/default-context/source"
    "range": "uri"
    "annotations":
      "label":
        "tag": "label"
        "value": "{\"sk\": \"Zdroj\", \"cs\": \"Zdroj\", \"en\": \"Source\", \"de\": \"Quelle\"}"
      "ngsi_ld_kind":
        "tag": "ngsi_ld_kind"
        "value": "Property"
      "upstream_source":
        "tag": "upstream_source"
        "value": "https://github.com/smart-data-models/data-models"
    "description": "The open-data file or the Open Data BCN dataset the entity was read from."
  "trafficState":
    "name": "trafficState"
    "slot_uri": "https://uri.etsi.org/ngsi-ld/default-context/trafficState"
    "range": "TrafficState"
    "annotations":
      "label":
        "tag": "label"
        "value": "{\"sk\": \"Stav dopravy\", \"cs\": \"Stav dopravy\", \"en\": \"Traffic state\", \"de\": \"Verkehrslage\"}"
      "ngsi_ld_kind":
        "tag": "ngsi_ld_kind"
        "value": "Property"
    "description": "The city's own traffic state of the section (custom: TrafficFlowObserved has only `congested`), its code 1 to 6 named in English; Open Data BCN dataset trams."
  "trafficStateForecast":
    "name": "trafficStateForecast"
    "slot_uri": "https://uri.etsi.org/ngsi-ld/default-context/trafficStateForecast"
    "range": "TrafficState"
    "annotations":
      "label":
        "tag": "label"
        "value": "{\"sk\": \"Predpove\\u010f stavu dopravy\", \"cs\": \"P\\u0159edpov\\u011b\\u010f stavu dopravy\", \"en\": \"Traffic state forecast\", \"de\": \"Verkehrslageprognose\"}"
      "ngsi_ld_kind":
        "tag": "ngsi_ld_kind"
        "value": "Property"
    "description": "The state the city forecasts for the section in 15 minutes, same codes as trafficState (custom)."
  "travelTime":
    "name": "travelTime"
    "slot_uri": "https://uri.etsi.org/ngsi-ld/default-context/travelTime"
    "range": "integer"
    "unit":
      "ucum_code": "s"
    "annotations":
      "label":
        "tag": "label"
        "value": "{\"sk\": \"\\u010cas jazdy (s)\", \"cs\": \"Doba j\\u00edzdy (s)\", \"en\": \"Travel time (s)\", \"de\": \"Fahrzeit (s)\"}"
      "ngsi_ld_kind":
        "tag": "ngsi_ld_kind"
        "value": "Property"
    "description": "How long a vehicle takes now to drive the route, in seconds (custom: TrafficFlowObserved has no travel time); Open Data BCN dataset itineraris, its fourth field. Absent while the city reports no reading for the route."
  "usualTravelTime":
    "name": "usualTravelTime"
    "slot_uri": "https://uri.etsi.org/ngsi-ld/default-context/usualTravelTime"
    "range": "integer"
    "unit":
      "ucum_code": "s"
    "annotations":
      "label":
        "tag": "label"
        "value": "{\"sk\": \"Be\\u017en\\u00fd \\u010das jazdy (s)\", \"cs\": \"Obvykl\\u00e1 doba j\\u00edzdy (s)\", \"en\": \"Usual travel time (s)\", \"de\": \"\\u00dcbliche Fahrzeit (s)\"}"
      "ngsi_ld_kind":
        "tag": "ngsi_ld_kind"
        "value": "Property"
    "description": "The time the city expects for the route now from its history of the same kind of day, in seconds (custom; itineraris, its fifth field, temps previst). travelTime above it means slower traffic than usual."
"enums":
  "TrafficState":
    "name": "TrafficState"
    "description": "Open Data BCN's traffic state codes 0 to 6, named in English, the Catalan name in each description."
    "permissible_values":
      "closed":
        "text": "closed"
        "description": "6 tallat."
      "congestion":
        "text": "congestion"
        "description": "5 congestió."
      "dense":
        "text": "dense"
        "description": "3 dens."
      "fluid":
        "text": "fluid"
        "description": "2 fluid."
      "noData":
        "text": "noData"
        "description": "0 sense dades: no reading this period."
      "veryDense":
        "text": "veryDense"
        "description": "4 molt dens."
      "veryFluid":
        "text": "veryFluid"
        "description": "1 molt fluid."
