graphwise-reactodia 0.0.1-TR6 → 0.0.1-TR7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/graphwise-reactodia.cjs.entry.js +42 -3
- package/dist/collection/components/graphwise-reactodia/graphwise-reactodia.js +2 -2
- package/dist/collection/components/graphwise-reactodia/models/reactodia-seed-link.js +1 -0
- package/dist/collection/components/graphwise-reactodia/reactodia-app.js +40 -1
- package/dist/collection/pages/graphwise-reactodia/main.js +15 -0
- package/dist/esm/graphwise-reactodia.entry.js +42 -3
- package/dist/graphwise-reactodia/graphwise-reactodia.esm.js +1 -1
- package/dist/graphwise-reactodia/{p-5a330bae.entry.js → p-eb362faa.entry.js} +1 -1
- package/dist/types/components/graphwise-reactodia/graphwise-reactodia.d.ts +1 -1
- package/dist/types/components/graphwise-reactodia/models/reactodia-config.d.ts +6 -0
- package/dist/types/components/graphwise-reactodia/models/reactodia-seed-link.d.ts +23 -0
- package/package.json +1 -1
|
@@ -42,7 +42,7 @@ export declare class GraphwiseReactodia {
|
|
|
42
42
|
private reactRoot?;
|
|
43
43
|
onProviderSettingsChange(): void;
|
|
44
44
|
onLanguageChange(): void;
|
|
45
|
-
|
|
45
|
+
connectedCallback(): void;
|
|
46
46
|
disconnectedCallback(): void;
|
|
47
47
|
render(): any;
|
|
48
48
|
private renderGraph;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { SparqlQueryFunction } from '@reactodia/workspace';
|
|
2
|
+
import { ReactodiaSeedLink } from './reactodia-seed-link';
|
|
2
3
|
/**
|
|
3
4
|
* Host-supplied configuration read once when the workspace mounts (not reactive).
|
|
4
5
|
*
|
|
@@ -20,4 +21,9 @@ export interface ReactodiaConfig {
|
|
|
20
21
|
* (e.g. in the case of a construct query)
|
|
21
22
|
*/
|
|
22
23
|
seedIris?: string[];
|
|
24
|
+
/**
|
|
25
|
+
* Pre-resolved edges to place on the canvas on startup. When provided, each link is added to the canvas and we do not
|
|
26
|
+
* request data from the connected sparql endpoint, since this is meant for non-persisted data, like construct and describe queries.
|
|
27
|
+
*/
|
|
28
|
+
seedGraph?: ReactodiaSeedLink[];
|
|
23
29
|
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A pre-resolved edge to place on the canvas on startup, mirroring GraphDB's
|
|
3
|
+
* `rest/explore-graph` link shape. Used to visualize the result of a CONSTRUCT query, whose
|
|
4
|
+
* relationships are computed and therefore not persisted in the repository, so they cannot be
|
|
5
|
+
* fetched lazily through the SPARQL provider and must be supplied directly.
|
|
6
|
+
*
|
|
7
|
+
* The host adapts its source data into this neutral shape (e.g. the workbench maps the
|
|
8
|
+
* `rest/explore-graph/graph` response, mapping its `rawPredicates` onto {@link predicates}).
|
|
9
|
+
*/
|
|
10
|
+
export interface ReactodiaSeedLink {
|
|
11
|
+
/** Source element IRI. */
|
|
12
|
+
source: string;
|
|
13
|
+
/** Target element IRI. */
|
|
14
|
+
target: string;
|
|
15
|
+
/**
|
|
16
|
+
* Short display friendly predicate
|
|
17
|
+
*/
|
|
18
|
+
predicates: string[];
|
|
19
|
+
/**
|
|
20
|
+
* Full (absolute) predicate IRIs.
|
|
21
|
+
*/
|
|
22
|
+
rawPredicates: string[];
|
|
23
|
+
}
|