MCPcopy Index your code
hub / github.com/nodeSolidServer/node-solid-server / getGraph

Method getGraph

lib/ldp.mjs:412–414  ·  view source on GitHub ↗

* 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)

Source from the content-addressed store, hash-verified

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)

Callers 6

isOwnerMethod · 0.95
getMetadataGraphFunction · 0.80
getProfileGraphForMethod · 0.80
ldp-test.mjsFile · 0.80

Calls 1

graphMethod · 0.95

Tested by

no test coverage detected