# HG changeset patch # User drewp@bigasterisk.com # Date 1647737101 25200 # Node ID 069c1f70afa5e8c0ac1f304b800a09995e340bc0 # Parent dd3325cc023e606168c6455fa1d524406f1f3e80 cleanup diff -r dd3325cc023e -r 069c1f70afa5 src/layout/Layout.ts --- a/src/layout/Layout.ts Sat Mar 19 17:23:04 2022 -0700 +++ b/src/layout/Layout.ts Sat Mar 19 17:45:01 2022 -0700 @@ -7,7 +7,6 @@ import { ViewConfig } from "./ViewConfig"; type UriSet = Immutable.Set; -export type TypeToSubjs = Immutable.Map; interface ColumnHeader { rdfType: NamedNode; @@ -39,8 +38,8 @@ } class AlignedTableBuilder { - subjSet = Immutable.Set(); - predSet = Immutable.Set(); + subjSet: UriSet = Immutable.Set(); + predSet: UriSet = Immutable.Set(); cell = new UriPairMap(); constructor( public rdfType: NamedNode /* plus join types, sort instructions */ @@ -157,6 +156,7 @@ // The description of how this page should look: sections, tables, etc. export class Layout { constructor(public viewConfig?: ViewConfig) {} + _groupAllStatements( graph: Store, tablesWantingSubject: SubjectTableBuilders, @@ -177,6 +177,7 @@ null ); } + plan(graph: Store): LayoutResult { const ungrouped: Quad[] = [];