This repository has been archived by the owner on Jul 18, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 44
/
EthOn_Contracts.ttl
2038 lines (1658 loc) · 81.4 KB
/
EthOn_Contracts.ttl
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
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
@prefix : <http://ethon.consensys.net/Contracts/> .
@prefix dc: <http://purl.org/dc/elements/1.1/> .
@prefix ns: <http://www.w3.org/2003/06/sw-vocab-status/ns#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xml: <http://www.w3.org/XML/1998/namespace> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix vann: <http://purl.org/vocab/vann/> .
@prefix ethon: <http://ethon.consensys.net/> .
@base <http://ethon.consensys.net/Contracts/> .
<http://ethon.consensys.net/Contracts/> rdf:type owl:Ontology ;
owl:versionIRI <http://ethon.consensys.net/Contracts/v0/> ;
owl:imports <http://ethon.consensys.net/v0/> ;
dc:creator "Johannes Pfeffer" ;
dc:title "EthOn Contracts - An extension to EthOn that models some aspects of smart contracts" ;
vann:preferredNamespacePrefix "contracts" ;
rdfs:comment "This ontology extends EthOn with concepts that can be used to model some aspects of smart contracts, including Functions, Events, Inputs, Outputs and Opcodes." ;
rdfs:seeAlso <https://github.com/ConsenSys/EthOn> ;
owl:versionInfo "0.0.1" ;
ns:term_status "unstable" .
#################################################################
# Annotation properties
#################################################################
### http://ethon.consensys.net/suggestedStringRepresentation
ethon:suggestedStringRepresentation rdf:type owl:AnnotationProperty .
### http://purl.org/dc/elements/1.1/contributor
dc:contributor rdf:type owl:AnnotationProperty .
### http://purl.org/dc/elements/1.1/creator
dc:creator rdf:type owl:AnnotationProperty .
### http://purl.org/dc/elements/1.1/title
dc:title rdf:type owl:AnnotationProperty .
### http://purl.org/vocab/vann/preferredNamespacePrefix
vann:preferredNamespacePrefix rdf:type owl:AnnotationProperty .
### http://purl.org/vocab/vann/preferredNamespaceUri
vann:preferredNamespaceUri rdf:type owl:AnnotationProperty .
### http://www.w3.org/2003/06/sw-vocab-status/ns#term_status
ns:term_status rdf:type owl:AnnotationProperty .
#################################################################
# Object Properties
#################################################################
### http://ethon.consensys.net/Contracts/EthOnContractsObjectProperty
:EthOnContractsObjectProperty rdf:type owl:ObjectProperty ;
rdfs:subPropertyOf owl:topObjectProperty ;
rdfs:comment "Groups all EthOn Contracts extension Object Properties"@en ;
rdfs:label "EthOn Contracts Object Property"@en ;
ns:term_status "unstable" .
### http://ethon.consensys.net/Contracts/callsFunction
:callsFunction rdf:type owl:ObjectProperty ;
rdfs:subPropertyOf :EthOnContractsObjectProperty ;
rdf:type owl:FunctionalProperty ;
rdfs:domain :FunctionCall ;
rdfs:range :Function ;
ethon:suggestedStringRepresentation "callsFunction" ;
rdfs:comment "Relates a Function Call to the Function that is called by it."@en ;
rdfs:label "calls function"@en ;
ns:term_status "unstable" .
### http://ethon.consensys.net/Contracts/hasFunctionSelector
:hasFunctionSelector rdf:type owl:ObjectProperty ;
rdfs:subPropertyOf :EthOnContractsObjectProperty ;
rdf:type owl:FunctionalProperty ;
rdfs:domain :Function ;
rdfs:range :FunctionSelector ;
ethon:suggestedStringRepresentation "hasFunctionSelector" ;
rdfs:comment "Relates a function to a function selector (also \"signature\") that identifies it."@en ;
rdfs:label "has function selector"@en ;
ns:term_status "unstable" .
### http://ethon.consensys.net/Contracts/hasInput
:hasInput rdf:type owl:ObjectProperty ;
rdfs:subPropertyOf :EthOnContractsObjectProperty ;
rdf:type owl:InverseFunctionalProperty ;
rdfs:domain [ rdf:type owl:Class ;
owl:unionOf ( :Event
:Function
)
] ;
rdfs:range :Input ;
ethon:suggestedStringRepresentation "hasInput" ;
rdfs:comment "Relates an Event or a Function to an Input of that Event or Function. An Event or Function may have 0 or more Inputs but an Input can only belong to a single Event or Function."@en ;
rdfs:label "has Input"@en ;
ns:term_status "unstable" .
### http://ethon.consensys.net/Contracts/hasInputValue
:hasInputValue rdf:type owl:ObjectProperty ;
rdfs:subPropertyOf :EthOnContractsObjectProperty ;
rdf:type owl:InverseFunctionalProperty ;
rdfs:domain [ rdf:type owl:Class ;
owl:unionOf ( ethon:LogEntry
:FunctionCall
)
] ;
rdfs:range :InputValue ;
ethon:suggestedStringRepresentation "hasInputValue" ;
rdfs:comment "Relates a FunctionCall or a LogEntry to an Input Value that is represented by it. For example a Function Call add(5,6) would be related to two Input Values, one for each Input to the Function."@en ;
rdfs:label "has Input Value"@en ;
ns:term_status "unstable" .
### http://ethon.consensys.net/Contracts/hasOutput
:hasOutput rdf:type owl:ObjectProperty ;
rdfs:subPropertyOf :EthOnContractsObjectProperty ;
rdf:type owl:InverseFunctionalProperty ;
rdfs:domain :Function ;
rdfs:range :Output ;
ethon:suggestedStringRepresentation "hasOutput" ;
rdfs:comment "Relates a Function to an Output of that Function. A Function may have 0 or more Outputs but an Output can only belong to a single Function."@en ;
rdfs:label "has Output"@en ;
ns:term_status "unstable" .
### http://ethon.consensys.net/Contracts/hasOutputValue
:hasOutputValue rdf:type owl:ObjectProperty ;
rdfs:subPropertyOf :EthOnContractsObjectProperty ;
rdf:type owl:InverseFunctionalProperty ;
rdfs:domain :FunctionCall ;
rdfs:range :OutputValue ;
ethon:suggestedStringRepresentation "hasOutputValue" ;
rdfs:comment "Relates a FunctionCall to an Output Value that is represented by it. For example a Function Call add(5,6) that returns the sum of two integers would be related to one Output Value, that contains the result of the addition."@en ;
rdfs:label "has Output Value"@en ;
ns:term_status "unstable" .
### http://ethon.consensys.net/Contracts/implementsEvent
:implementsEvent rdf:type owl:ObjectProperty ;
rdfs:subPropertyOf :EthOnContractsObjectProperty ;
rdfs:domain ethon:ContractAccount ;
rdfs:range :Event ;
ethon:suggestedStringRepresentation "implementsEvent" ;
rdfs:comment "Relates a Contract Account to Events it implements."@en ;
rdfs:label "implements Event"@en ;
ns:term_status "unstable" .
### http://ethon.consensys.net/Contracts/implementsFunction
:implementsFunction rdf:type owl:ObjectProperty ;
rdfs:subPropertyOf :EthOnContractsObjectProperty ;
rdfs:domain ethon:ContractAccount ;
rdfs:range :Function ;
ethon:suggestedStringRepresentation "implementsFunction" ;
rdfs:comment "Relates a Contract Account to Functions it implements."@en ;
rdfs:label "implements Function"@en ;
ns:term_status "unstable" .
### http://ethon.consensys.net/Contracts/ofInput
:ofInput rdf:type owl:ObjectProperty ;
rdfs:subPropertyOf :EthOnContractsObjectProperty ;
rdf:type owl:FunctionalProperty ;
rdfs:domain :InputValue ;
rdfs:range :Input ;
ethon:suggestedStringRepresentation "ofInput" ;
rdfs:label "of Input"@en ;
ns:term_status "unstable" .
### http://ethon.consensys.net/Contracts/ofOutput
:ofOutput rdf:type owl:ObjectProperty ;
rdfs:subPropertyOf :EthOnContractsObjectProperty ;
rdf:type owl:FunctionalProperty ;
rdfs:domain :OutputValue ;
rdfs:range :Output ;
ethon:suggestedStringRepresentation "ofOutput" ;
rdfs:comment "Relates an Output Value to the Output it is a value of." ;
rdfs:label "of Output"@en ;
ns:term_status "unstable" .
### http://ethon.consensys.net/Contracts/representsEvent
:representsEvent rdf:type owl:ObjectProperty ;
rdfs:subPropertyOf :EthOnContractsObjectProperty ;
rdf:type owl:FunctionalProperty ;
rdfs:domain ethon:LogEntry ;
rdfs:range :Event ;
ethon:suggestedStringRepresentation "representsEvent" ;
rdfs:comment "Relates a LogEntry to the Event it represents."@en ;
rdfs:label "represents Event"@en ;
ns:term_status "unstable" .
### http://ethon.consensys.net/Contracts/usesOpcode
:usesOpcode rdf:type owl:ObjectProperty ;
rdfs:subPropertyOf :EthOnContractsObjectProperty ;
rdfs:domain ethon:ContractAccount ;
rdfs:range :Opcode ;
ethon:suggestedStringRepresentation "usesOpcode" ;
rdfs:comment "Relates a Contract Account to an Opcode used in the code of that Account."@en ;
rdfs:label "uses Opcode"@en ;
ns:term_status "unstable" .
### http://purl.org/dc/terms/isRequiredBy
<http://purl.org/dc/terms/isRequiredBy> rdf:type owl:ObjectProperty .
#################################################################
# Data properties
#################################################################
### http://ethon.consensys.net/Contracts/EthOnContractsDataProperty
:EthOnContractsDataProperty rdf:type owl:DatatypeProperty ;
rdfs:subPropertyOf owl:topDataProperty ;
rdfs:comment "Groups all EthOn Contracts extension Data Properties."@en ;
rdfs:label "EthOn Contracts Data Property"@en ;
ns:term_status "unstable" .
### http://ethon.consensys.net/Contracts/byteSignature
:byteSignature rdf:type owl:DatatypeProperty ;
rdfs:subPropertyOf :EthOnContractsDataProperty ;
rdf:type owl:FunctionalProperty ;
rdfs:domain :FunctionSelector ;
rdfs:range xsd:hexBinary ;
ethon:suggestedStringRepresentation "byteSignature" ;
rdfs:comment "A function can be identified by its byte signature. It is generated from the canonical signature. For example the Function `bar(uint32 x, bool y)` returns `(bool r)` has the canonical signature `bar(uint32,bool)`. The first 4 bytes of the Keccac 256 hash of this forms the byte signature of the function, in the example that would be `0xcdcd77c0`."@en ;
rdfs:label "byte signature"@en ;
rdfs:seeAlso <https://github.com/ethereum/wiki/wiki/Ethereum-Contract-ABI#function-selector-and-argument-encoding> ;
ns:term_status "unstable" .
### http://ethon.consensys.net/Contracts/canonicalSignature
:canonicalSignature rdf:type owl:DatatypeProperty ;
rdfs:subPropertyOf :EthOnContractsDataProperty ;
rdf:type owl:FunctionalProperty ;
rdfs:domain :FunctionSelector ;
rdfs:range xsd:string ;
ethon:suggestedStringRepresentation "canonicalSignature" ;
rdfs:comment "The signature of the function in the canonical form which is used to create the functionSelector. Example: `bar(uint32,bool)`"@en ;
rdfs:label "canonicalSignature"@en ;
rdfs:seeAlso "https://github.com/ethereum/wiki/wiki/Ethereum-Contract-ABI" ;
ns:term_status "unstable" .
### http://ethon.consensys.net/Contracts/cost
:cost rdf:type owl:DatatypeProperty ;
rdfs:subPropertyOf :EthOnContractsDataProperty ;
rdf:type owl:FunctionalProperty ;
rdfs:domain :Opcode ;
rdfs:range xsd:integer ;
ethon:suggestedStringRepresentation "cost" ;
rdfs:comment "Specifies the amount of gas that has to be paid to execute an Opcode."@en ;
rdfs:label "cost"@en ;
ns:term_status "unstable" .
### http://ethon.consensys.net/Contracts/hexValue
:hexValue rdf:type owl:DatatypeProperty ;
rdfs:subPropertyOf :EthOnContractsDataProperty ;
rdf:type owl:FunctionalProperty ;
rdfs:domain :Opcode ;
rdfs:range xsd:hexBinary ;
ethon:suggestedStringRepresentation "hexValue" ;
rdfs:comment "Specifies the hexadecimal code that represents an Opcode. This is the actual value used for the Opcode in byte code."@en ;
rdfs:label "hex Value"@en ;
ns:term_status "unstable" .
### http://ethon.consensys.net/Contracts/isAnonymous
:isAnonymous rdf:type owl:DatatypeProperty ;
rdfs:subPropertyOf :EthOnContractsDataProperty ;
rdf:type owl:FunctionalProperty ;
rdfs:domain :Event ;
rdfs:range xsd:boolean ;
ethon:suggestedStringRepresentation "isAnonymous" ;
rdfs:comment "Specifies if an Event is anonymous. Anonymous Events will not store the Event signature as the LogTopic of a LogEntry."@en ;
rdfs:label "is anonymous"@en ;
ns:term_status "unstable" .
### http://ethon.consensys.net/Contracts/isConstant
:isConstant rdf:type owl:DatatypeProperty ;
rdfs:subPropertyOf :EthOnContractsDataProperty ;
rdf:type owl:FunctionalProperty ;
rdfs:domain :Function ;
rdfs:range xsd:boolean ;
ethon:suggestedStringRepresentation "isConstant" ;
rdfs:comment "Functions with the property isConstant set to true promise to not modify the state of the blockchain. For instance, in solidity this can be achieved by a function modifier that declares the function to be constant (solidity doesn't enforce this, yet)."@en ;
rdfs:label "is constant"@en ;
ns:term_status "unstable" .
### http://ethon.consensys.net/Contracts/isIndexed
:isIndexed rdf:type owl:DatatypeProperty ;
rdfs:subPropertyOf :EthOnContractsDataProperty ;
rdf:type owl:FunctionalProperty ;
rdfs:domain :Input ;
rdfs:range xsd:boolean ;
ethon:suggestedStringRepresentation "isIndexed" ;
rdfs:comment "True if the Input of an Event should be stored as a LogTopic of a LogEntry. Up to three parameters can receive this property which will cause the respective arguments to be treated as LogTopics instead of data. All non-indexed arguments will be stored in the data part of the LogEntry that represents the Event."@en ;
rdfs:label "is indexed"@en ;
ns:term_status "unstable" .
### http://ethon.consensys.net/Contracts/isPayable
:isPayable rdf:type owl:DatatypeProperty ;
rdfs:subPropertyOf :EthOnContractsDataProperty ;
rdf:type owl:FunctionalProperty ;
rdfs:domain :Function ;
rdfs:range xsd:boolean ;
ethon:suggestedStringRepresentation "isPayable" ;
rdfs:comment "True if a Function can receive Ether together with a FunctionCall."@en ;
rdfs:label "is payable"@en ;
ns:term_status "unstable" .
### http://ethon.consensys.net/Contracts/name
:name rdf:type owl:DatatypeProperty ;
rdfs:subPropertyOf :EthOnContractsDataProperty ;
rdf:type owl:FunctionalProperty ;
rdfs:domain [ rdf:type owl:Class ;
owl:unionOf ( :Event
:Function
:Input
:Opcode
:Output
)
] ;
rdfs:range xsd:string ;
ethon:suggestedStringRepresentation "name" ;
rdfs:comment "A property that defines the name of Functions, Events, Inputs, Outputs and Opcodes as specified in code or specification. There can be only one name for each Individual of these types."@en ;
rdfs:label "name"@en ;
ns:term_status "unstable" .
### http://ethon.consensys.net/Contracts/position
:position rdf:type owl:DatatypeProperty ;
rdfs:subPropertyOf :EthOnContractsDataProperty ;
rdf:type owl:FunctionalProperty ;
rdfs:domain [ rdf:type owl:Class ;
owl:unionOf ( :Input
:Output
)
] ;
rdfs:range xsd:integer ;
ethon:suggestedStringRepresentation "position" ;
rdfs:comment "Specifies the position of the Input or Output parameter in an Event's or Function's signature."@en ;
rdfs:label "position"@en ;
ns:term_status "unstable" .
### http://ethon.consensys.net/Contracts/signature
:signature rdf:type owl:DatatypeProperty ;
rdfs:subPropertyOf :EthOnContractsDataProperty ;
rdf:type owl:FunctionalProperty ;
rdfs:domain :Function ;
rdfs:range xsd:string ;
ethon:suggestedStringRepresentation "signature" ;
rdfs:comment "The signature of the function as specified in the source language of the contract."@en ;
rdfs:label "signature"@en ;
ns:term_status "unstable" .
### http://ethon.consensys.net/Contracts/stackItemsAdded
:stackItemsAdded rdf:type owl:DatatypeProperty ;
rdfs:subPropertyOf :EthOnContractsDataProperty ;
rdf:type owl:FunctionalProperty ;
rdfs:domain :Opcode ;
rdfs:range xsd:integer ;
ethon:suggestedStringRepresentation "stackItemsAdded" ;
rdfs:comment "Specifies the number of items added to the stack by executing an Opcode."@en ;
rdfs:label "stack items added"@en ;
ns:term_status "unstable" .
### http://ethon.consensys.net/Contracts/stackItemsRemoved
:stackItemsRemoved rdf:type owl:DatatypeProperty ;
rdfs:subPropertyOf :EthOnContractsDataProperty ;
rdf:type owl:FunctionalProperty ;
rdfs:domain :Opcode ;
rdfs:range xsd:integer ;
ethon:suggestedStringRepresentation "stackItemsRemoved" ;
rdfs:comment "Specifies the number of items removed from the stack when executing an Opcode."@en ;
rdfs:label "stack items removed"@en ;
ns:term_status "unstable" .
### http://ethon.consensys.net/Contracts/topic
:topic rdf:type owl:DatatypeProperty ;
rdfs:subPropertyOf :EthOnContractsDataProperty ;
rdf:type owl:FunctionalProperty ;
rdfs:domain :Event ;
rdfs:range xsd:hexBinary ;
ethon:suggestedStringRepresentation "topic" ;
rdfs:comment "An Event can be identified by its topic. It is generated from an abbreviated version of its signature. For example the Event Foo(uint32 x, bool y) has the abbreviated signature Foo(uint32,bool). The Keccac 256 hash of this forms the event topic."@en ;
rdfs:label "topic"@en ;
rdfs:seeAlso <https://github.com/ethereum/wiki/wiki/Ethereum-Contract-ABI#events> ;
ns:term_status "unstable" .
### http://ethon.consensys.net/Contracts/type
:type rdf:type owl:DatatypeProperty ;
rdfs:subPropertyOf :EthOnContractsDataProperty ;
rdf:type owl:FunctionalProperty ;
rdfs:domain [ rdf:type owl:Class ;
owl:unionOf ( :Input
:Output
)
] ;
rdfs:range xsd:string ;
ethon:suggestedStringRepresentation "type" ;
rdfs:comment "Specifies the canonical type of the Input or Output, e.g. uint32."@en ;
rdfs:label "type"@en ;
ns:term_status "unstable" .
### http://ethon.consensys.net/Contracts/value
:value rdf:type owl:DatatypeProperty ;
rdfs:subPropertyOf :EthOnContractsDataProperty ;
rdf:type owl:FunctionalProperty ;
rdfs:domain [ rdf:type owl:Class ;
owl:unionOf ( :InputValue
:OutputValue
)
] ;
ethon:suggestedStringRepresentation "value" ;
rdfs:comment "The actual value of an InputValue or OutputValue. It is of the type defined in the Input or Output of the InputValue or OutputValue."@en ;
rdfs:label "value"@en ;
ns:term_status "unstable" .
#################################################################
# Classes
#################################################################
### http://ethon.consensys.net/ContractAccount
ethon:ContractAccount rdf:type owl:Class .
### http://ethon.consensys.net/LogEntry
ethon:LogEntry rdf:type owl:Class .
### http://ethon.consensys.net/Msg
ethon:Msg rdf:type owl:Class .
### http://ethon.consensys.net/Contracts/DynamicFunction
:DynamicFunction rdf:type owl:Class ;
rdfs:subClassOf :Function ;
owl:disjointWith :StaticFunction ;
ethon:suggestedStringRepresentation "DynamicFunction" ;
rdfs:comment "Dynamic Functions are Functions that potentially change the state of the blockchain when executed. Executing a dynamic function costs gas and is broadcast to the network. When a Dynamic Function is called, the resulting computation is carried out by every Full Node in the Network."@en ;
rdfs:label "Dynamic Function"@en ;
ns:term_status "unstable" .
### http://ethon.consensys.net/Contracts/Event
:Event rdf:type owl:Class ;
ethon:suggestedStringRepresentation "Event" ;
rdfs:comment "Events are structures implemented in smart contracts in order to create a LogEntry. Once created they cannot be accessed from the contract but can be used from the outside, e.g. by a web application that reacts to Events in a smart contract."@en ;
rdfs:label "Event"@en ;
ns:term_status "unstable" .
### http://ethon.consensys.net/Contracts/Function
:Function rdf:type owl:Class ;
ethon:suggestedStringRepresentation "Function" ;
rdfs:comment "Functions are structures in smart contracts that implement functionality, just as functions or methods do in general programming. Functions can be called by Accounts (External Accounts or Contract Accounts) to execute the code stored in it. Functions can have Inputs (parameters) and Outputs (return values)."@en ;
rdfs:label "function"@en ;
ns:term_status "unstable" .
### http://ethon.consensys.net/Contracts/FunctionCall
:FunctionCall rdf:type owl:Class ;
rdfs:subClassOf ethon:Msg ;
ethon:suggestedStringRepresentation "FunctionCall" ;
rdfs:comment "Functions Calls are calls to Functions that are recorded in the blockchain. They are a subset of all Messages in a blockchain. Examples for Function Calls are Transactions (which is a sub-type of a Message) that call a Dynamic Function in a smart contract and Contract Calls that call Dynamic or Static Functions in smart contracts. Function Calls originate from either an External Account or a Contract Account and are always directed towards Contract Accounts."@en ;
rdfs:label "Function Call"@en ;
ns:term_status "unstable" .
### http://ethon.consensys.net/Contracts/FunctionSelector
:FunctionSelector rdf:type owl:Class ;
ethon:suggestedStringRepresentation "FunctionSelector" ;
rdfs:comment "A function selector can be represented either by a canonical text form of the function signature (e.g. `exampleFunction(bytes32)`) or by its bytes form (e.g. `0xfc13a76a`). The latter is used by the EVM to call a certain function in a contract. It is created by taking the first 4 bytes of the keccac hash of the canonical text form of the signature."@en ;
rdfs:label "function selector"@en ;
ns:term_status "unstable" .
### http://ethon.consensys.net/Contracts/Input
:Input rdf:type owl:Class ;
ethon:suggestedStringRepresentation "Input" ;
rdfs:comment """An Input represents a single input parameter of a Function or an Event. It's properties include a data type of the Input Value a name and a position in the signature of its Function or Event.
If it represents an Input of an Event it can have the boolean property isIndexed. If true, the values of this Input should be stored in a modified merkle patricia tree structure and be created as LogTopics to be easily queryable. Otherwise the value is stored in the data of a LogEntry."""@en ;
rdfs:label "Input"@en ;
ns:term_status "unstable" .
### http://ethon.consensys.net/Contracts/InputValue
:InputValue rdf:type owl:Class ;
ethon:suggestedStringRepresentation "InputValue" ;
rdfs:comment "Represents an Input Value of a Function Call or or a Log Entry. For example, if a smart contract has the function decryptXY(string x, bytes32 y) and the function is called in a Message, the two input values are each represented by an instance of this class. The value itself is a direct data property of this class, while the data type, the position and name are data properties of the the Input of this Input Value."@en ;
rdfs:label "Input Value"@en ;
ns:term_status "unstable" .
### http://ethon.consensys.net/Contracts/Opcode
:Opcode rdf:type owl:Class ;
ethon:suggestedStringRepresentation "Opcode" ;
rdfs:comment "An Opcode an instruction in the instruction set of the Ethereum virtual machine. The set of existing Opcodes are defined as Individuals (instances) of this class."@en ;
rdfs:label "Opcode"@en ;
ns:term_status "unstable" .
### http://ethon.consensys.net/Contracts/Output
:Output rdf:type owl:Class ;
ethon:suggestedStringRepresentation "Output" ;
rdfs:comment "An Output represents a single return value of a Function in a smart contract. It's properties include a data type of the Output Value, a name and a position in the signature of its Function."@en ;
rdfs:label "Output"@en ;
ns:term_status "unstable" .
### http://ethon.consensys.net/Contracts/OutputValue
:OutputValue rdf:type owl:Class ;
ethon:suggestedStringRepresentation "OutputValue" ;
rdfs:comment "Represents an Output Value of a Function Call. For example, if a smart contract has the function decryptXY(string x, bytes32 y) returns(string) and the function is called in a Contract Message, the returned string is represented as an instance of this class. The return value itself is a direct data property of this class, while the data type, the position and name are data properties of the the Output of this Output Value."@en ;
rdfs:label "Output Value"@en ;
ns:term_status "unstable" .
### http://ethon.consensys.net/Contracts/StaticFunction
:StaticFunction rdf:type owl:Class ;
rdfs:subClassOf :Function ;
ethon:suggestedStringRepresentation "DynamicFunction" ;
rdfs:comment "Static Functions are Functions don't change the state of the blockchain. They can be executed on the local copy of the blockchain and it's not necessary to broadcast the call to the network. Calling a Static Function doesn't cost any gas. They are only executed by the node calling it."@en ;
rdfs:label "Static Function"@en ;
ns:term_status "unstable" .
#################################################################
# Individuals
#################################################################
### http://ethon.consensys.net/Contracts/Opcode_ADD
:Opcode_ADD rdf:type owl:NamedIndividual ,
:Opcode ;
:cost 3 ;
:hexValue "01"^^xsd:hexBinary ;
:name "ADD"^^xsd:string ;
:stackItemsAdded 2 ;
:stackItemsRemoved 1 ;
rdfs:comment "Addition operation."@en .
### http://ethon.consensys.net/Contracts/Opcode_ADDMOD
:Opcode_ADDMOD rdf:type owl:NamedIndividual ,
:Opcode ;
:cost 8 ;
:hexValue "08"^^xsd:hexBinary ;
:name "ADDMOD"^^xsd:string ;
:stackItemsAdded 3 ;
:stackItemsRemoved 1 ;
rdfs:comment "Modulo addition operation."@en .
### http://ethon.consensys.net/Contracts/Opcode_ADDRESS
:Opcode_ADDRESS rdf:type owl:NamedIndividual ,
:Opcode ;
:cost 2 ;
:hexValue "30"^^xsd:hexBinary ;
:name "ADDRESS"^^xsd:string ;
:stackItemsAdded 0 ;
:stackItemsRemoved 1 ;
rdfs:comment "Get address of currently executing account."@en .
### http://ethon.consensys.net/Contracts/Opcode_AND
:Opcode_AND rdf:type owl:NamedIndividual ,
:Opcode ;
:cost 3 ;
:hexValue "16"^^xsd:hexBinary ;
:name "AND"^^xsd:string ;
:stackItemsAdded 2 ;
:stackItemsRemoved 1 ;
rdfs:comment "Bitwise AND operation."@en .
### http://ethon.consensys.net/Contracts/Opcode_BALANCE
:Opcode_BALANCE rdf:type owl:NamedIndividual ,
:Opcode ;
:cost 20 ;
:hexValue "31"^^xsd:hexBinary ;
:name "BALANCE"^^xsd:string ;
:stackItemsAdded 1 ;
:stackItemsRemoved 1 ;
rdfs:comment "Get balance of the given account."@en .
### http://ethon.consensys.net/Contracts/Opcode_BLOCKHASH
:Opcode_BLOCKHASH rdf:type owl:NamedIndividual ,
:Opcode ;
:cost 20 ;
:hexValue "40"^^xsd:hexBinary ;
:name "BLOCKHASH"^^xsd:string ;
:stackItemsAdded 1 ;
:stackItemsRemoved 1 ;
rdfs:comment "Get the hash of one of the 256 most recent complete blocks."@en .
### http://ethon.consensys.net/Contracts/Opcode_BYTE
:Opcode_BYTE rdf:type owl:NamedIndividual ,
:Opcode ;
:cost 3 ;
:hexValue "1a"^^xsd:hexBinary ;
:name "BYTE"^^xsd:string ;
:stackItemsAdded 2 ;
:stackItemsRemoved 1 ;
rdfs:comment "Retrieve single byte from word."@en .
### http://ethon.consensys.net/Contracts/Opcode_CALL
:Opcode_CALL rdf:type owl:NamedIndividual ,
:Opcode ;
:cost 40 ;
:hexValue "f1"^^xsd:hexBinary ;
:name "CALL"^^xsd:string ;
:stackItemsAdded 7 ;
:stackItemsRemoved 1 ;
rdfs:comment "Message-call into an account."@en .
### http://ethon.consensys.net/Contracts/Opcode_CALLCODE
:Opcode_CALLCODE rdf:type owl:NamedIndividual ,
:Opcode ;
:cost 40 ;
:hexValue "f2"^^xsd:hexBinary ;
:name "CALLCODE"^^xsd:string ;
:stackItemsAdded 7 ;
:stackItemsRemoved 1 ;
rdfs:comment "Message-call into this account with an alternative account's code."@en .
### http://ethon.consensys.net/Contracts/Opcode_CALLDATACOPY
:Opcode_CALLDATACOPY rdf:type owl:NamedIndividual ,
:Opcode ;
:cost 3 ;
:hexValue "37"^^xsd:hexBinary ;
:name "CALLDATACOPY"^^xsd:string ;
:stackItemsAdded 3 ;
:stackItemsRemoved 0 ;
rdfs:comment "Get size of code running in current environment."@en .
### http://ethon.consensys.net/Contracts/Opcode_CALLDATALOAD
:Opcode_CALLDATALOAD rdf:type owl:NamedIndividual ,
:Opcode ;
:cost 3 ;
:hexValue "35"^^xsd:hexBinary ;
:name "CALLDATALOAD"^^xsd:string ;
:stackItemsAdded 1 ;
:stackItemsRemoved 1 ;
rdfs:comment "Get input data of current environment. This pertains to the input data passed with the message call instruction or transaction."@en .
### http://ethon.consensys.net/Contracts/Opcode_CALLDATASIZE
:Opcode_CALLDATASIZE rdf:type owl:NamedIndividual ,
:Opcode ;
:cost 2 ;
:hexValue "36"^^xsd:hexBinary ;
:name "CALLDATASIZE"^^xsd:string ;
:stackItemsAdded 0 ;
:stackItemsRemoved 1 ;
rdfs:comment "Get size of input data in current environment. This pertains to the input data passed with the message call instruction or transaction."@en .
### http://ethon.consensys.net/Contracts/Opcode_CALLER
:Opcode_CALLER rdf:type owl:NamedIndividual ,
:Opcode ;
:cost 2 ;
:hexValue "33"^^xsd:hexBinary ;
:name "CALLER"^^xsd:string ;
:stackItemsAdded 0 ;
:stackItemsRemoved 1 ;
rdfs:comment "Get caller address. This is the address of the account that is directly responsible for this execution."@en .
### http://ethon.consensys.net/Contracts/Opcode_CALLVALUE
:Opcode_CALLVALUE rdf:type owl:NamedIndividual ,
:Opcode ;
:cost 2 ;
:hexValue "34"^^xsd:hexBinary ;
:name "CALLVALUE"^^xsd:string ;
:stackItemsAdded 0 ;
:stackItemsRemoved 1 ;
rdfs:comment "Get deposited value by the instruction/transaction responsible for this execution."@en .
### http://ethon.consensys.net/Contracts/Opcode_CODECOPY
:Opcode_CODECOPY rdf:type owl:NamedIndividual ,
:Opcode ;
:cost 3 ;
:hexValue "39"^^xsd:hexBinary ;
:name "CODECOPY"^^xsd:string ;
:stackItemsAdded 3 ;
:stackItemsRemoved 0 ;
rdfs:comment "Get price of gas in current environment. This is the gas price specified by the originating transaction."@en .
### http://ethon.consensys.net/Contracts/Opcode_CODESIZE
:Opcode_CODESIZE rdf:type owl:NamedIndividual ,
:Opcode ;
:cost 2 ;
:hexValue "38"^^xsd:hexBinary ;
:name "CODESIZE"^^xsd:string ;
:stackItemsAdded 0 ;
:stackItemsRemoved 1 ;
rdfs:comment "Copy code running in current environment to memory."@en .
### http://ethon.consensys.net/Contracts/Opcode_COINBASE
:Opcode_COINBASE rdf:type owl:NamedIndividual ,
:Opcode ;
:cost 2 ;
:hexValue "41"^^xsd:hexBinary ;
:name "COINBASE"^^xsd:string ;
:stackItemsAdded 0 ;
:stackItemsRemoved 1 ;
rdfs:comment "Get the block's beneficiary address."@en .
### http://ethon.consensys.net/Contracts/Opcode_CREATE
:Opcode_CREATE rdf:type owl:NamedIndividual ,
:Opcode ;
:cost 32000 ;
:hexValue "f0"^^xsd:hexBinary ;
:name "CREATE"^^xsd:string ;
:stackItemsAdded 3 ;
:stackItemsRemoved 1 ;
rdfs:comment "Create a new account with associated code."@en .
### http://ethon.consensys.net/Contracts/Opcode_DELEGATECALL
:Opcode_DELEGATECALL rdf:type owl:NamedIndividual ,
:Opcode ;
<http://purl.org/dc/terms/isRequiredBy> ethon:ProtocolVariant_Homestead ;
:cost 40 ;
:hexValue "f4"^^xsd:hexBinary ;
:name "DELEGATECALL"^^xsd:string ;
:stackItemsAdded 6 ;
:stackItemsRemoved 1 ;
rdfs:comment "Message-call into this account with an alternative account's code, but persisting the current values for sender and value."@en .
### http://ethon.consensys.net/Contracts/Opcode_DIFFICULTY
:Opcode_DIFFICULTY rdf:type owl:NamedIndividual ,
:Opcode ;
:cost 2 ;
:hexValue "44"^^xsd:hexBinary ;
:name "DIFFICULTY"^^xsd:string ;
:stackItemsAdded 0 ;
:stackItemsRemoved 1 ;
rdfs:comment "Get the block's difficulty."@en .
### http://ethon.consensys.net/Contracts/Opcode_DIV
:Opcode_DIV rdf:type owl:NamedIndividual ,
:Opcode ;
:cost 5 ;
:hexValue "04"^^xsd:hexBinary ;
:name "DIV"^^xsd:string ;
:stackItemsAdded 2 ;
:stackItemsRemoved 1 ;
rdfs:comment "Integer division operation."@en .
### http://ethon.consensys.net/Contracts/Opcode_DUP1
:Opcode_DUP1 rdf:type owl:NamedIndividual ,
:Opcode ;
:cost 3 ;
:hexValue "80"^^xsd:hexBinary ;
:name "DUP1"^^xsd:string ;
:stackItemsAdded 1 ;
:stackItemsRemoved 2 ;
rdfs:comment "Duplicate 1st stack item."@en .
### http://ethon.consensys.net/Contracts/Opcode_DUP10
:Opcode_DUP10 rdf:type owl:NamedIndividual ,
:Opcode ;
:cost 3 ;
:hexValue "89"^^xsd:hexBinary ;
:name "DUP10"^^xsd:string ;
:stackItemsAdded 10 ;
:stackItemsRemoved 11 ;
rdfs:comment "Duplicate 10th stack item."@en .
### http://ethon.consensys.net/Contracts/Opcode_DUP11
:Opcode_DUP11 rdf:type owl:NamedIndividual ,
:Opcode ;
:cost 3 ;
:hexValue "8a"^^xsd:hexBinary ;
:name "DUP11"^^xsd:string ;
:stackItemsAdded 11 ;
:stackItemsRemoved 12 ;
rdfs:comment "Duplicate 11th stack item."@en .
### http://ethon.consensys.net/Contracts/Opcode_DUP12
:Opcode_DUP12 rdf:type owl:NamedIndividual ,
:Opcode ;
:cost 3 ;
:hexValue "8b"^^xsd:hexBinary ;
:name "DUP12"^^xsd:string ;
:stackItemsAdded 12 ;
:stackItemsRemoved 13 ;
rdfs:comment "Duplicate 12th stack item."@en .
### http://ethon.consensys.net/Contracts/Opcode_DUP13
:Opcode_DUP13 rdf:type owl:NamedIndividual ,
:Opcode ;
:cost 3 ;
:hexValue "8c"^^xsd:hexBinary ;
:name "DUP13"^^xsd:string ;
:stackItemsAdded 13 ;
:stackItemsRemoved 14 ;
rdfs:comment "Duplicate 13th stack item."@en .
### http://ethon.consensys.net/Contracts/Opcode_DUP14
:Opcode_DUP14 rdf:type owl:NamedIndividual ,
:Opcode ;
:cost 3 ;
:hexValue "8d"^^xsd:hexBinary ;
:name "DUP14"^^xsd:string ;
:stackItemsAdded 14 ;
:stackItemsRemoved 15 ;
rdfs:comment "Duplicate 14th stack item."@en .
### http://ethon.consensys.net/Contracts/Opcode_DUP15
:Opcode_DUP15 rdf:type owl:NamedIndividual ,
:Opcode ;
:cost 3 ;
:hexValue "8e"^^xsd:hexBinary ;
:name "DUP15"^^xsd:string ;
:stackItemsAdded 15 ;
:stackItemsRemoved 16 ;
rdfs:comment "Duplicate 15th stack item."@en .
### http://ethon.consensys.net/Contracts/Opcode_DUP16
:Opcode_DUP16 rdf:type owl:NamedIndividual ,
:Opcode ;
:cost 3 ;
:hexValue "8f"^^xsd:hexBinary ;
:name "DUP16"^^xsd:string ;
:stackItemsAdded 16 ;
:stackItemsRemoved 17 ;
rdfs:comment "Duplicate 16th stack item."@en .
### http://ethon.consensys.net/Contracts/Opcode_DUP2
:Opcode_DUP2 rdf:type owl:NamedIndividual ,
:Opcode ;
:cost 3 ;
:hexValue "81"^^xsd:hexBinary ;
:name "DUP2"^^xsd:string ;
:stackItemsAdded 2 ;
:stackItemsRemoved 3 ;
rdfs:comment "Duplicate 2nd stack item."@en .
### http://ethon.consensys.net/Contracts/Opcode_DUP3
:Opcode_DUP3 rdf:type owl:NamedIndividual ,
:Opcode ;
:cost 3 ;
:hexValue "82"^^xsd:hexBinary ;
:name "DUP3"^^xsd:string ;
:stackItemsAdded 3 ;
:stackItemsRemoved 4 ;
rdfs:comment "Duplicate 3rd stack item."@en .
### http://ethon.consensys.net/Contracts/Opcode_DUP4
:Opcode_DUP4 rdf:type owl:NamedIndividual ,
:Opcode ;
:cost 3 ;
:hexValue "83"^^xsd:hexBinary ;
:name "DUP4"^^xsd:string ;
:stackItemsAdded 4 ;
:stackItemsRemoved 5 ;
rdfs:comment "Duplicate 4th stack item."@en .
### http://ethon.consensys.net/Contracts/Opcode_DUP5
:Opcode_DUP5 rdf:type owl:NamedIndividual ,
:Opcode ;
:cost 3 ;
:hexValue "84"^^xsd:hexBinary ;
:name "DUP5"^^xsd:string ;
:stackItemsAdded 5 ;
:stackItemsRemoved 6 ;
rdfs:comment "Duplicate 5th stack item."@en .
### http://ethon.consensys.net/Contracts/Opcode_DUP6
:Opcode_DUP6 rdf:type owl:NamedIndividual ,
:Opcode ;
:cost 3 ;
:hexValue "85"^^xsd:hexBinary ;
:name "DUP6"^^xsd:string ;
:stackItemsAdded 6 ;
:stackItemsRemoved 7 ;
rdfs:comment "Duplicate 6th stack item."@en .
### http://ethon.consensys.net/Contracts/Opcode_DUP7
:Opcode_DUP7 rdf:type owl:NamedIndividual ,
:Opcode ;
:cost 3 ;
:hexValue "86"^^xsd:hexBinary ;
:name "DUP7"^^xsd:string ;
:stackItemsAdded 7 ;
:stackItemsRemoved 8 ;
rdfs:comment "Duplicate 7th stack item."@en .
### http://ethon.consensys.net/Contracts/Opcode_DUP8
:Opcode_DUP8 rdf:type owl:NamedIndividual ,
:Opcode ;
:cost 3 ;
:hexValue "87"^^xsd:hexBinary ;
:name "DUP8"^^xsd:string ;
:stackItemsAdded 8 ;
:stackItemsRemoved 9 ;
rdfs:comment "Duplicate 8th stack item."@en .
### http://ethon.consensys.net/Contracts/Opcode_DUP9
:Opcode_DUP9 rdf:type owl:NamedIndividual ,
:Opcode ;
:cost 3 ;
:hexValue "88"^^xsd:hexBinary ;
:name "DUP9"^^xsd:string ;
:stackItemsAdded 9 ;
:stackItemsRemoved 10 ;
rdfs:comment "Duplicate 9th stack item."@en .
### http://ethon.consensys.net/Contracts/Opcode_EQ
:Opcode_EQ rdf:type owl:NamedIndividual ,
:Opcode ;
:cost 3 ;
:hexValue "14"^^xsd:hexBinary ;
:name "EQ"^^xsd:string ;
:stackItemsAdded 2 ;
:stackItemsRemoved 1 ;
rdfs:comment "Equality comparison."@en .
### http://ethon.consensys.net/Contracts/Opcode_EXP
:Opcode_EXP rdf:type owl:NamedIndividual ,
:Opcode ;
:cost 10 ;
:hexValue "0a"^^xsd:hexBinary ;
:name "EXP"^^xsd:string ;
:stackItemsAdded 2 ;
:stackItemsRemoved 1 ;
rdfs:comment "Exponential operation"@en .
### http://ethon.consensys.net/Contracts/Opcode_EXTCODECOPY
:Opcode_EXTCODECOPY rdf:type owl:NamedIndividual ,
:Opcode ;
:cost 20 ;
:hexValue "3c"^^xsd:hexBinary ;
:name "EXTCODECOPY"^^xsd:string ;
:stackItemsAdded 4 ;
:stackItemsRemoved 0 ;
rdfs:comment "Copy an account's code to memory."@en .
### http://ethon.consensys.net/Contracts/Opcode_EXTCODESIZE