WebId
Represents a Solid WebID identity document — both for reading profile data and for constructing or updating it.
A WebID document is an RDF resource that describes an agent. It MUST contain:
rdf:type foaf:Agentpim:preferencesFilepointing to the agent's preferences file
It MAY contain:
pim:storage(one or more storage roots)ldp:inbox(notification inbox)rdfs:seeAlso(extended profile documents)foaf:isPrimaryTopicOfsolid:oidcIssuer(OIDC identity provider)FOAF name / given name / family name / photo
foaf:knows(social graph)acl:trustedApp(trusted client applications)cert:key(public key for WebID-TLS)
Use getMetadata (from SolidRDFResource) to access the ETag, ACL URI, and allowed methods returned by the server — useful for conditional PUT updates.
Spec: https://solid.github.io/webid-profile/
Constructors
Functions
Returns the object values of every triple with the given predicate, across all subjects.
Returns the object value of the first triple with the given predicate, or null if none.
Returns a snapshot copy of all triples held by this resource.
Returns all cert:key public-key URIs listed in this profile.
The media type of the resource representation (the value of its Content-Type).
The creation time in epoch milliseconds, from this resource's own dcterms:created (then stat:ctime) triple, or null when neither is present.
Returns the resource representation as a byte stream.
Returns the foaf:familyName literal, or null if not declared.
Returns the foaf:givenName literal, or null if not declared.
The HTTP headers associated with this resource (empty when constructed locally).
The URI that identifies this resource on the pod.
The last-modified time in epoch milliseconds. Prefers this resource's own dcterms:modified (then stat:mtime) triple and falls back to the Last-Modified header. null when none is present.
Returns all solid:oidcIssuer URIs declared in this profile.
Returns the pim:preferencesFile URI, or null if not declared.
Returns all foaf:isPrimaryTopicOf document URIs.
Returns the solid:privateTypeIndex URI, or null if not declared.
Returns the solid:publicTypeIndex URI, or null if not declared.
Returns all rdfs:seeAlso (extended profile) document URIs.
Returns all pim:storage root URIs declared in this profile.
Returns all acl:trustedApp URIs listed in this profile.
Adds a solid:oidcIssuer triple to this profile document.
Adds a pim:preferencesFile triple to this profile document.
Adds a solid:privateTypeIndex triple to this profile document.
Adds a solid:publicTypeIndex triple to this profile document.
Adds a pim:storage triple to this profile document.