I'm fetching various ontologies from the web and they come in a broad variety of formats. I'd like to use rdflib.js to serialize them to jsonld. The .serialize(target, kb, base, contentType, callback, options)
method of rdflib takes several arguments that are not documented and I could not guess them from reading the source at https://linkeddata.github.io/rdflib.js/doc/serialize.js.html
const ont = await fetch('http://xmlns.com/foaf/0.1/');
const jsonlddata = rdflib.serialize(ont, ...?);