EthOn - an Ethereum Ontology - EDCON Pfeffer... · EthOn - an Ethereum Ontology Introducing...
Transcript of EthOn - an Ethereum Ontology - EDCON Pfeffer... · EthOn - an Ethereum Ontology Introducing...
EthOn - an Ethereum Ontology
Introducing semantic Ethereum
ConsenSys Primary Colors
ConsenSys Primary Color Shades
© 2017 consensys.net
The author
Name: Johannes Pfeffer
Ethereum account: 0xc656e934acee31f3d306142a020df5ae05f9880e
Works at: ConsenSys LLC
2
© 2017 consensys.net
What is EthOn?
1. EthOn is an ontology2. EthOn is an Ethereum reference3. EthOn is a data model4. EthOn a learning resource5. EthOn is extensible
5 facts about ethon
3
How EthOn was created
© 2017 consensys.net 5
© 2017 consensys.net 6
© 2017 consensys.net 7
http://ethon.consensys.net/Block
© 2017 consensys.net 8
http://ethon.consensys.net/Block
© 2017 consensys.net 9
http://ethon.consensys.net/StateTransition
What you can do with EthOn
© 2017 consensys.net 11
© 2017 consensys.net
Formalize knowledge about Ethereum
ethereum:Block0
a ethon:Block ;
rdfs:label "Genesis Block" ;
rdfs:comment "This is the block with block number 0. It is the Genesis Block of the Ethereum blockchain." ;
ethon:number 0 ;
ethon:hasBeneficary ethereum:Account0 ;
ethon:blockBeneficiaryReward 5000000000000000000 ;
ethon:blockGasLimit 5000 ;
ethon:blockNonce "0000000000000042" ;
[...]
rdfs:seeAlso <https://etherscan.io/block/0> .
12
© 2017 consensys.net
Exploit your knowledge
PREFIX ethon: <http://ethon.consensys.net/>
PREFIX etherscan: <https://etherscan.io/address/>
SELECT ?generous_philantrope (SUM(?present_to_buterin) as ?direct_bribe)
?dangerous_philantrope (SUM(?present_to_philantrope) as ?indirect_bribe)
WHERE {
?tx ethon:to etherscan:0xd8da6bf26964af9d7eed9e03e53415d37aa96045; # Vitalik’s Ethereum Account
ethon:from ?generous_philantrope ;
ethon:value ?present_to_buterin .
?tx2 ethon:to ?generous_philantrope ;
ethon:from ?dangerous_philantrope ;
ethon:value ?present_to_philantrope .
}
GROUP BY ?generous_philantrope ?dangerous_philantrope
13
SPARQL Queries
© 2017 consensys.net
Exploit your knowledgeVisualized Query (QueryVOWL)
14
SPARQL-Queries
Even more of what you can do with EthOn
© 2017 consensys.net
ERC20 extension
16
EthOn extension
© 2017 consensys.net
EthOn & Co.
Afterwords
EthOn main website:
http://ethon.consensys.net
EthOn - Introducing Semantic Ethereum (original article)
https://media.consensys.net/ethon-introducing-semantic-ethereum-15f1f0696986
17
Acknowledgements:
Alex Beregszaszi, Casey Detrio, Herman Junge, Joseph Chow, Maurycy Pietrzak, Marian Oancea, Niran Babalola, Shahan Khatchadourian, Stefano Bertolo
© 2017 consensys.net