What is Cleopatra's inbox
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
const axios = require("axios")
const {fetch_inbox} = require("./discover-inbox")
// You can change that to your own webid
const resource_iri = "https://cleopatra.solid.community/profile/card#me"
// First, let's see the plain RDF representation of the resource
axios.get(resource_iri)
.then(response => {
// Let us just display the content of the resource
console.log(response.data);
console.log("\n --- \n");
// And now, let's just filter for its inbox
fetch_inbox(resource_iri)
.then(inbox => {
console.log("The inbox of "+resource_iri+" is "+inbox)
})
.catch(error => {
console.log(error);
})})
.catch(error => {
console.log(error);
})
Enter to Rename, Shift+Enter to Preview
1
const axios = require("axios")
Enter to Rename, Shift+Enter to Preview