# WebID Profile and Pod URLs

A [WebID](/reference/glossary.md#webid) is a unique URL that identifies an agent in the Solid ecosystem. Dereferencing the WebID yields a **publicly** readable [WebID Profile](/reference/glossary.md#webid-profile) document. A WebID Profile is an [RDF Resource](/reference/glossary.md#rdf-resource) that contains data about the user, such as the user’s Pod URLs.

To facilitate reading WebID Profile, Inrupt’s Java Client Libraries provide the [WebIdProfile](https://api.docs.inrupt.com/docs/developer-tools/api/java/inrupt-client/latest/com/inrupt/client/webid/WebIdProfile.html) class. For example, the following code reads the Pod URLs associated with the WebID.

```java
import com.inrupt.client.webid.WebIdProfile;

// ...

public Set<URI> getPods(String webID) {
    try (final var profile = client.read(URI.create(webID), WebIdProfile.class)) {
         return profile.getStorages();
    }
}
```

{% hint style="info" %}
**Note**

Although an RDF Resource, the WebID Profile is not necessarily hosted on a Solid Pod and may not necessarily be a Solid Resource per the [Solid Protocol](https://solidproject.org/TR/protocol). That is, the WebID Profile may be mapped to the [RDFSource](https://api.docs.inrupt.com/docs/developer-tools/api/java/inrupt-client/latest/com/inrupt/client/RDFSource.html) class (which is extended by [WebIdProfile](https://api.docs.inrupt.com/docs/developer-tools/api/java/inrupt-client/latest/com/inrupt/client/webid/WebIdProfile.html)) but not necessarily to the [SolidRDFSource](https://api.docs.inrupt.com/docs/developer-tools/api/java/inrupt-client/latest/com/inrupt/client/solid/SolidRDFSource.html).

As such, Solid applications cannot rely on the Solid Protocol to read and write the WebID profile. See also <https://solid.github.io/webid-profile/#introduction>.
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.inrupt.com/sdk/java-sdk/crud-data/appendix-webid-profile-and-pod-urls.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
