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

Function getName

lib/common/user-utils.mjs:6–10  ·  view source on GitHub ↗
(webId, fetchGraph)

Source from the content-addressed store, hash-verified

4const VCARD = $rdf.Namespace('http://www.w3.org/2006/vcard/ns#')
5
6export async function getName (webId, fetchGraph) {
7 const graph = await fetchGraph(webId)
8 const nameNode = graph.any($rdf.sym(webId), VCARD('fn'))
9 return nameNode.value
10}
11
12export async function getWebId (accountDirectory, accountUrl, suffixMeta, fetchData) {
13 const metaFilePath = `${accountDirectory}/${suffixMeta}`

Callers 1

updateIndex.mjsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected