-
Notifications
You must be signed in to change notification settings - Fork 2
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
retPath as a retrieval path to override relPath #13
Comments
earlier in the thread I had written:
|
So @josusky has suggested just overriding relpath with (the usually not present) retPath when it is there. This is a lot easier to transition to than either of the schemes I presented. Also there is another issue with basing the relative path on the topic header in that paths may contain special characters, and protocols have different restrictions (e.g. using . as a delimiter) so the forward and reverse mapping is fraught. It is probably much simpler for everyone to keep relPath as is. |
worry: sources that require a retPath are very likely to have no idea what to specify for relPath, and may elect to leave it out, which is likely to break Mesh networking to some degree, and make forwarding among different third parties liable to divergence (different pumps placing the same data in different directories because no relPath is given.) |
Perhaps I am too optimistic, but I think that all sources will be able to provide a valid and meaningful relPath. For many sources, typical data providers, the relPath will be almost a fixed string - |
This change is related to MetPX#13 Also fixed validation of pubTime.
looks good. in your definition, the description of relPath as minimalist metadata is apt. People in different domains seem to agree that every datum having a single, canonical name is a very good quality. the relPath is this name. in cases where supplying the canonical name to the retrieval system isn't sufficient, one can, in addition, supply a retPath. |
extracted from an email thread...
From @josusky:
Another interesting idea that Peter mentioned is a logical difference between retrieval URL and the relative path or file name. I can confirm that some systems require use of quite complex URLs to provide the "right" data. In the current concept the client uses the relative path for both - construction of the URL needed the retrieve the data as well as a local "path" or file name to store it. Of course, in many cases such data will be consumed without actually creating a local file or without worrying about its readability but if we adopt the use of two separate fields "retPath" and "relPath" with one of them being optional then we will be able to elegantly handle broader range of data sources.
My proposal is the keep "relPath" as a kind of a canonical product instance identifier, while the (optional) "retPath" (if specified) would be used instead of it to construct the URL that the data provider needs to unambiguously identify the data instance in its data store (whatever it is).
The text was updated successfully, but these errors were encountered: