src/util/graph-util.js
/**
 * Parses a given graph, from text rdfSource, as a given content type.
 * Returns parsed graph.
 * @method parseGraph
 * @param baseUrl {String}
 * @param rdfSource {String} Text source code
 * @param contentType {String} Mime Type (determines which parser to use)
 * @return {Graph}
 */
Parses a given graph, from text rdfSource, as a given content type.
Returns parsed graph.
Parses a given graph from text rdfSource as a given content type . Returns parsed graph .
function parseGraph (baseUrl, rdfSource, contentType, rdf) {
  var parsedGraph = rdf.graph()
  rdf.parse(rdfSource, parsedGraph, baseUrl, contentType)
  return parsedGraph
}
function parseGraph ( baseUrl , rdfSource , contentType , rdf ) { var parsedGraph = rdf . graph ( ) rdf . parse ( rdfSource , parsedGraph , baseUrl , contentType ) return parsedGraph }
Parses a given graph, from text rdfSource, as a given content type.
Parses a given graph from text rdfSource as a given content type .