Skip to content

Commit cac3504

Browse files
author
Pieter Colpaert
committed
Fix #13
1 parent 9397a14 commit cac3504

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/transformers/StopTimesTransformer.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ StopTimesTransformer.prototype._transform = function (data, encoding, done) {
1818
this.push({ subject: subject, predicate: "http://vocab.gtfs.org/terms#stop", object: this._feedbaseuri + "/stops/" + data["stop_id"]});
1919
this.push({ subject: subject, predicate: "http://vocab.gtfs.org/terms#trip", object: this._feedbaseuri + "/trips/" + data["trip_id"]});
2020
if (data["arrival_time"]){
21-
this.push({ subject: subject, predicate: "http://vocab.gtfs.org/terms#arrivalTime", object: '"' + data["arrival_time"] + '"'});
21+
this.push({ subject: subject, predicate: "http://vocab.gtfs.org/terms#arrivalTime", object: '"' + data["arrival_time"] + '"^^http://www.w3.org/2001/XMLSchema#duration'});
2222
}
2323
if (data["departure_time"]){
24-
this.push({ subject: subject, predicate: "http://vocab.gtfs.org/terms#departureTime", object: '"' + data["departure_time"] + '"'});
24+
this.push({ subject: subject, predicate: "http://vocab.gtfs.org/terms#departureTime", object: '"' + data["departure_time"] + '"^^http://www.w3.org/2001/XMLSchema#duration'});
2525
}
2626
if (data["stop_sequence"]){
2727
this.push({ subject: subject, predicate: "http://vocab.gtfs.org/terms#stopSequence", object: '"' + data["stop_sequence"] + '"^^http://www.w3.org/2001/XMLSchema#nonNegativeInteger'});

0 commit comments

Comments
 (0)