linkeddata / rdflib.js

Linked Data API for JavaScript
http://linkeddata.github.io/rdflib.js/doc/
Other
562 stars 142 forks source link

Serialize jsonld #590

Closed bourgeoa closed 1 year ago

bourgeoa commented 1 year ago

@timbl @angelo-v The issue I have is that my patch returns a Promise<string> and not aString To serializeapplication/ld+jsonin tests I need to make the test withasync` 'await serialize(...)

After testing with (/tests/data.js) the following is working for any contentType :

async function <anyname> (store, contentType) {
...
const result = await serialize(null, store, null, contentType)
...
}