Skip to main content

TypeRegistrationsService

This service is automatically created by the TypeIndexesService.

Actions

The following service actions are available:

register

Register a type with its container, and attach it to the public TypeIndex linked with the provided WebID. If a TypeRegistration already exist for the container, simply attach the new type.

Parameters
PropertyTypeDefaultDescription
typeURIrequiredThe type to register (can be prefixed or a full URI)
containerUriURIrequiredThe URI of the container associated with this type
webIdURIrequiredWebID of the user with the TypeIndex

getByType

Get a list of TypeRegistrations associated with a given type

Parameters
PropertyTypeDefaultDescription
typeURIrequiredThe type to look for (can be prefixed or a full URI)
webIdURIrequiredWebID of the user with the TypeIndex
Return

An array of TypeRegistrations

findContainersUris

Get the URIs of all LDP containers associated with a given type.

Parameters
PropertyTypeDefaultDescription
typeURIrequiredThe type to look for (can be prefixed or a full URI)
webIdURIrequiredWebID of the user with the TypeIndex
Return

An array of LDP containers URIs.

getByContainerUri

Get the TypeRegistration associated with a given LDP container

Parameters
PropertyTypeDefaultDescription
containerUriURIrequiredThe URI of the container to look for
webIdURIrequiredWebID of the user with the TypeIndex
Return

A TypeRegistration

addMissing

Go through all existing accounts and generate TypeRegistrations for all controlled LDP containers.