Skip to main content

LdpContainerService

Actions#

The following service actions are available:

ldp.container.attach#

  • Attach a resource to a container
Parameters#
PropertyTypeDefaultDescription
containerUriStringrequiredURI of container to which the resource will be attached
resourceUriStringrequiredURI of resource to attach

ldp.container.detach#

  • Detach a resource from a container
Parameters#
PropertyTypeDefaultDescription
containerUriStringrequiredURI of container to which the resource will be detached
resourceUriStringrequiredURI of resource to attach

ldp.container.exist#

  • Check if a container exists
Parameters#
PropertyTypeDefaultDescription
containerUriStringrequiredURI of container to check
Return#

true or false

ldp.container.create#

  • Create a new LDP container
Parameters#
PropertyTypeDefaultDescription
containerUriStringrequiredURI of the container to create

ldp.container.clear#

  • Deletes a container and all its attached resources
Parameters#
PropertyTypeDefaultDescription
containerUriStringrequiredURI of the container to clear

ldp.container.get#

  • Get all resources attached to a container
  • Use the LDP ontology of direct containers
Parameters#
PropertyTypeDefaultDescription
containerUriStringrequiredURI of container
acceptstringrequiredType to return (application/ld+json, text/turtle or application/n-triples)
filtersObjectnullReturn only triples matching all key-value of the provided object
webIdstringLogged user's webIdwebId used to identify user doing action on tripleStore

You can also pass parameters defined in the container options.

Return#

Triples, Turtle or JSON-LD depending on accept type.

ldp.container.getOptions#

  • Returns the container options associated with the given URI (container or resource)
Parameters#
PropertyTypeDefaultDescription
uriStringrequiredURI of a container or a resource