RDF Quad

A convenience constructor for RDF quads based on string-based terms, as done by RDF-String.
If the value in the object position is not a string,
then it will be automatically converted to the proper RDF datatype using RDF Literal.
This produces quads according to the RDFJS specification.
Usage
const quad = require('rdf-quad');
quad('http://example.org/subject', 'http://example.org/predicate', 'http://example.org/object');
quad('http://example.org/subject', 'http://example.org/predicate', '?variable');
quad('http://example.org/subject', 'http://example.org/predicate', '"myString"', 'http://example.org/someGraph');
quad('http://example.org/subject', 'http://example.org/predicate', 123);
quad('http://example.org/subject', 'http://example.org/predicate', true);
quad('<<ex:s ex:p ex:o>>', 'http://example.org/predicate', 'http://example.org/object');
License
This software is written by Ruben Taelman.
This code is released under the MIT license.