* Remotely loads the graph at a given uri, parses it and and returns it. * Usage: * * ``` * ldp.fetchGraph('https://example.com/contacts/card1.ttl') * .then(graph => { * // const matches = graph.match(...) * }) * ``` * * @param uri {string} Fully qua
(uri, contentType)
| 410 | * @return {Promise<Graph>} |
| 411 | */ |
| 412 | getGraph (uri, contentType) { |
| 413 | return this.graph(uri, uri, contentType) |
| 414 | } |
| 415 | |
| 416 | async graph (url, baseUri, contentType) { |
| 417 | const body = await this.readResource(url) |
no test coverage detected