oeg-upm / gtfs-bench

GTFS-Madrid-Bench: A Benchmark for Knowledge Graph Construction Engines
https://doi.org/10.5281/zenodo.3574492
Apache License 2.0
17 stars 12 forks source link

Change mappings for shapes GTFS file #96

Closed marioscrock closed 3 years ago

marioscrock commented 4 years ago

Mapping for shapes GTFS file can be improved generating for each unique shape_id a gtfs:Shape and several gtfs:ShapePoint for related rows.

dachafra commented 4 years ago

the mapping in YARRRML

shapes:
    sources:
      - [/home/magarcia/nextcloud/MV/grecia/shapes.txt~csv]
    s: http://transport.linkeddata.es/greece/shape/$(shape_id)
    po:
      - [a, gtfs:Shape]
      - [gtfs:shapePoint, http://transport.linkeddata.es/greece/shape_point/$(shape_id)-$(shape_pt_sequence)]
  shape_point:
    sources:
      - [/home/magarcia/nextcloud/MV/grecia/shapes.txt~csv]
    s: http://transport.linkeddata.es/greece/shape_point/$(shape_id)-$(shape_pt_sequence)
    po:
      - [a, gtfs:ShapePoint]
      - [geo:lat,$(shape_pt_lat),xsd:double]
      - [geo:long,$(shape_pt_lon),xsd:double]
      - [gtfs:pointSequence,$(shape_pt_sequence)]
      - [gtfs:distanceTraveled,$(shape_dist_traveled)]
dachafra commented 3 years ago

solved for all the mappings. @daniel-dona could you please check if these changes affects the generator?

dachafra commented 3 years ago

queries have been also modified accordingly to the current version of the mappings. Affected queries: 1 and 9