Skip to content

Commit cb87aee

Browse files
author
Pieter Colpaert
committed
Fix #14
1 parent 390ebf6 commit cb87aee

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

lib/transformers/StopsTransformer.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ function StopsTransformer (options) {
1717
*/
1818
StopsTransformer.prototype._transform = function (data, encoding, done) {
1919
var subject = this._feedbaseuri + "/stops/" + data["stop_id"];
20+
this.push({ subject: subject, predicate: "http://purl.org/dc/terms/identifier", object :'"' + data["stop_id"]+'"' });
2021
// gtfs:locationType triple
2122
if (data["location_type"] && data["location_type"] === "1") {
2223
this.push({ subject: subject, predicate: "http://www.w3.org/1999/02/22-rdf-syntax-ns#type", object: "http://vocab.gtfs.org/terms#Station"});
@@ -33,8 +34,9 @@ StopsTransformer.prototype._transform = function (data, encoding, done) {
3334
}
3435
// gtfs:code triple
3536
if (data["stop_code"]) {
36-
this.push({ subject: subject, predicate: "http://purl.org/dc/terms/identifier", object :'"' + data["stop_code"]+'"' });
37+
this.push({ subject: subject, predicate: "http://vocab.gtfs.org/terms#code", object :'"' + data["stop_code"]+'"' });
3738
}
39+
3840
// foaf:name triple
3941
if (data["stop_name"]) {
4042
this.push({ subject: subject, predicate: "http://xmlns.com/foaf/0.1/name", object :'"' + data["stop_name"]+'"' });

0 commit comments

Comments
 (0)