Mercurial > code > home > repos > streamed-graph
diff src/graph_view.ts @ 22:e90d9021c6a0
add back s-g code; this breaks the build a little. WIP
author | drewp@bigasterisk.com |
---|---|
date | Fri, 13 Dec 2019 01:39:29 -0800 |
parents | 9ec3cbc8791a |
children | c751380b70c5 |
line wrap: on
line diff
--- a/src/graph_view.ts Fri Dec 13 01:36:57 2019 -0800 +++ b/src/graph_view.ts Fri Dec 13 01:39:29 2019 -0800 @@ -6,10 +6,11 @@ import { SuffixLabels } from './suffixLabels'; // import ns from 'n3/src/IRIs'; // const { rdf } = ns; +const rdf = { type: "http://www.w3.org/1999/02/22-rdf-syntax-ns#type" }; type TypeToSubjs = Map<NamedNode, Set<NamedNode>>; function groupByRdfType(graph: N3Store): { byType: TypeToSubjs, untyped: Set<NamedNode> } { - const rdfType = namedNode('rdf:type'); + const rdfType = namedNode(rdf.type); const byType: TypeToSubjs = new Map(); // type : subjs const untyped: Set<NamedNode> = new Set(); // subjs graph.forEach((q) => {