-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpcc_bf.fig01.html
213 lines (170 loc) · 24.7 KB
/
pcc_bf.fig01.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
<html>
<head>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/vis-network@latest/styles/vis-network.css" type="text/css" />
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/vis-network@latest/dist/vis-network.min.js"> </script>
<center>
<h1></h1>
</center>
<!-- <link rel="stylesheet" href="../node_modules/vis/dist/vis.min.css" type="text/css" />
<script type="text/javascript" src="../node_modules/vis/dist/vis.js"> </script>-->
<style type="text/css">
#mynetwork {
width: 500px;
height: 500px;
background-color: #ffffff;
border: 1px solid lightgray;
position: relative;
float: left;
}
#loadingBar {
position:absolute;
top:0px;
left:0px;
width: 500px;
height: 500px;
background-color:rgba(200,200,200,0.8);
-webkit-transition: all 0.5s ease;
-moz-transition: all 0.5s ease;
-ms-transition: all 0.5s ease;
-o-transition: all 0.5s ease;
transition: all 0.5s ease;
opacity:1;
}
#bar {
position:absolute;
top:0px;
left:0px;
width:20px;
height:20px;
margin:auto auto auto auto;
border-radius:11px;
border:2px solid rgba(30,30,30,0.05);
background: rgb(0, 173, 246); /* Old browsers */
box-shadow: 2px 0px 4px rgba(0,0,0,0.4);
}
#border {
position:absolute;
top:10px;
left:10px;
width:500px;
height:23px;
margin:auto auto auto auto;
box-shadow: 0px 0px 4px rgba(0,0,0,0.2);
border-radius:10px;
}
#text {
position:absolute;
top:8px;
left:530px;
width:30px;
height:50px;
margin:auto auto auto auto;
font-size:22px;
color: #000000;
}
div.outerBorder {
position:relative;
top:400px;
width:600px;
height:44px;
margin:auto auto auto auto;
border:8px solid rgba(0,0,0,0.1);
background: rgb(252,252,252); /* Old browsers */
background: -moz-linear-gradient(top, rgba(252,252,252,1) 0%, rgba(237,237,237,1) 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(252,252,252,1)), color-stop(100%,rgba(237,237,237,1))); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, rgba(252,252,252,1) 0%,rgba(237,237,237,1) 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, rgba(252,252,252,1) 0%,rgba(237,237,237,1) 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(top, rgba(252,252,252,1) 0%,rgba(237,237,237,1) 100%); /* IE10+ */
background: linear-gradient(to bottom, rgba(252,252,252,1) 0%,rgba(237,237,237,1) 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#fcfcfc', endColorstr='#ededed',GradientType=0 ); /* IE6-9 */
border-radius:72px;
box-shadow: 0px 0px 10px rgba(0,0,0,0.2);
}
</style>
</head>
<body>
<div id = "mynetwork"></div>
<div id="loadingBar">
<div class="outerBorder">
<div id="text">0%</div>
<div id="border">
<div id="bar"></div>
</div>
</div>
</div>
<script type="text/javascript">
// initialize global variables.
var edges;
var nodes;
var network;
var container;
var options, data;
// This method is responsible for drawing the graph, returns the drawn network
function drawGraph() {
var container = document.getElementById('mynetwork');
// parsing and collecting nodes and edges from the python
nodes = new vis.DataSet([{"id": 0, "label": "\u003chttps://id.loc.gov/vocabulary/languages/eng\u003e", "shape": "dot", "title": "\u003chttps://id.loc.gov/vocabulary/languages/eng\u003e"}, {"id": 1, "label": "English", "shape": "dot", "title": "English"}, {"id": 2, "label": "\u003chttps://api.stage.sinopia.io/resource/6861fc10-0213-4dfc-b1a0-7df975d235dd\u003e", "shape": "dot", "title": "\u003chttps://api.stage.sinopia.io/resource/6861fc10-0213-4dfc-b1a0-7df975d235dd\u003e"}, {"id": 3, "label": "_:b3", "shape": "dot", "title": "_:b3"}, {"id": 4, "label": "_:b19", "shape": "dot", "title": "_:b19"}, {"id": 5, "label": "2022-06-09", "shape": "dot", "title": "2022-06-09"}, {"id": 6, "label": "\u003chttps://api.stage.sinopia.io/resource/16061ffa-147a-4b67-9a12-0990964f32d4\u003e", "shape": "dot", "title": "\u003chttps://api.stage.sinopia.io/resource/16061ffa-147a-4b67-9a12-0990964f32d4\u003e"}, {"id": 7, "label": "https://api.stage.sinopia.io/resource/16061ffa-147a-4b67-9a12-0990964f32d4", "shape": "dot", "title": "https://api.stage.sinopia.io/resource/16061ffa-147a-4b67-9a12-0990964f32d4"}, {"id": 8, "label": "_:b69", "shape": "dot", "title": "_:b69"}, {"id": 9, "label": "bf:Enumeration", "shape": "dot", "title": "bf:Enumeration"}, {"id": 10, "label": "_:b6", "shape": "dot", "title": "_:b6"}, {"id": 11, "label": "bf:SupplementaryContent", "shape": "dot", "title": "bf:SupplementaryContent"}, {"id": 12, "label": "\u003chttps://id.loc.gov/vocabulary/mediaTypes/n\u003e", "shape": "dot", "title": "\u003chttps://id.loc.gov/vocabulary/mediaTypes/n\u003e"}, {"id": 13, "label": "unmediated", "shape": "dot", "title": "unmediated"}, {"id": 14, "label": "\u003chttp://id.loc.gov/vocabulary/msupplcont/bibliography\u003e", "shape": "dot", "title": "\u003chttp://id.loc.gov/vocabulary/msupplcont/bibliography\u003e"}, {"id": 15, "label": "_:b8", "shape": "dot", "title": "_:b8"}, {"id": 16, "label": "ns1:Relation", "shape": "dot", "title": "ns1:Relation"}, {"id": 17, "label": "v. 2", "shape": "dot", "title": "v. 2"}, {"id": 18, "label": "_:b2", "shape": "dot", "title": "_:b2"}, {"id": 19, "label": "\u003chttp://id.loc.gov/vocabulary/relators/edt\u003e", "shape": "dot", "title": "\u003chttp://id.loc.gov/vocabulary/relators/edt\u003e"}, {"id": 20, "label": "\u003chttp://id.nlm.nih.gov/mesh/D006722\u003e", "shape": "dot", "title": "\u003chttp://id.nlm.nih.gov/mesh/D006722\u003e"}, {"id": 21, "label": "_:b7", "shape": "dot", "title": "_:b7"}, {"id": 22, "label": "\u003chttps://api.stage.sinopia.io/resource/6767bae3-ee42-4179-8b58-2f3791cb1a6b\u003e", "shape": "dot", "title": "\u003chttps://api.stage.sinopia.io/resource/6767bae3-ee42-4179-8b58-2f3791cb1a6b\u003e"}, {"id": 23, "label": "\u003chttp://id.loc.gov/vocabulary/organizations/dnlm\u003e", "shape": "dot", "title": "\u003chttp://id.loc.gov/vocabulary/organizations/dnlm\u003e"}, {"id": 24, "label": "_:b11", "shape": "dot", "title": "_:b11"}, {"id": 25, "label": "bf:Publication", "shape": "dot", "title": "bf:Publication"}, {"id": 26, "label": "_:b9", "shape": "dot", "title": "_:b9"}, {"id": 27, "label": "bf:AdminMetadata", "shape": "dot", "title": "bf:AdminMetadata"}, {"id": 28, "label": "\u003chttp://id.loc.gov/vocabulary/msupplcont/index\u003e", "shape": "dot", "title": "\u003chttp://id.loc.gov/vocabulary/msupplcont/index\u003e"}, {"id": 29, "label": "index", "shape": "dot", "title": "index"}, {"id": 30, "label": "_:b4", "shape": "dot", "title": "_:b4"}, {"id": 31, "label": "bf:Summary", "shape": "dot", "title": "bf:Summary"}, {"id": 32, "label": "\u003chttps://api.stage.sinopia.io/resource/986d673d-f006-44ab-8bf7-b92b279fddfa\u003e", "shape": "dot", "title": "\u003chttps://api.stage.sinopia.io/resource/986d673d-f006-44ab-8bf7-b92b279fddfa\u003e"}, {"id": 33, "label": "_:b13", "shape": "dot", "title": "_:b13"}, {"id": 34, "label": "United States, National Library of Medicine (Armed Forces Medical Library)", "shape": "dot", "title": "United States, National Library of Medicine (Armed Forces Medical Library)"}, {"id": 35, "label": "ns1:Relationship", "shape": "dot", "title": "ns1:Relationship"}, {"id": 36, "label": "pcc:bf2:Monograph:Instance", "shape": "dot", "title": "pcc:bf2:Monograph:Instance"}, {"id": 37, "label": "_:b10", "shape": "dot", "title": "_:b10"}, {"id": 38, "label": "bf:Title", "shape": "dot", "title": "bf:Title"}, {"id": 39, "label": "_:b18", "shape": "dot", "title": "_:b18"}, {"id": 40, "label": "v. 2 : hardbound", "shape": "dot", "title": "v. 2 : hardbound"}, {"id": 41, "label": "_:b15", "shape": "dot", "title": "_:b15"}, {"id": 42, "label": "DNLM", "shape": "dot", "title": "DNLM"}, {"id": 43, "label": "Therapeutic applications of honey and its phytochemicals", "shape": "dot", "title": "Therapeutic applications of honey and its phytochemicals"}, {"id": 44, "label": "bf:Source", "shape": "dot", "title": "bf:Source"}, {"id": 45, "label": "bibliography", "shape": "dot", "title": "bibliography"}, {"id": 46, "label": "\u003chttp://id.loc.gov/vocabulary/menclvl/f\u003e", "shape": "dot", "title": "\u003chttp://id.loc.gov/vocabulary/menclvl/f\u003e"}, {"id": 47, "label": "Singapore : Springer, [2020]", "shape": "dot", "title": "Singapore : Springer, [2020]"}, {"id": 48, "label": "\u003chttps://id.loc.gov/vocabulary/marcauthen/pcc\u003e", "shape": "dot", "title": "\u003chttps://id.loc.gov/vocabulary/marcauthen/pcc\u003e"}, {"id": 49, "label": "\u003chttp://id.loc.gov/authorities/names/n79059023\u003e", "shape": "dot", "title": "\u003chttp://id.loc.gov/authorities/names/n79059023\u003e"}, {"id": 50, "label": "\u003chttps://id.loc.gov/vocabulary/issuance/mono\u003e", "shape": "dot", "title": "\u003chttps://id.loc.gov/vocabulary/issuance/mono\u003e"}, {"id": 51, "label": "multipart monograph", "shape": "dot", "title": "multipart monograph"}, {"id": 52, "label": "_:b67", "shape": "dot", "title": "_:b67"}, {"id": 53, "label": "NLM057315341", "shape": "dot", "title": "NLM057315341"}, {"id": 54, "label": "_:b5", "shape": "dot", "title": "_:b5"}, {"id": 55, "label": "bf:ClassificationNlm", "shape": "dot", "title": "bf:ClassificationNlm"}, {"id": 56, "label": "_:b12", "shape": "dot", "title": "_:b12"}, {"id": 57, "label": "bf:Isbn", "shape": "dot", "title": "bf:Isbn"}, {"id": 58, "label": "_:b14", "shape": "dot", "title": "_:b14"}, {"id": 59, "label": "9918334965606676", "shape": "dot", "title": "9918334965606676"}, {"id": 60, "label": "_:b16", "shape": "dot", "title": "_:b16"}, {"id": 61, "label": "_:b17", "shape": "dot", "title": "_:b17"}, {"id": 62, "label": "\u003chttp://id.loc.gov/authorities/names/nr2005022094\u003e", "shape": "dot", "title": "\u003chttp://id.loc.gov/authorities/names/nr2005022094\u003e"}, {"id": 63, "label": "Springer (Firm)", "shape": "dot", "title": "Springer (Firm)"}, {"id": 64, "label": "bf:Role", "shape": "dot", "title": "bf:Role"}, {"id": 65, "label": "Honey typically has a complex chemical and biochemical composition that invariably includes complex sugars, specific proteins, amino acids, phenols, vitamins, and rare minerals. It is reported to be beneficial in the treatment of various diseases, such as those affecting the respiratory, cardiovascular, gastrointestinal, and nervous systems, as well as diabetes mellitus and certain types of cancers; however, there is limited literature describing the use of honey in modern medicine. This book provides evidence-based information on the pharmaceutical potential of honey along with its therapeutic applications and precise mechanisms of action. It discusses in detail the phytochemistry and pharmacological properties of honey, highlighting the economic and culturally significant medicinal uses of honey and comprehensively reviewing the scientific research on the traditional uses, chemical composition, scientific validation, and general pharmacognostical characteristics. Given its scope, it is a valuable tool for researchers and scientists interested in drug discovery and the chemistry and pharmacology of honey.", "shape": "dot", "title": "Honey typically has a complex chemical and biochemical composition that invariably includes complex sugars, specific proteins, amino acids, phenols, vitamins, and rare minerals. It is reported to be beneficial in the treatment of various diseases, such as those affecting the respiratory, cardiovascular, gastrointestinal, and nervous systems, as well as diabetes mellitus and certain types of cancers; however, there is limited literature describing the use of honey in modern medicine. This book provides evidence-based information on the pharmaceutical potential of honey along with its therapeutic applications and precise mechanisms of action. It discusses in detail the phytochemistry and pharmacological properties of honey, highlighting the economic and culturally significant medicinal uses of honey and comprehensively reviewing the scientific research on the traditional uses, chemical composition, scientific validation, and general pharmacognostical characteristics. Given its scope, it is a valuable tool for researchers and scientists interested in drug discovery and the chemistry and pharmacology of honey."}, {"id": 66, "label": "\u003chttp://id.nlm.nih.gov/mesh/D056705\u003e", "shape": "dot", "title": "\u003chttp://id.nlm.nih.gov/mesh/D056705\u003e"}, {"id": 67, "label": "Apitherapy", "shape": "dot", "title": "Apitherapy"}, {"id": 68, "label": "\u00a92020", "shape": "dot", "title": "\u00a92020"}, {"id": 69, "label": "_:b68", "shape": "dot", "title": "_:b68"}, {"id": 70, "label": "bf:Chronology", "shape": "dot", "title": "bf:Chronology"}, {"id": 71, "label": "pcc:bf2:Monograph:Work", "shape": "dot", "title": "pcc:bf2:Monograph:Work"}, {"id": 72, "label": "pcc:bf2:Monograph:Item", "shape": "dot", "title": "pcc:bf2:Monograph:Item"}, {"id": 73, "label": "\u003chttps://id.loc.gov/vocabulary/descriptionConventions/rda\u003e", "shape": "dot", "title": "\u003chttps://id.loc.gov/vocabulary/descriptionConventions/rda\u003e"}, {"id": 74, "label": "Resource Description and Access", "shape": "dot", "title": "Resource Description and Access"}, {"id": 75, "label": "WB 365", "shape": "dot", "title": "WB 365"}, {"id": 76, "label": "bf:Extent", "shape": "dot", "title": "bf:Extent"}, {"id": 77, "label": "1156990712", "shape": "dot", "title": "1156990712"}, {"id": 78, "label": "bf:Local", "shape": "dot", "title": "bf:Local"}, {"id": 79, "label": "\u003chttp://id.loc.gov/vocabulary/carriers/nc\u003e", "shape": "dot", "title": "\u003chttp://id.loc.gov/vocabulary/carriers/nc\u003e"}, {"id": 80, "label": "bf:Print", "shape": "dot", "title": "bf:Print"}, {"id": 81, "label": "_:b66", "shape": "dot", "title": "_:b66"}, {"id": 82, "label": "bf:ShelfMarkNlm", "shape": "dot", "title": "bf:ShelfMarkNlm"}, {"id": 83, "label": "OCLC", "shape": "dot", "title": "OCLC"}, {"id": 84, "label": "volume", "shape": "dot", "title": "volume"}, {"id": 85, "label": "bf:Item", "shape": "dot", "title": "bf:Item"}, {"id": 86, "label": "gtruth", "shape": "dot", "title": "gtruth"}, {"id": 87, "label": "bf:Instance", "shape": "dot", "title": "bf:Instance"}, {"id": 88, "label": "_:b1", "shape": "dot", "title": "_:b1"}, {"id": 89, "label": "ns1:PrimaryContribution", "shape": "dot", "title": "ns1:PrimaryContribution"}, {"id": 90, "label": "\u003chttps://id.loc.gov/vocabulary/contentTypes/txt\u003e", "shape": "dot", "title": "\u003chttps://id.loc.gov/vocabulary/contentTypes/txt\u003e"}, {"id": 91, "label": "text", "shape": "dot", "title": "text"}, {"id": 92, "label": "full", "shape": "dot", "title": "full"}, {"id": 93, "label": "9789811567988 ", "shape": "dot", "title": "9789811567988 "}, {"id": 94, "label": "bf:Barcode", "shape": "dot", "title": "bf:Barcode"}, {"id": 95, "label": "2 volumes ", "shape": "dot", "title": "2 volumes "}, {"id": 96, "label": "v.1: hardbound", "shape": "dot", "title": "v.1: hardbound"}, {"id": 97, "label": "Program for Cooperative Cataloging", "shape": "dot", "title": "Program for Cooperative Cataloging"}, {"id": 98, "label": "bf:Contribution", "shape": "dot", "title": "bf:Contribution"}, {"id": 99, "label": "bf:Agent", "shape": "dot", "title": "bf:Agent"}, {"id": 100, "label": "Honey", "shape": "dot", "title": "Honey"}, {"id": 101, "label": "translation", "shape": "dot", "title": "translation"}, {"id": 102, "label": "2020", "shape": "dot", "title": "2020"}, {"id": 103, "label": "bf:Work", "shape": "dot", "title": "bf:Work"}, {"id": 104, "label": "9789811573040", "shape": "dot", "title": "9789811573040"}, {"id": 105, "label": "[2020]", "shape": "dot", "title": "[2020]"}, {"id": 106, "label": "Muneeb U. Rehman, Sabhiya Majid, editors.", "shape": "dot", "title": "Muneeb U. Rehman, Sabhiya Majid, editors."}, {"id": 107, "label": "Editor", "shape": "dot", "title": "Editor"}, {"id": 108, "label": "Singapore", "shape": "dot", "title": "Singapore"}, {"id": 109, "label": "2022 A-614 v.2", "shape": "dot", "title": "2022 A-614 v.2"}, {"id": 110, "label": "GENCOLL", "shape": "dot", "title": "GENCOLL"}]);
edges = new vis.DataSet([{"from": 0, "label": "rdfs:label", "to": 1}, {"from": 2, "label": "bf:title", "to": 3}, {"from": 4, "label": "bf:creationDate", "to": 5}, {"from": 6, "label": "rdfs:label", "to": 7}, {"from": 8, "label": "rdf:type", "to": 9}, {"from": 10, "label": "rdf:type", "to": 11}, {"from": 12, "label": "rdfs:label", "to": 13}, {"from": 10, "label": "rdfs:label", "to": 14}, {"from": 15, "label": "rdf:type", "to": 16}, {"from": 8, "label": "rdfs:label", "to": 17}, {"from": 18, "label": "bf:role", "to": 19}, {"from": 2, "label": "bf:subject", "to": 20}, {"from": 2, "label": "ns1:relationship", "to": 21}, {"from": 22, "label": "bf:heldBy", "to": 23}, {"from": 24, "label": "rdf:type", "to": 25}, {"from": 26, "label": "rdf:type", "to": 27}, {"from": 28, "label": "rdfs:label", "to": 29}, {"from": 30, "label": "rdf:type", "to": 31}, {"from": 32, "label": "bf:provisionActivity", "to": 24}, {"from": 32, "label": "bf:identifiedBy", "to": 33}, {"from": 23, "label": "rdfs:label", "to": 34}, {"from": 21, "label": "rdf:type", "to": 35}, {"from": 32, "label": "sinopia:hasResourceTemplate", "to": 36}, {"from": 37, "label": "rdf:type", "to": 38}, {"from": 32, "label": "bf:extent", "to": 39}, {"from": 33, "label": "bf:qualifier", "to": 40}, {"from": 41, "label": "rdfs:label", "to": 42}, {"from": 37, "label": "bf:mainTitle", "to": 43}, {"from": 41, "label": "rdf:type", "to": 44}, {"from": 14, "label": "rdfs:label", "to": 45}, {"from": 3, "label": "rdf:type", "to": 38}, {"from": 21, "label": "ns1:relation", "to": 15}, {"from": 26, "label": "ns1:encodingLevel", "to": 46}, {"from": 32, "label": "bf:provisionActivityStatement", "to": 47}, {"from": 32, "label": "rdfs:label", "to": 43}, {"from": 4, "label": "bf:descriptionAuthentication", "to": 48}, {"from": 24, "label": "bf:place", "to": 49}, {"from": 50, "label": "rdfs:label", "to": 51}, {"from": 32, "label": "bf:title", "to": 37}, {"from": 52, "label": "rdf:value", "to": 53}, {"from": 54, "label": "rdf:type", "to": 55}, {"from": 56, "label": "rdf:type", "to": 57}, {"from": 58, "label": "rdf:value", "to": 59}, {"from": 60, "label": "bf:source", "to": 61}, {"from": 2, "label": "bf:summary", "to": 30}, {"from": 62, "label": "rdfs:label", "to": 63}, {"from": 26, "label": "bf:descriptionLanguage", "to": 0}, {"from": 19, "label": "rdf:type", "to": 64}, {"from": 30, "label": "rdfs:label", "to": 65}, {"from": 66, "label": "rdfs:label", "to": 67}, {"from": 3, "label": "bf:mainTitle", "to": 43}, {"from": 32, "label": "bf:adminMetadata", "to": 4}, {"from": 32, "label": "bf:identifiedBy", "to": 58}, {"from": 32, "label": "bf:copyrightDate", "to": 68}, {"from": 69, "label": "rdf:type", "to": 70}, {"from": 2, "label": "sinopia:hasResourceTemplate", "to": 71}, {"from": 22, "label": "sinopia:hasResourceTemplate", "to": 72}, {"from": 2, "label": "bf:contribution", "to": 18}, {"from": 73, "label": "rdfs:label", "to": 74}, {"from": 54, "label": "bf:classification", "to": 75}, {"from": 39, "label": "rdf:type", "to": 76}, {"from": 60, "label": "rdf:value", "to": 77}, {"from": 26, "label": "bf:creationDate", "to": 5}, {"from": 58, "label": "rdf:type", "to": 78}, {"from": 4, "label": "bf:descriptionLanguage", "to": 0}, {"from": 32, "label": "bf:carrier", "to": 79}, {"from": 32, "label": "rdf:type", "to": 80}, {"from": 4, "label": "bf:source", "to": 23}, {"from": 24, "label": "bf:agent", "to": 62}, {"from": 26, "label": "bf:source", "to": 23}, {"from": 32, "label": "bf:issuance", "to": 50}, {"from": 22, "label": "bf:itemOf", "to": 32}, {"from": 81, "label": "rdf:type", "to": 82}, {"from": 61, "label": "rdfs:label", "to": 83}, {"from": 2, "label": "bf:supplementaryContent", "to": 10}, {"from": 22, "label": "bf:identifiedBy", "to": 52}, {"from": 79, "label": "rdfs:label", "to": 84}, {"from": 22, "label": "rdf:type", "to": 85}, {"from": 26, "label": "ns1:catalogerId", "to": 86}, {"from": 60, "label": "rdf:type", "to": 78}, {"from": 32, "label": "bf:media", "to": 12}, {"from": 2, "label": "bf:adminMetadata", "to": 26}, {"from": 32, "label": "rdf:type", "to": 87}, {"from": 2, "label": "bf:hasInstance", "to": 32}, {"from": 88, "label": "rdf:type", "to": 89}, {"from": 58, "label": "bf:source", "to": 41}, {"from": 33, "label": "rdf:type", "to": 57}, {"from": 4, "label": "rdf:type", "to": 27}, {"from": 90, "label": "rdfs:label", "to": 91}, {"from": 22, "label": "bf:shelfMark", "to": 81}, {"from": 46, "label": "rdfs:label", "to": 92}, {"from": 56, "label": "rdf:value", "to": 93}, {"from": 61, "label": "rdf:type", "to": 44}, {"from": 10, "label": "rdfs:label", "to": 28}, {"from": 32, "label": "bf:identifiedBy", "to": 56}, {"from": 4, "label": "ns1:catalogerId", "to": 86}, {"from": 2, "label": "bf:contribution", "to": 88}, {"from": 52, "label": "rdf:type", "to": 94}, {"from": 26, "label": "bf:descriptionConventions", "to": 73}, {"from": 39, "label": "rdfs:label", "to": 95}, {"from": 56, "label": "bf:qualifier", "to": 96}, {"from": 48, "label": "rdfs:label", "to": 97}, {"from": 18, "label": "rdf:type", "to": 98}, {"from": 62, "label": "rdf:type", "to": 99}, {"from": 26, "label": "bf:descriptionAuthentication", "to": 48}, {"from": 32, "label": "bf:hasItem", "to": 6}, {"from": 20, "label": "rdfs:label", "to": 100}, {"from": 88, "label": "bf:role", "to": 19}, {"from": 4, "label": "bf:descriptionConventions", "to": 73}, {"from": 15, "label": "rdfs:label", "to": 101}, {"from": 69, "label": "rdfs:label", "to": 102}, {"from": 2, "label": "rdf:type", "to": 103}, {"from": 33, "label": "rdf:value", "to": 104}, {"from": 24, "label": "bf:date", "to": 105}, {"from": 2, "label": "bf:classification", "to": 54}, {"from": 2, "label": "bf:subject", "to": 66}, {"from": 4, "label": "ns1:encodingLevel", "to": 46}, {"from": 2, "label": "bf:originDate", "to": 102}, {"from": 32, "label": "bf:responsibilityStatement", "to": 106}, {"from": 19, "label": "rdfs:label", "to": 107}, {"from": 22, "label": "bf:enumerationAndChronology", "to": 8}, {"from": 49, "label": "rdfs:label", "to": 108}, {"from": 2, "label": "bf:content", "to": 90}, {"from": 81, "label": "rdf:value", "to": 109}, {"from": 22, "label": "bf:enumerationAndChronology", "to": 69}, {"from": 22, "label": "bf:sublocation", "to": 110}, {"from": 32, "label": "bf:identifiedBy", "to": 60}]);
// adding nodes and edges to the graph
data = {nodes: nodes, edges: edges};
var options = {
"configure": {
"enabled": false
},
"edges": {
"color": {
"inherit": true
},
"smooth": {
"enabled": true,
"type": "dynamic"
}
},
"interaction": {
"dragNodes": true,
"hideEdgesOnDrag": false,
"hideNodesOnDrag": false
},
"physics": {
"enabled": true,
"forceAtlas2Based": {
"avoidOverlap": 0,
"centralGravity": 0.01,
"damping": 0.4,
"gravitationalConstant": -50,
"springConstant": 0.08,
"springLength": 100
},
"solver": "forceAtlas2Based",
"stabilization": {
"enabled": true,
"fit": true,
"iterations": 1000,
"onlyDynamicEdges": false,
"updateInterval": 50
}
}
};
network = new vis.Network(container, data, options);
network.on("stabilizationProgress", function(params) {
document.getElementById('loadingBar').removeAttribute("style");
var maxWidth = 496;
var minWidth = 20;
var widthFactor = params.iterations/params.total;
var width = Math.max(minWidth,maxWidth * widthFactor);
document.getElementById('bar').style.width = width + 'px';
document.getElementById('text').innerHTML = Math.round(widthFactor*100) + '%';
});
network.once("stabilizationIterationsDone", function() {
document.getElementById('text').innerHTML = '100%';
document.getElementById('bar').style.width = '496px';
document.getElementById('loadingBar').style.opacity = 0;
// really clean the dom element
setTimeout(function () {document.getElementById('loadingBar').style.display = 'none';}, 500);
});
return network;
}
drawGraph();
</script>
</body>
</html>