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

Discover Containers via Link Headers? #40

Open
azaroth42 opened this issue Oct 20, 2015 · 4 comments
Open

Discover Containers via Link Headers? #40

azaroth42 opened this issue Oct 20, 2015 · 4 comments

Comments

@azaroth42
Copy link
Contributor

The response from a pcdm:Object or pcdm:Collection could use link headers to refer to the LDP containers in which members, files and related objects can be created. This would keep protocol related aspects in the protocol, rather than in the model. The trickier part is which relation (and other properties) to use.

Some possibilities:

My preference of those two is the latter.

(This issue is a follow on from #28)

@awoods
Copy link
Member

awoods commented Oct 20, 2015

This seems like a constructive direction. Shall "we" go ahead and put forth a list of proposed relation URIs that would cover the scenarios previously identified?

@azaroth42
Copy link
Contributor Author

I think we need:

  • hasMemberContainer
  • hasFileContainer
  • hasRelatedContainer

Then in the response from http://example.org/objects/1 you might have:

Link: <http://example.org/objects/1/members/>;rel="http://pcdm.org/rels/hasMemberContainer"

(plus the equivalent for Files and Related)

@escowles
Copy link
Contributor

Can we use the existing PCDM predicates for the rels? If so, that would make implementing this much more straightforward since we wouldn't have to map them.

Or do they need to be different because they are declaring the relationship between the parent and the container, as opposed to between the container and the members?

@azaroth42
Copy link
Contributor Author

I don't think so, assuming you mean pcdm:hasMember etc. Systems that processed the link header might then assume that the containers were members. Not very likely, admittedly, but I'd rather be explicit when the cost is close to zero.

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