1

我从网上获取各种本体,它们有多种格式。我想使用 rdflib.js 将它们序列化为 jsonld。rdflib的.serialize(target, kb, base, contentType, callback, options)方法需要几个没有记录的参数,我无法通过阅读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, ...?);
4

0 回答 0