@matdata/yasgui-graph-plugin 1.0.5 → 1.0.7
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/README.md +4 -4
- package/dist/index.d.ts +1 -43
- package/package.json +1 -2
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# YASGUI Graph Plugin
|
|
2
2
|
|
|
3
3
|
[](https://opensource.org/licenses/Apache-2.0)
|
|
4
|
-
[](https://www.npmjs.com/package/yasgui-graph-plugin)
|
|
4
|
+
[](https://www.npmjs.com/package/@matdata/yasgui-graph-plugin)
|
|
5
5
|
|
|
6
6
|
A YASGUI plugin for visualizing SPARQL CONSTRUCT and DESCRIBE query results as interactive graphs with nodes (subjects/objects) and edges (predicates).
|
|
7
7
|
|
|
@@ -24,12 +24,12 @@ A YASGUI plugin for visualizing SPARQL CONSTRUCT and DESCRIBE query results as i
|
|
|
24
24
|
### NPM
|
|
25
25
|
|
|
26
26
|
```bash
|
|
27
|
-
npm install yasgui-graph-plugin @zazuko/yasgui vis-network
|
|
27
|
+
npm install @matdata/yasgui-graph-plugin @zazuko/yasgui vis-network
|
|
28
28
|
```
|
|
29
29
|
|
|
30
30
|
```javascript
|
|
31
31
|
import Yasgui from '@zazuko/yasgui';
|
|
32
|
-
import GraphPlugin from 'yasgui-graph-plugin';
|
|
32
|
+
import GraphPlugin from '@matdata/yasgui-graph-plugin';
|
|
33
33
|
|
|
34
34
|
Yasgui.Yasr.registerPlugin('Graph', GraphPlugin);
|
|
35
35
|
|
|
@@ -44,7 +44,7 @@ const yasgui = new Yasgui(document.getElementById('yasgui'));
|
|
|
44
44
|
<script src="https://cdn.jsdelivr.net/npm/@zazuko/yasgui@4/build/yasgui.min.js"></script>
|
|
45
45
|
|
|
46
46
|
<!-- Graph Plugin -->
|
|
47
|
-
<script src="https://cdn.jsdelivr.net/npm/yasgui-graph-plugin/dist/yasgui-graph-plugin.min.js"></script>
|
|
47
|
+
<script src="https://cdn.jsdelivr.net/npm/@matdata/yasgui-graph-plugin/dist/yasgui-graph-plugin.min.js"></script>
|
|
48
48
|
|
|
49
49
|
<script>
|
|
50
50
|
// Plugin auto-registers as 'graph'
|
package/dist/index.d.ts
CHANGED
|
@@ -1,43 +1 @@
|
|
|
1
|
-
|
|
2
|
-
// Project: https://github.com/Matdata-eu/yasgui-graph-plugin
|
|
3
|
-
|
|
4
|
-
declare module '@matdata/yasgui-graph-plugin' {
|
|
5
|
-
import type { Plugin } from '@zazuko/yasgui/build/ts/plugins';
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* YASGUI plugin for visualizing SPARQL CONSTRUCT and DESCRIBE query results as interactive graphs
|
|
9
|
-
*/
|
|
10
|
-
export default class GraphPlugin extends Plugin {
|
|
11
|
-
/**
|
|
12
|
-
* Plugin priority (higher = shown first in tabs)
|
|
13
|
-
*/
|
|
14
|
-
static priority: number;
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* Plugin label for tab display
|
|
18
|
-
*/
|
|
19
|
-
static label: string;
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* Check if plugin can handle the current results
|
|
23
|
-
* @returns True if results are from CONSTRUCT or DESCRIBE query
|
|
24
|
-
*/
|
|
25
|
-
canHandleResults(): boolean;
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* Render the graph visualization
|
|
29
|
-
*/
|
|
30
|
-
draw(): void;
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
* Download the current visualization as PNG
|
|
34
|
-
*/
|
|
35
|
-
download(): void;
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* Get vis-network configuration options
|
|
39
|
-
* @returns Network options for vis-network
|
|
40
|
-
*/
|
|
41
|
-
getNetworkOptions(): any;
|
|
42
|
-
}
|
|
43
|
-
}
|
|
1
|
+
declare module '@matdata/yasgui-graph-plugin';
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@matdata/yasgui-graph-plugin",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.7",
|
|
5
5
|
"description": "YASGUI plugin for visualizing SPARQL CONSTRUCT and DESCRIBE query results as interactive graphs",
|
|
6
6
|
"main": "dist/yasgui-graph-plugin.cjs.js",
|
|
7
7
|
"module": "dist/yasgui-graph-plugin.esm.js",
|
|
@@ -32,7 +32,6 @@
|
|
|
32
32
|
],
|
|
33
33
|
"author": "Matdata",
|
|
34
34
|
"license": "Apache-2.0",
|
|
35
|
-
"type": "commonjs",
|
|
36
35
|
"bugs": {
|
|
37
36
|
"url": "https://github.com/Matdata-eu/yasgui-graph-plugin/issues"
|
|
38
37
|
},
|