@inrupt/solid-client / profile/webid
Module: profile/webid#
Type Aliases#
ProfileAll#
Ƭ ProfileAll<T
>: Object
Type parameters#
Name |
Type |
---|---|
|
extends |
Type declaration#
Name |
Type |
---|---|
|
|
|
|
Defined in#
src/profile/webid.ts:41
Functions#
getAltProfileUrlAllFrom#
▸ getAltProfileUrlAllFrom(webId
, webIdProfile
): UrlString
[]
List all the alternative profiles IRI found in a given WebID profile.
Note that some of these profiles may be private, and you may not have access to the resulting resource.
Since
1.20.0
Parameters#
Name |
Type |
Description |
---|---|---|
|
|
The WebID of the user’s whose alternative profiles you are discovering. |
|
|
The WebID profile obtained dereferencing the provided WebID. |
Returns#
A list of URLs of the user’s alternative profiles.
Defined in#
src/profile/webid.ts:57
getPodUrlAll#
▸ getPodUrlAll(webId
, options?
): Promise
<UrlString
[]>
Discover the Pods an agent advertises for in their profile resources. Both the
agent’s WebID and alternative profiles are fetched. Note that this function will
only return URLs of Pods linked to using the pim:storage
, i.e. a triple
looking like <myWebid, pim:storage, myPodUrl> should appear in the profile
resources.
Since
1.18.0
Parameters#
Name |
Type |
Default value |
Description |
---|---|---|---|
|
|
|
The WebID of the agent whose Pods should be discovered |
|
|
|
Optional parameter - |
Returns#
Promise
<UrlString
[]>
a Promise resolving to an array containing the URLs of all the Pods
linked from the agent’s profile resource using the pim:storage
predicate.
Defined in#
src/profile/webid.ts:159
getPodUrlAllFrom#
▸ getPodUrlAllFrom(profiles
, webId
): UrlString
[]
Discover the Pods advertised for in the provided profile resources. Note that
this function will only return URLs of Pods linked to using the pim:storage
predicate, i.e. a triple looking like <myWebid, pim:storage, myPodUrl>
should appear in the profile resources.
Since
1.18.0
Parameters#
Name |
Type |
Description |
---|---|---|
|
|
The profile resources in which the Pods should be discovered |
|
|
The WebID of the agent whose Pods should be discovered |
Returns#
An array containing the URLs of all the Pods linked from the agent’s
profile resource using the pim:storage
predicate.
Defined in#
src/profile/webid.ts:181
getProfileAll#
▸ getProfileAll<T
>(webId
, options?
): Promise
<ProfileAll
<T
>>
Get all the Profile Resources discoverable from a WebID Profile.
A WebID Profile may be any RDF resource on the Web, it doesn’t have to be a Solid resource. That is why, in order to expose a Solid-enabled part of their profile, some WebID profiles link to a Profile Resource, which may be a Solid resource.
Since
1.16.0
Type parameters#
Name |
Type |
---|---|
|
extends |
Parameters#
Name |
Type |
Description |
---|---|---|
|
|
WebID of the agent you want the profile of. |
|
|
Optional parameter - |
Returns#
Promise
<ProfileAll
<T
>>
Promise resolving to an array of SolidDataset, each corresponding to a personal profile document discoverable from the WebID Profile Document. If none are found, the WebID profile document itself is returned.
Defined in#
src/profile/webid.ts:92
▸ getProfileAll(webId
, options?
): Promise
<ProfileAll
<SolidDataset
& WithServerResourceInfo
>>
Parameters#
Name |
Type |
---|---|
|
|
|
|
Returns#
Promise
<ProfileAll
<SolidDataset
& WithServerResourceInfo
>>
Defined in#
src/profile/webid.ts:102