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

Add support for hash URIs as membership resources #64

Open
acoburn opened this issue Apr 25, 2018 · 1 comment
Open

Add support for hash URIs as membership resources #64

acoburn opened this issue Apr 25, 2018 · 1 comment
Labels

Comments

@acoburn
Copy link
Contributor

acoburn commented Apr 25, 2018

Environment

Operating system: OS X

Python version: 3.6

LAKEsuperior release, branch, or commit #: alpha 14

Steps to reproduce

  1. Create a membership resource.
  2. Create a direct container with the ldp:membershipResource pointing to a hash URI on that membership resource.

For example: given a membership resource of http://localhost:8000/ldp/resource the DC would include the triple: <> ldp:membershipResource <http://localhost:8000/ldp/resource#members>.

Observed behavior

When adding child resources to the DC, there are no membership triples generated for the member resource.

Expected behavior

The member resource would contain triples with the DC child resources.

Other notes worth mentioning

You may want to take a look at some of the "bug tracker" examples in the LDP primer: https://www.w3.org/TR/ldp-primer/

@acoburn
Copy link
Contributor Author

acoburn commented Apr 25, 2018

Furthermore, when creating a Direct Container whose membership resource is a self-referential hash URI (e.g. the DC is http://localhost:8000/ldp/dc and the membership resource is http://localhost:8000/ldp/dc#it), POSTing a child resource returns a 404 Not Found.

i.e. given this DC at http://localhost:8000/ldp/dc:

PREFIX dcterms: <http://purl.org/dc/terms/>
PREFIX ldp: <http://www.w3.org/ns/ldp#>

<> dcterms:title "Direct Container" ;
    ldp:membershipResource <#it> ;
    ldp:hasMemberRelation dcterms:relation .

I cannot POST a child resource to this container, because I get this error:

HTTP/1.1 404 NOT FOUND
Server: gunicorn/19.7.1
Date: Wed, 25 Apr 2018 17:48:52 GMT
Connection: keep-alive
Content-Type: text/html; charset=utf-8
Content-Length: 60

Resource /dc#it not found.

@scossu scossu added the feature label Apr 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants