Skip to content

Commit 44b8e75

Browse files
Merge pull request #11 from elsevierlabs-os/dev
New visualization + Oxigraph
2 parents df937e9 + 332ffb9 commit 44b8e75

File tree

9 files changed

+43361
-764
lines changed

9 files changed

+43361
-764
lines changed

LICENSE.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,15 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of
44

55
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
66

7-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
7+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
8+
9+
10+
The code for graph visualisation (`ForceGraph` in `inspector.js`) is a modified version of https://observablehq.com/@d3/force-directed-graph which was released under the ISC License.
11+
12+
ISC License
13+
14+
Copyright 2021 Observable, Inc.
15+
16+
Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
17+
18+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

examples/test.jsonld

Lines changed: 59 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,66 @@
66
"otherns": "https://example.com/b/",
77
"owl": "http://www.w3.org/2002/07/owl#"
88
},
9-
"@graph": [{
10-
"@id": "b123",
11-
"@type": "Fish",
12-
"name": "What a nice name",
13-
"linkedTo": {
14-
"@id": "b456",
15-
"name": "That's a silly name",
16-
"@type": "Squid",
9+
"@graph": [
10+
{
11+
"@id": "b123",
12+
"comment": "I'm in the default graph",
1713
"linkedTo": {
18-
"name": "No names are cool"
14+
"@id": "b789",
15+
"comment": "I'm in the default graph too!"
1916
}
20-
}},
21-
{"@id": "myns:Fish", "@type": "owl:Class"}
17+
},
18+
{
19+
"@id": "graph1",
20+
"@graph": [
21+
{
22+
"@id": "b123",
23+
"@type": "Fish",
24+
"name": "What a nice name",
25+
"linkedTo": [{
26+
"@id": "b456",
27+
"name": "That's a silly name",
28+
"@type": "Squid",
29+
"linkedTo": {
30+
"name": "No names are cool"
31+
}
32+
}
33+
]
34+
}
35+
]
36+
},
37+
{
38+
"@id": "graph2",
39+
"@graph": [
40+
{"@id": "myns:Fish", "@type": "owl:Class"},
41+
{"@id": "b123", "name": "I don't like this name"}
42+
]
43+
},
44+
{
45+
"@id": "graph3",
46+
"@graph": [
47+
{
48+
"@id": "b456",
49+
"bornIn": {
50+
"@id": "greatCity",
51+
"name": "Great City"
52+
}
53+
}
54+
]
55+
},
56+
{
57+
"@id": "graph4",
58+
"@graph": [
59+
{
60+
"@id": "greatCity",
61+
"@type": "myns:City"
62+
},
63+
{
64+
"@id": "myns:City",
65+
"@type": "owl:Class"
66+
}
67+
]
68+
}
69+
2270
]
2371
}

media/inspector.js

Lines changed: 41720 additions & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)