-
Notifications
You must be signed in to change notification settings - Fork 0
/
nft-business-models.html
701 lines (590 loc) · 43.9 KB
/
nft-business-models.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
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-W3TJ27QQ4T"></script>
<script src="/products/ecommerce.js"></script>
<script>
// [start] GA Tag
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag('js', new Date());
gtag('config', 'G-W3TJ27QQ4T');
// [end] GA Tag
function getURLParam(param) {
return new URL(window.location.href).searchParams.get(param);
}
if (getURLParam('dev') === null) {
ECommerce.clickEvent();
}
</script>
<title>bumonft — NFT collection of business models for metaverse organizations</title>
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "SoftwareApplication",
"name": "BUMONFT",
"operatingSystem": "Any",
"applicationCategory": "BusinessApplication",
"aggregateRating": {
"@type": "AggregateRating",
"ratingValue": "5.0",
"ratingCount": "1"
},
"offers": {
"@type": "Offer",
"price": "0.00",
"priceCurrency": "USD"
}
}
</script>
<meta name="title" content="bumonft — NFT collection of business models for metaverse organizations">
<meta name="description" content="A blockchain-driven NFT protocol for BPMN ARIS ArchiMate and other business models that can be shared and co-designed by virtual or traditional companies.">
<meta property="og:type" content="website">
<meta property="og:title" content="bumonft — NFT collection of business models for metaverse organizations">
<meta property="og:description" content="A blockchain-driven NFT protocol for BPMN ARIS ArchiMate and other business models that can be shared and co-designed by virtual or traditional companies.">
<meta property="twitter:card" content="summary_large_image">
<meta property="twitter:title" content="bumonft — NFT collection of business models for metaverse organizations">
<meta property="twitter:description" content="A blockchain-driven NFT protocol for BPMN ARIS ArchiMate and other business models that can be shared and co-designed by virtual or traditional companies.">
<meta name="keywords" content="nft business model metaverse blockchain bpmn aris archimate collection virtual organization company protocol">
<meta name="robots" content="index, follow">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="language" content="English">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Font -->
<link href="https://fonts.googleapis.com/css?family=Montserrat" rel="stylesheet" />
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous">
<link rel="icon" type="image/png" href="/images/nft/logo.png" />
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-8990058470889069" crossorigin="anonymous"></script>
<!-- Styles -->
<style>
body {
font-family: 'Montserrat', sans-serif;
background: rgb(143, 154, 207);
background: radial-gradient(circle, rgba(143, 154, 207, 0.2) 0%, rgba(252, 70, 107, 0.2) 100%);
}
.banner-img {
width: 40%;
}
.btn {
background-color: #ECEFF1;
border-color: #ECEFF1;
font-weight: bold;
}
.rnd-item {
border-radius: 1rem;
}
.img-thumbnail {
padding: 0.75rem;
}
</style>
</head>
<body id="app">
<nav class="navbar sticky-top navbar-expand-lg navbar-light bg-light">
<a class="navbar-brand" href="javascript:void(0);"><b>BUMONFT</b></a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav">
<li class="nav-item">
<div class="ml-2 mr-2" id="google_translate_element"></div>
</li>
<li class="nav-item">
<a class="nav-link" href="#app">Home</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#tryArea">Collection</a>
</li>
</ul>
</div>
</nav>
<div class="text-center ml-4 mr-4 mt-4 mb-4">
<div style="transform: scale(1);" class="mb-4">
<svg width="175" height="55.00000000000001" viewBox="0 0 175 55.00000000000001" class="css-1j8o68f">
<defs id="SvgjsDefs1519"></defs>
<g id="SvgjsG1520" featurekey="v37d4h-0"
transform="matrix(1.7187500000000002,0,0,1.7187500000000002,0,-0.01890569925308228)" fill="#fc4c69">
<g xmlns="http://www.w3.org/2000/svg" display="none">
<rect x="-26.591" y="-65.699" display="inline" fill="#fc4c69" width="240.181" height="241.399">
</rect>
</g>
<g xmlns="http://www.w3.org/2000/svg" display="none">
<path display="inline"
d="M16,1.425l14.586,14.586L16,30.596L1.414,16.011L16,1.425 M16,0.011l-16,16l16,16l16-16L16,0.011 L16,0.011z">
</path>
<path display="inline"
d="M16,9.901l6.11,6.11L16,22.121l-6.11-6.11L16,9.901 M16,8.486l-7.524,7.524L16,23.535l7.524-7.524 L16,8.486L16,8.486z">
</path>
</g>
<g xmlns="http://www.w3.org/2000/svg" display="none">
<g display="inline">
<g>
<rect x="5.186" y="5.197"
transform="matrix(0.7071 -0.7071 0.7071 0.7071 -6.635 16.0031)" fill="#fc4c69"
width="21.628" height="21.628"></rect>
</g>
<g>
<path
d="M16,1.425l14.586,14.586L16,30.596L1.414,16.011L16,1.425 M16,0.011l-16,16l16,16l16-16L16,0.011L16,0.011z">
</path>
</g>
</g>
<g display="inline">
<g>
<rect x="11.179" y="11.19"
transform="matrix(0.7071 -0.7071 0.7071 0.7071 -6.635 16.0031)" fill="#fc4c69"
width="9.641" height="9.641"></rect>
</g>
<g>
<g>
<path
d="M16,9.901l6.11,6.11L16,22.121l-6.11-6.11L16,9.901 M16,8.486l-7.524,7.524L16,23.535l7.524-7.524L16,8.486L16,8.486z">
</path>
</g>
</g>
</g>
</g>
<g xmlns="http://www.w3.org/2000/svg" display="none">
<g display="inline">
<rect x="4.686" y="4.697" transform="matrix(0.7071 -0.7071 0.7071 0.7071 -6.6349 16.0031)"
fill="#fc4c69" width="22.627" height="22.627"></rect>
</g>
<g display="inline">
<rect x="10.68" y="10.69" transform="matrix(0.7071 -0.7071 0.7071 0.7071 -6.6349 16.0031)"
fill="#fc4c69" width="10.641" height="10.641"></rect>
</g>
</g>
<g xmlns="http://www.w3.org/2000/svg">
<g>
<path
d="M32,16.011l-16-16l-16,16l16,16L32,16.011z M16,10.709l5.302,5.302L16,21.312l-5.302-5.302L16,10.709z">
</path>
</g>
</g>
</g>
<g id="SvgjsG1521" featurekey="UxBHKT-0"
transform="matrix(1.126126087424954,0,0,1.126126087424954,73.44594600472335,13.594594565568716)"
fill="#65605f">
<path
d="M1.38 20 l0 -15.12 l2.96 0 l0 5.26 q0.46 -0.6 1.33 -0.99 t2.01 -0.39 q1.7 0 2.95 0.76 t1.91 2.07 t0.66 2.91 t-0.66 2.91 t-1.91 2.07 t-2.95 0.76 q-1.1 0 -2.03 -0.41 t-1.31 -0.93 l0 1.1 l-2.96 0 z M5.03 16.77 q0.81 0.83 2.21 0.83 q1.36 0 2.19 -0.88 t0.83 -2.22 q0 -1.38 -0.81 -2.25 t-2.21 -0.87 q-1.38 0 -2.2 0.87 t-0.82 2.25 q0 1.44 0.81 2.27 z M15.62 15.54 l0 -6.5 l3.02 0 l0 6.5 q0 1.18 0.59 1.69 t1.55 0.51 q0.84 0 1.5 -0.65 t0.6 -2.23 l0 -5.82 l3 0 l0 10.96 l-3 0 l0 -0.94 q-0.54 0.56 -1.31 0.87 t-1.63 0.31 q-4.32 0 -4.32 -4.7 z M45.21 10.04 q1.13 1.24 1.13 3.46 l0 6.5 l-3.02 0 l0 -6.5 q0 -1.18 -0.59 -1.7 t-1.55 -0.52 q-0.8 0 -1.44 0.6 t-0.66 2 l0 6.12 l-3.02 0 l0 -6.5 q0 -1.18 -0.59 -1.7 t-1.53 -0.52 q-0.86 0 -1.49 0.64 t-0.63 2.26 l-0.02 5.82 l-2.98 0 l0 -11 l2.98 0 l0 1 q0.58 -0.52 1.4 -0.86 t1.5 -0.34 q2.32 0 3.54 1.5 q0.62 -0.7 1.54 -1.1 t2 -0.4 q2.3 0 3.43 1.24 z M51.89 19.49 q-1.37 -0.77 -2.17 -2.09 t-0.8 -2.88 q0 -1.54 0.8 -2.86 t2.17 -2.09 t2.99 -0.77 t3 0.77 t2.19 2.09 t0.81 2.86 q0 1.56 -0.81 2.88 t-2.19 2.09 t-3 0.77 t-2.99 -0.77 z M53.36 11.83 q-0.7 0.41 -1.1 1.12 t-0.4 1.57 q0 0.9 0.39 1.61 t1.08 1.12 t1.55 0.41 q0.84 0 1.53 -0.41 t1.09 -1.13 t0.4 -1.6 q0 -0.86 -0.4 -1.57 t-1.09 -1.12 t-1.53 -0.41 q-0.82 0 -1.52 0.41 z M72.53 10.02 q1.03 1.22 1.03 3.48 l0 6.5 l-3.06 0 l0 -6.5 q0 -2.22 -2.12 -2.22 q-0.82 0 -1.48 0.65 t-0.62 2.25 l0 5.82 l-2.98 0 l0 -11 l2.98 0 l0 0.98 q0.54 -0.54 1.36 -0.86 t1.58 -0.32 q2.28 0 3.31 1.22 z M79.98 20 l-3 0 l0 -8.26 l-1.24 0 l0 -2.56 l1.24 0 q0.08 -2.14 1.22 -3.26 t3.16 -1.12 q0.6 0 1.32 0.18 l-0.16 2.42 q-0.38 -0.12 -0.82 -0.12 q-1.08 0 -1.4 0.54 t-0.32 1.36 l1.98 0 l0 2.56 l-1.98 0 l0 8.26 z M87.98 16.08 q0 0.7 0.24 1.17 t1.12 0.47 q0.4 0 0.76 -0.04 l0 2.52 q-0.72 0.08 -1.34 0.08 q-1.28 0 -2.07 -0.21 t-1.23 -0.81 t-0.44 -1.72 l0 -6.1 l-1.34 0 l0 -2.62 l1.34 0 l0 -2.94 l2.96 0 l0 2.94 l2.2 0 l0 2.62 l-2.2 0 l0 4.64 z">
</path>
</g>
</svg>
</div>
<h1>bumonft — NFT collection of business models for metaverse organizations</h1>
<h3>A blockchain-driven NFT protocol for BPMN ARIS ArchiMate and other business models that can be shared and co-designed by virtual or traditional companies.</h3>
<a href="#tryArea" class="btn btn-lg mt-4 rnd-item" role="button">TRY FOR FREE</a>
<br>
<img src="/images/nft/top.png" class="img-fluid banner-img mt-4" alt="top.png">
<p class="text-muted">Business modeling is a technology that helps organizations capture their core business processes, applications, data structures, and infrastructures visually as diagrams. Different business modeling notations serve various purposes and stakeholders
to analyze ongoing enterprise architecture and propose changes for company improvement to increase company revenue and reduce costs. These models are the most valuable organizational assets that depict competitive business solutions proven
by benchmarking. Despite multiple reference business models accessible on the Internet for free or usually for purchasing, the knowledge transfer in the business architecture domain is still far from unification for inter-organization use.</p>
<p class="text-muted">Many of the visionaries predict transfer from traditional to virtual organizations in the upcoming 2-3 years. Because of the COVID-19 outbreak, many companies have already shifted their business to distribute teams linked through the Internet
that use videoconference meetings and shared cloud workspaces to conduct their business processes. With the blockchain technology adoption, Decentralized Autonomous Organizations (DAO) appeared as virtual organizations that operate in accordance
with rules encoded in smart contracts. Now the 3D space, Virtual Reality (VR), and Augmented Reality (AR) technologies are gaining more and more popularity. In the next few years, virtual organizations will migrate to the metaverse. Therefore,
having a unified proof of identification NFT-driven mechanism suitable for virtual organizations will help them share and co-design their digital assets either in a traditional way or in the metaverse.</p>
<span id="tryArea"></span>
<br>
<br>
<br>
<p class="h5 text-muted mt-4 mb-1" style="font-weight: bold;">NFT-DRIVEN COLLECTION OF BUSINESS MODELS</p>
<p class="mt-4 mb-1"><span class="text-muted">Market Cap</span> ♦ <span id="total-value">0</span> <span class="text-muted">|</span> $<span id="total-value2">0</span></p>
<p class="mt-1 mb-4"><span class="text-muted">Assets</span> <span id="total-supply">0</span></p>
<div class="row">
<div class="col-sm-3">
<input type="text" class="form-control rnd-item mb-2" placeholder="Enter the smart contract address" id="collectionAddress">
<a href="javascript:void(0);" class="btn btn-sm mt-1 mb-4 rnd-item" role="button" onclick="openCollection();">OPEN MY COLLECTION</a>
<p class="text-muted mt-1 mb-1">It uses the Ethereum-compatible <a href="https://github.com/freebpmnquality/freebpmnquality.github.io/blob/master/resources/nft/bumonft.sol" target="_blank">smart contract</a> deployed to the <span id="testnet-link">Goerli Network</span></p>
<hr>
<p class="h5 text-muted mb-3"><small>COIN PRICE CHART WIDGET</small></p>
<div data-background-color="" data-currency="usd" data-coin-id="ethereum" data-locale="en" data-height="300" data-width="" class="coingecko-coin-price-chart-widget mb-4"></div>
<script src="https://widgets.coingecko.com/div/coingecko-coin-price-chart-widget-div.js"></script>
</div>
<div class="col-sm-9">
<div class="row row-cols-1 row-cols-md-2" id="gallery">
</div>
</div>
</div>
<img src="/images/nft/bottom.png" class="img-fluid banner-img mt-4" alt="bottom.png">
<div class="modal fade" id="itemModal" tabindex="-1" role="dialog" aria-labelledby="itemModalLabel" aria-hidden="true">
<div class="modal-dialog modal-xl" role="document">
<div class="modal-content rnd-item">
<div class="modal-header">
<h5 class="modal-title" id="itemModalLabel"></h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span
aria-hidden="true">×</span></button>
</div>
<div class="modal-body">
<div id="item-image"></div>
<p class="mt-4 mb-0">Owned by <span id="item-owner" style="word-break: break-all;"></span></p>
<p class="mt-1" id="item-value"></p>
<div class="row row-cols-1 row-cols-md-2 mt-2">
<div class="col mb-4">
<div class="card h-100 rnd-item">
<div class="card-body">
<h5 class="card-title mb-1">Information</h5>
<p class="card-text mb-1" id="item-description"></p>
<p class="card-text mb-1" id="item-industry"></p>
<p class="card-text mb-1" id="item-authenticity"></p>
<p class="card-text mb-1" id="item-dateTime"></p>
</div>
</div>
</div>
<div class="col mb-4">
<div class="card h-100 rnd-item">
<div class="card-body">
<h5 class="card-title mb-1">Quality</h5>
<p class="card-text mb-1" id="item-m5"></p>
<p class="card-text mb-1"><small class="text-muted">Correctness</small></p>
<p class="card-text mb-1" id="item-m1"></p>
<p class="card-text mb-1"><small class="text-muted">Completeness</small></p>
<p class="card-text mb-1" id="item-m2"></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="modal fade" id="messageModal" tabindex="-1" role="dialog" aria-labelledby="messageModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="messageModalLabel"><b>Message</b></h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span
aria-hidden="true">×</span></button>
</div>
<div class="modal-body" id="message-text"></div>
</div>
</div>
</div>
<div class="jumbotron jumbotron-fluid text-muted" id="footer">
<div class="ml-4">
<div class="ml-4">
<b>BUMONFT</b> by <a href="/index.html" target="_blank"><b>freebpmnquality</b></a>, 2020 -
<script>
document.write(new Date().getFullYear())
</script> <a href="https://creativecommons.org/licenses/by-nd/4.0/" target="_blank">(CC BY-ND)</a>, <a href="/privacy-policy.html" target="_blank">Privacy Policy</a>
</div>
</div>
</div>
<!-- Bootstrap JS -->
<script src="https://code.jquery.com/jquery-3.6.0.min.js" integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js" integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js" integrity="sha384-wfSDF2E50Y2D1uUdj0O3uMBJnjuUD4Ih7YwaYd1iqfktj0Uod8GCExl3Og8ifwB6" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/web3/1.7.0-rc.0/web3.min.js" integrity="sha512-/PTXSvaFzmO4So7Ghyq+DEZOz0sNLU4v1DP4gMOfY3kFu9L/IKoqSHZ6lNl3ZoZ7wT20io3vu/U4IchGcGIhfw==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/crypto-js/4.1.1/crypto-js.min.js" integrity="sha512-E8QSvWZ0eCLGk4km3hxSsNmGWbLtSCSUcewDQPQWZF6pEU8GlT8a5fF32wOl1i8ftdMhssTrF/OhyGWwonTcXA==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<!-- App -->
<script type="text/javascript">
function displayMessage(messageText) {
$('#message-text').html(messageText);
$('#messageModal').modal('show');
}
const contractAddress = '0x90b33169d1151cf8b0ebeee42f82f59b75651d60';
// for pre-testnet development purposes
const web3Stub = {
eth: {
Contract: class bumonft {
constructor(abi, address) {
const timestamp = Number.parseInt(Date.now() / 1000);
const models = [
// BPMN
[
'Order goods',
'/images/models/bpmn/Order%20goods.png',
'2b74920eb4dd446639e3a3451c2a15b221186e0875151ae94c08b3db6ba33403',
'Example of a Business Process Model and Notation for a process "Order goods".',
'BPMN',
9,
0,
0,
0,
0,
timestamp
],
[
'Receive goods',
'/images/models/bpmn/Receive%20goods.png',
'b3d8a657fce8c469a2e08d3c4434c8fe172c59fb7ce34f40d63b2c921b86bceb',
'Example of a Business Process Model and Notation for a process "Receive goods".',
'BPMN',
10,
0,
0,
0,
0,
timestamp
],
[
'Sell goods',
'/images/models/bpmn/Sell%20goods.png',
'008083f15e136774d5cb6c1f2c886bd51355db55f55da986c832192d79134fad',
'Example of a Business Process Model and Notation for a process "Sell goods".',
'BPMN',
9,
0,
0,
0,
0,
timestamp
],
// ARIS
[
'Organizational chart',
'/images/models/aris/Organizational%20chart.png',
'a12ad689327be9655e97090126984e22f23eea1529f8beea8c8da7bcd6e7031d',
'Example of an Architecture of Integrated Information Systems for an artifact "Organizational chart".',
'ARIS',
4,
0,
0,
0,
0,
timestamp
],
[
'Process landscape',
'/images/models/aris/Process%20landscape.png',
'7874cad6fa1a88bebb40dcb132fc474713ab992374284a99056cdca7282b39ac',
'Example of an Architecture of Integrated Information Systems for an artifact "Process landscape".',
'ARIS',
8,
0,
0,
0,
0,
timestamp
],
[
'Business process',
'/images/models/aris/Business%20process.png',
'121432cf98d5e321ac54f12390be21b830b1197597cd8a56aec4d1a16f3994aa',
'Example of an Architecture of Integrated Information Systems for an artifact "Business process".',
'ARIS',
7,
0,
0,
0,
0,
timestamp
],
[
'Data model',
'/images/models/aris/Data%20model.png',
'205595a3b04ea6c5c423892cdf8c01ce08ae59f1eec8529bb016e86b7de674be',
'Example of an Architecture of Integrated Information Systems for an artifact "Data model".',
'ARIS',
3,
0,
0,
0,
0,
timestamp
],
[
'System landscape',
'/images/models/aris/System%20landscape.png',
'b510cd54174cc4c59ad1e8859e230efc18337a91ca758d6777f168ada91e7502',
'Example of an Architecture of Integrated Information Systems for an artifact "System landscape".',
'ARIS',
9,
0,
0,
0,
0,
timestamp
],
[
'IT infrastructure',
'/images/models/aris/IT%20infrastructure.png',
'1c758c0041abacf5af8f09e7b76b85dc54c06f7cf0a0fc49d38ba469a777a5a4',
'Example of an Architecture of Integrated Information Systems for an artifact "IT infrastructure".',
'ARIS',
5,
0,
0,
0,
0,
timestamp
]
];
return {
methods: {
// Custom
models: (index) => {
return {
call: () => {
return {
then: (callback) => {
callback(models[index]);
}
};
}
};
},
// ERC-721
ownerOf: (_tokenId) => {
return {
call: () => {
return {
then: (callback) => {
callback('0x0000000000000000000000000000000000000000');
}
};
}
};
},
totalSupply: () => {
return {
call: () => {
return {
then: (callback) => {
callback(models.length);
}
};
}
};
}
}
}
}
}
}
};
$(document).ready(function() {
loadCollection(contractAddress);
$('#collectionAddress').val(contractAddress);
});
function openCollection() {
const myContractAddress = $('#collectionAddress').val().trim();
if (myContractAddress !== undefined && myContractAddress !== null) {
loadCollection(myContractAddress);
}
}
function loadCollection(contractAddress) {
const contractABI = JSON.parse(`[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"string","name":"_title","type":"string"},{"internalType":"string","name":"_url","type":"string"},{"internalType":"string","name":"_hash","type":"string"},{"internalType":"string","name":"_annotation","type":"string"},{"internalType":"string","name":"_industry","type":"string"},{"internalType":"uint256","name":"_totalStatements","type":"uint256"},{"internalType":"uint256","name":"_syntIncorrect","type":"uint256"},{"internalType":"uint256","name":"_syntIncomplete","type":"uint256"},{"internalType":"uint256","name":"_semIncorrect","type":"uint256"},{"internalType":"uint256","name":"_semIncomplete","type":"uint256"}],"name":"addModel","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"models","outputs":[{"internalType":"string","name":"title","type":"string"},{"internalType":"string","name":"url","type":"string"},{"internalType":"string","name":"hash","type":"string"},{"internalType":"string","name":"annotation","type":"string"},{"internalType":"string","name":"industry","type":"string"},{"internalType":"uint256","name":"totalStatements","type":"uint256"},{"internalType":"uint256","name":"syntIncorrect","type":"uint256"},{"internalType":"uint256","name":"syntIncomplete","type":"uint256"},{"internalType":"uint256","name":"semIncorrect","type":"uint256"},{"internalType":"uint256","name":"semIncomplete","type":"uint256"},{"internalType":"uint256","name":"dateTime","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"}]`);
const infuraProvider = 'https://goerli.infura.io/v3/f9079a1b198f42369bf79d33e70a5eba';
$('#testnet-link').html(`<a href="https://goerli.etherscan.io/token/${contractAddress}" target="_blank">Goerli Testnet Network</a>`);
try {
const web3 = new Web3(new Web3.providers.HttpProvider(infuraProvider));
const contract = new web3.eth.Contract(contractABI, contractAddress);
contract.methods.totalSupply().call().then(totalSupply => {
$('#gallery').empty();
$('#total-value').html(0);
$('#total-value2').html(0);
$('#total-supply').html(totalSupply);
for (let id = 0; id < totalSupply; id++) {
contract.methods.models(id).call().then(modelRecord => {
contract.methods.ownerOf(id).call().then(owner => {
const title = modelRecord[0];
const link = modelRecord[1];
const hash = modelRecord[2];
const annotation = modelRecord[3];
const industry = modelRecord[4];
const totalStatements = modelRecord[5];
const syntIncorrect = modelRecord[6];
const semIncorrect = modelRecord[8];
const syntIncomplete = modelRecord[7];
const semIncomplete = modelRecord[9];
const dateTime = modelRecord[10];
/*-- begin authenticity check --*/
const actualContent = $.ajax({
type: 'get',
url: link,
async: false
}).responseText;
const actualHash = CryptoJS.SHA256(actualContent).toString();
const authenticity = hash === actualHash;
/*-- end authenticity check --*/
/*-- begin quality analysis --*/
const syntCorrectness = 1 - syntIncorrect / totalStatements;
const semCorrectness = 1 - semIncorrect / totalStatements;
const syntCompleteness = 1 - syntIncomplete / totalStatements;
const semCompleteness = 1 - semIncomplete / totalStatements;
const weightCorrectness = 0.35;
const weightCompleteness = 0.65;
const totalQuality = weightCorrectness * (syntCorrectness + semCorrectness) / 2 + weightCompleteness * (syntCompleteness + semCompleteness) / 2;
/*-- end quality analysis --*/
/*-- begin effort estimation --*/
const hours = 152;
const LOC = 7;
const a = 0.0429 * totalStatements + 2.2714;
const b = 0.0054 * totalStatements + 1.0323;
const KLOC = LOC * (totalQuality * totalStatements) / 1000;
const personHours = hours * a * Math.pow(KLOC, b);
const avgHourlyWageUSD = 40;
const costUSD = avgHourlyWageUSD * personHours;
const USDperETH = JSON.parse($.ajax({
type: 'get',
url: 'https://min-api.cryptocompare.com/data/price?fsym=ETH&tsyms=USD',
async: false
}).responseText).USD;
const costETH = costUSD / USDperETH;
/*-- end effort estimation --*/
const totalCostETH = Number.parseFloat($('#total-value').text());
const totalCostUSD = Number.parseFloat($('#total-value2').text());
$('#total-value').html((totalCostETH + costETH).toFixed(2));
$('#total-value2').html((totalCostUSD + costUSD).toFixed(2));
$('#gallery').append(`<div class="col mb-4">
<div class="card h-100 rnd-item">
<div class="card-body">
<a href="javascript:void(0);" onclick="fillItemModal(${id}, '${encodeURI(title)}', '${encodeURI(link)}', '${encodeURI(annotation)}', '${encodeURI(industry)}', '${encodeURI(dateTime)}', ${authenticity}, ${syntCorrectness}, ${semCorrectness}, ${syntCompleteness}, ${semCompleteness}, ${totalQuality}, '${encodeURI(owner)}', '${encodeURI(contractAddress)}', ${costETH}, ${costUSD});$('#itemModal').modal('show');"><img src="${link}" class="img-fluid rnd-item img-thumbnail" alt="diagram"></a>
<h5 class="card-title mt-4 mb-1">${title}</h5>
<p class="card-text mb-1">${annotation}</p>
<p class="card-text mb-1"><small class="text-muted">${industry}</small></p>
<p class="card-text mb-1">${authenticity ? '<span class="badge badge-pill badge-success">Authentic</span>' : '<span class="badge badge-pill badge-danger">Tampered</span>'}</p>
<p class="card-text mb-1"><span class="badge badge-pill badge-light">Quality: ${(totalQuality * 100).toFixed(2)}%</span></p>
<p class="card-text mb-1"><span class="text-muted">Value</span> ♦ ${costETH.toFixed(2)} <span class="text-muted">|</span> $${costUSD.toFixed(2)}</p>
<p class="card-text"><small class="text-muted">${new Date(dateTime * 1000).toLocaleString()}</small></p>
</div>
</div>
</div>`);
});
});
}
});
} catch (err) {
alert(err.message);
}
}
function fillItemModal(id, title, link, description, industry, dateTime, authenticity, syntCorrectness, semCorrectness, syntCompleteness, semCompleteness, totalQuality, owner, contractAddress, costETH, costUSD) {
$('#itemModalLabel').html(`<b>Token #${id}</b> — ${decodeURI(title)}`);
link = decodeURI(link);
$('#item-image').html(`<a href="${link}" target="_blank"><img src="${link}" class="img-fluid rnd-item img-thumbnail" alt="full-diagram" style="max-width: 100%; max-height: 360px;"></a>`);
$('#item-description').html(decodeURI(description));
$('#item-industry').html(`<span class="text-muted">${decodeURI(industry)}</span>`);
$('#item-authenticity').html(authenticity ? '<span class="badge badge-pill badge-success">Authentic</span>' : '<span class="badge badge-pill badge-danger">Tampered</span>');
dateTime = decodeURI(dateTime);
$('#item-dateTime').html(`<span class="text-muted">${new Date(dateTime * 1000).toLocaleString()}</span>`);
$('#item-m1').html(`<span class="badge badge-pill badge-secondary">Syntactic: ${(syntCorrectness * 100).toFixed(2)}%</span> <span class="badge badge-pill badge-info">Semantic: ${(semCorrectness * 100).toFixed(2)}%</span>`);
$('#item-m2').html(`<span class="badge badge-pill badge-secondary">Syntactic: ${(syntCompleteness * 100).toFixed(2)}%</span> <span class="badge badge-pill badge-info">Semantic: ${(semCompleteness * 100).toFixed(2)}%</span>`);
$('#item-m5').html(`<span class="badge badge-pill badge-light">Quality: ${(totalQuality * 100).toFixed(2)}%</span>`);
owner = decodeURI(owner);
$('#item-owner').html(`<a href="https://goerli.etherscan.io/token/${contractAddress}?a=${owner}" target="_blank">${owner}</a>`);
$('#item-value').html(`<span class="text-muted">Value</span> ♦ ${costETH.toFixed(2)} <span class="text-muted">|</span> $${costUSD.toFixed(2)}`);
}
function googleTranslateElementInit() {
new google.translate.TranslateElement({
pageLanguage: 'en'
}, 'google_translate_element');
}
document.querySelectorAll('a[href^="#"]').forEach(anchor => {
anchor.addEventListener('click', function(e) {
e.preventDefault();
document.querySelector(this.getAttribute('href')).scrollIntoView({
block: 'start',
behavior: 'smooth'
});
});
});
</script>
<script type="text/javascript" src="https://translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>
</body>
</html>