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

Method graph

lib/ldp.mjs:416–426  ·  view source on GitHub ↗
(url, baseUri, contentType)

Source from the content-addressed store, hash-verified

414 }
415
416 async graph (url, baseUri, contentType) {
417 const body = await this.readResource(url)
418 if (!contentType) {
419 ({ contentType } = await this.resourceMapper.mapUrlToFile({ url }))
420 }
421 return new Promise((resolve, reject) => {
422 const graph = $rdf.graph()
423 $rdf.parse(body, graph, baseUri, contentType,
424 err => err ? reject(err) : resolve(graph))
425 })
426 }
427
428 // this is a hack to replace solid:owner, using solid:account in /.meta to avoid NSS migration
429 // this /.meta has no functionality in actual NSS

Callers 15

getGraphMethod · 0.95
paymentPointerDocumentFunction · 0.80
addFileFunction · 0.80
getMetadataGraphFunction · 0.80
listContainerMethod · 0.80
isValidRdfMethod · 0.80
applyPatchMethod · 0.80
parseQuadsMethod · 0.80
fetchLocalOrRemoteFunction · 0.80
parseFunction · 0.80
translateFunction · 0.80
getQuotaFunction · 0.80

Calls 2

readResourceMethod · 0.95
mapUrlToFileMethod · 0.80

Tested by

no test coverage detected