Mercurial > code > home > repos > streamed-graph
changeset 51:77aa2e9234ed
bug with rdf:type stmts
author | drewp@bigasterisk.com |
---|---|
date | Thu, 09 Jan 2020 00:33:46 -0800 |
parents | 1264ba9ffb10 |
children | 490f569bb0c9 |
files | src/json_ld_quads.ts |
diffstat | 1 files changed, 3 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/src/json_ld_quads.ts Thu Jan 09 00:33:16 2020 -0800 +++ b/src/json_ld_quads.ts Thu Jan 09 00:33:46 2020 -0800 @@ -26,14 +26,9 @@ ) { let predNode: NamedNode; if (predKey === "@type") { - onQuad( - quad( - subjNode, - namedNode(rdf.type), - namedNode(subjGroup["@type"]), - graphNode - ) - ); + subjGroup["@type"].forEach((aType: string) => { + onQuad(quad(subjNode, namedNode(rdf.type), namedNode(aType), graphNode)); + }); return; } predNode = namedNode(predKey);