(url, baseUri, contentType)
| 414 | } |
| 415 | |
| 416 | async graph (url, baseUri, contentType) { |
| 417 | const body = await this.readResource(url) |
| 418 | if (!contentType) { |
| 419 | ({ contentType } = await this.resourceMapper.mapUrlToFile({ url })) |
| 420 | } |
| 421 | return new Promise((resolve, reject) => { |
| 422 | const graph = $rdf.graph() |
| 423 | $rdf.parse(body, graph, baseUri, contentType, |
| 424 | err => err ? reject(err) : resolve(graph)) |
| 425 | }) |
| 426 | } |
| 427 | |
| 428 | // this is a hack to replace solid:owner, using solid:account in /.meta to avoid NSS migration |
| 429 | // this /.meta has no functionality in actual NSS |
no test coverage detected