Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Identifier connection object #6

Open
brechtvdv opened this issue Sep 14, 2015 · 2 comments
Open

Identifier connection object #6

brechtvdv opened this issue Sep 14, 2015 · 2 comments

Comments

@brechtvdv
Copy link
Contributor

What namespace should we use for the identifier of a connection-object?
Should we make a hash from the departureTime as index to be more future proof or is a counter good enough for now?

{ "@context" : 
   {
         "connection" : "http://linkedconnections.org/connections/[agencyId]/",
         "..." : "..."
   }
}
{"@type" : "Connection",
 "@id" : "connection:1",
 "..." : "..."
}
@brechtvdv brechtvdv changed the title Identifier connection-object Identifier connection object Sep 14, 2015
@pietercolpaert
Copy link
Member

It should be able to be configured

@pietercolpaert
Copy link
Member

I'd add a baseuri to the constructor for the connections, and make the @id of a connection on the basis of the time of departure (e.g., in unixtime) concatenated with the stops identifier and e.g., the trip id

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

No branches or pull requests

2 participants