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

Function parse

lib/webid/lib/parse.mjs:3–10  ·  view source on GitHub ↗
(profile, graph, uri, mimeType, callback)

Source from the content-addressed store, hash-verified

1import $rdf from 'rdflib'
2
3export default function parse (profile, graph, uri, mimeType, callback) {
4 try {
5 $rdf.parse(profile, graph, uri, mimeType)
6 return callback(null, graph)
7 } catch (e) {
8 return callback(new Error('Could not load/parse profile data: ' + e))
9 }
10}

Callers 2

verifyKeyFunction · 0.70
handlerFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected