Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

BasicContainer

ldp:BasicContainer resources are created by default in PUT or POST requests if no interaction model or unsupported RDF serialization Content-Type is provided. They are ldp:containersContainers, and as a result, objects which are created as children of these containers will create containment triples from the BasicContainer to the child object, using the ldp:contains predicate.

...

To specify which predicate to use for the membership triples, either a ldp:hasMemberRelation or ldp:isMemberOfRelation property with the desired predicate as its the object should be set on the DirectContainer. If the former property is set, for each child of the DirectContainer a membership property will be created with the membership resource as the subject and the child as the object. If the ldp:isMemberOfRelation is used, the subject and object will be reversed. If no property is provided, by default a ldp:hasMemberRelation property with the object ldp:member will be added to the DirectContainer. Only one membership predicate can be provided per DirectContainer.

...

Membership triples are returned in responses from mementosof objects as well. It should be noted that even with autoversioning enabled, adding membership triples to a resource does not trigger a new memento of that resource. If the DirectContainer and its fcr:tombstone are deleted, any membership triples resulting from it will no longer appear in mementos. Similarly, deleting children of DirectContainers and their fcr:tombstones will remove membership triples involving those resources.

IndirectContainer

As ldp:IndirectContainers are IndirectContainer is a subclass of ldp:DirectContainer, everything described above applies here as well. Additionally, IndirectContainers add the ability to create membership triples to resources which are not the immediate children of the container, via proxy objects.

...