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

entity-level distribution information #29

Closed
atn38 opened this issue Mar 25, 2019 · 4 comments
Closed

entity-level distribution information #29

atn38 opened this issue Mar 25, 2019 · 4 comments

Comments

@atn38
Copy link
Member

atn38 commented Mar 25, 2019

On same topic as #26 item 11, what's the common usage pattern for entity-level distribution info?

Right now R code concatenates DataSetEntities.Urlhead and DataSetEntities.FileName to make a download URL. (I'm adding condition to return NULL if Urlhead is NULL.)

If unlike SBC, a site doesn't host data on own site, then perhaps there's no need for entity-level distribution in EML doc?

@atn38 atn38 mentioned this issue Mar 25, 2019
@mobb
Copy link
Contributor

mobb commented Mar 25, 2019

technically, that's true. but I think you might need to have a distribution element of some type (I should confirm that).
One simple solution is a place holder that will obviously fail, like using http://example.org for the head. (pasta will ignore the URL if you upload from the web interface, so that is the only use-case this would work for)
another more true-to-life (or universal) solution might be appropriate, but will be more complex

@gastil
Copy link
Contributor

gastil commented Mar 25, 2019

I had not considered the option of manually attaching the data files along with the EML to submit to PASTA. I've only ever done that for testing that feature itself. But yes I can see if you are working from your desktop not having a url-accessible file. I'll go with Margaret's suggestion but rather than example, Id make up a fictitious URL such as
http://fake.url.placeholder.edu/
so that the next person who comes along and sees it does not just think it is broken.
Before committing to that, do test it with portal-s.
Also, isn't info about authentication (or lack thereof) included in the entity-level distribution tree? Or does portal just assume if that is not provided then to default to anonymous access? I like it to be explicit.

@mobb
Copy link
Contributor

mobb commented Mar 25, 2019

This issue is about entity-level URLs. so to talk about access rules, lets do it somewhere else. but to summarize access rules (since there is an access tree in the entity-level distribution, near the URL)

this is the order of precedence:
dataset-level access rules: control everything below the dataset node
unless
an entity-level access rule overrides it (and that rule only affects download of the entity it's with)

I think there is a longer discussion in the BP doc

@atn38
Copy link
Member Author

atn38 commented Mar 26, 2019

@gastil I think lots of smaller sites/projects use the manual upload option! At least all the EDI fellows not at UMich (OBFS and other sites) did AFAIK.

@atn38 atn38 closed this as completed Jun 28, 2019
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

3 participants