# Common patterns with Solid

Zwifi
1,891 views

In this exemple, you can get invited to Julius Caesar book release party. You may be 2000 years late, but cool people never show up on time anyway.

### Discovering a resource's inbox

To find out where to reach any resource, all you have to do is ask! Inboxes are announced using the LDP term ldp:inbox in resources' RDF representation.

What is Cleopatra's inbox
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
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

In the following snippet, after discovering the target's inbox, an invite is sent. Want to weasle your way in the coolest party of the Roman empire ? Just change the calendar_iri to your own!
const $rdf = require("rdflib") const {invite} = require("./invite") const {fetch_inbox} = require("./discover-inbox") const timeout = 3000 const LDP =$rdf.Namespace("http://www.w3.org/ns/ldp#")