Mercurial > code > home > repos > streamed-graph
changeset 65:eb1294174dd4
n3 type fixes, maybe a major rdf:Type bug too
author | drewp@bigasterisk.com |
---|---|
date | Mon, 20 Jan 2020 03:00:27 -0800 |
parents | 1ccb5e758929 |
children | 1bb65cb4c685 |
files | src/graph_view.ts |
diffstat | 1 files changed, 4 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/graph_view.ts Mon Jan 20 02:59:42 2020 -0800 +++ b/src/graph_view.ts Mon Jan 20 03:00:27 2020 -0800 @@ -6,6 +6,7 @@ type NamedNode = RDF.NamedNode; import { SuffixLabels } from "./suffixLabels"; +import { Quad_Object } from "n3"; // import ns from 'n3/src/IRIs'; // const { rdf } = ns; const rdf = { @@ -30,9 +31,9 @@ let subjType: NamedNode | null = null; graph.forObjects( - (o: Quad) => { - if (Util.isNamedNode(o.object)) { - subjType = o.object as NamedNode; + (o: Quad_Object) => { + if (Util.isNamedNode(o)) { + subjType = o as NamedNode; } }, subj,