Closed hectorcorrea closed 8 years ago
Nevermind...I didn't realize that when the client includes header Prefer: return=representation; include="http://www.w3.org/ns/ldp#PreferMembership
in the request, the server is meant to include information about the memberResource
of the Direct Container when fetching the Direct Dontainer. See section 7.2.3 of https://www.w3.org/TR/ldp/ (examples 23-25)
Test
testActAsIfInsertedContentRelationTripleExists
reports confusing (and perhaps wrong) results.Example
Create a Direct Container (
dc2
) withtest2
asmembershipResource
and using a URI (<http://xyz>
) as thehasMemberRelation
Run
testActAsIfInsertedContentRelationTripleExists
usingdc2
as the direct containerThe test fails because of the assertion for triple
<test2>, <http://yxz>, <dc2/nodeX>
in line https://github.com/w3c/ldp-testsuite/blob/master/src/main/java/org/w3/ldp/testsuite/test/DirectContainerTest.java#L205QUESTION: Why does the test fails even if this property does exist in the membership resource (
test2
)QUESTION: When the tests fails on this example the error indicates
even though the error was thrown when looking for a property on the membership resource (
test2
in this case) rather than a property on the direct containerdc2
itself.Which one is it? Is the test failing because the direct container is missing
<dc2> ldp:insertedContentRelation ldp:MemberSubject .
or because the membeship resource is missing<test2> <http://yxz> <dc2/nodeX>
) ?In either case the result does not seem to make sense. The direct container contains the
<dc2> ldp:insertedContentRelation ldp:MemberSubject .
triple and the membership resource contains the<test2> <http://yxz> <dc2/nodeX> .
triple.