src/solid/profile.js
/**
 * Extracts the WebID symbol from a parsed profile graph.
 * @method extractWebId
 * @param baseProfileUrl {String} Profile URL, with no hash fragment
 * @param parsedProfile {Graph} RDFLib-parsed user profile
 * @return {NamedNode} WebID symbol
 */
Extracts the WebID symbol from a parsed profile graph.
@method extractWebId
@param baseProfileUrl {String} Profile URL, with no hash fragment
@param parsedProfile {Graph} RDFLib-parsed user profile
@return {NamedNode} WebID symbol
Extracts the WebID symbol from a parsed profile graph . @method extractWebId @param baseProfileUrl { String } Profile URL with no hash fragment @param parsedProfile { Graph } RDFLib - parsed user profile @return { NamedNode } WebID symbol
function extractWebId (baseProfileUrl, parsedProfile, rdf) {
  var ns = vocab(rdf)
  var subj = rdf.namedNode(baseProfileUrl)
  var pred = ns.foaf('primaryTopic')
  var match = parsedProfile.any(subj, pred)
  return match
}
function extractWebId ( baseProfileUrl , parsedProfile , rdf ) { var ns = vocab ( rdf ) var subj = rdf . namedNode ( baseProfileUrl ) var pred = ns . foaf ( 'primaryTopic' ) var match = parsedProfile . any ( subj , pred ) return match }
Extracts the WebID symbol from a parsed profile graph.
Extracts the WebID symbol from a parsed profile graph .