src/util/graph-util.js
/**
 * Serializes an array of RDF statements into a simple N-Triples format
 * suitable for writing to a solid server.
 * @method serializeStatements
 * @param statements {Array<Statement>} List of RDF statements
 * @return {String}
 */
Serializes an array of RDF statements into a simple N-Triples format
suitable for writing to a solid server.
@method serializeStatements
@param statements {Array} List of RDF statements
@return {String}
Serializes an array of RDF statements into a simple N - Triples format suitable for writing to a solid server . @method serializeStatements @param statements { Array } List of RDF statements @return { String }
function serializeStatements (statements) {
  var source = statements.map(function (st) { return st.toNT() })
  source = source.join('\n')
  return source
}
function serializeStatements ( statements ) { var source = statements . map ( function ( st ) { return st . toNT ( ) } ) source = source . join ( '\n' ) return source }
Serializes an array of RDF statements into a simple N-Triples format
 suitable for writing to a solid server.
Serializes an array of RDF statements into a simple N - Triples format suitable for writing to a solid server .