Versions Compared

Key

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

...

Panel
titleBGColorgray
title3: Final State - Ordered Pages

This final example will both illustrate the a second use of ldp:IndirectContainers DirectContainers as well as detail the PCDM recommendation for how to handle ordering of resources.

The addtional predicates/relationships that will be used in this example are:

  • ore:proxyIn
  • ore:proxyFor
  • iana:first
  • iana:next
  • iana:pref
  • iana:last

...all of which are further described in the Portland Common Data Model.

Expand
titleOrdering Creation Details...
Panel
titleBGColorgray
titleOrdering - Create IndirectContainerDirectContainer

As in the collections book example, begin with creating an ldp:IndirectContainerDirectContainer, "orderProxies/", as a child of the book, "raven/", resource. This new IndirectContainer DirectContainer will facilitate the auto-creation of triples that will define the membership relationship between the book, "raven/", and its pagesthe proxies. Then, the new proxy resources that will be created within this IndirectContainer DirectContainer will be used to establish an ordering of the books pages.

Note: This example assumes the previous creation of "/objects/raven/" and the cover and page resources from the Book example in this series.

 

Code Block
curl -i -XPUT -H"Content-Type: text/turtle" --data-binary @ldp-ordering-indirectdirect.ttl localhost:8080/rest/objects/raven/orderProxies/

Where "ldp-ordering-direct.ttl" follows:

Code Block
titleldp-ordering-indirect.ttl