SlideShare a Scribd company logo
Linked Data Indexing
of Distributed Ledgers
Allan Third and John Domingue (@johndmk)
Knowledge Media Institute
The Open University, UK http://blockchain.open.ac.uk/
Agenda
• Motivation
• Ethereum Model
• Ontologies
• Architecture
• RDF examples
• Smart Contracts
• Challenges, Future Work and Summary
Motivation
Blockchain is a Linked List
A blockchain actually contains
two different hash structures.
The first is a hash chain of
blocks that links the different
blocks to one another.
The second is internal to each
block and is a Merkle Tree of
transactions within the
blocks.
This allows for efficiently
verifiable proofs that a
transaction was included in a
block.
Contracts in Ethereum
Maintain a data store
representing
something which is
useful to either other
contracts or to the
outside world
Serve as a sort of
externally owned
account with a more
complicated access
policy
Manage an ongoing
contract or
relationship between
multiple users
Provide functions to
other contracts;
essentially serving as
a software library.
Contracts in Ethereum generally serve 4 purposes:
source: Richard Gendal Brown “A Simple Model for Smart Contracts”
http://gendal.me/2015/02/10/a-simple-model-for-smart-contracts/
Ethereum Model
Reputation Contract
Functions:
Storage:
sendReputation
getPersonBalance()
getReputationAttribute
attribs[address = > Attrib]
Attrib { uint balanceOf;
mapping(string => uint);
string[] attribStrings
}
Reputation
Attribute
token
Balances
Reputation Smart Contract
Tokens left
to assign
My Reputation
Peer Reputation Page
Kevin’s Reputation View
Communication: 14
Collaboration: 06
Organisation: 12
Ethics: 05
Problem Solving: 10
Engagement: 04
your Ethereum address
password to private key
Signing this transaction will transfer stated
Reputation Tokens + ETH gas payment from
your account. Estimated gas cost is 0.02 ETH.
Maximum gas cost is set to 0.05 ETH
Transfer
Reputation Tokens Left: 57
number of tokens to transfer
Assign Reputation
My Reputation
Peer Reputation Page
Michelle’s Reputation View
Communication: 06
Collaboration: 02
Organisation: 10
Ethics: 12
Problem Solving: 08
Engagement: 16
your Ethereum address
password to private key
Signing this transaction will transfer stated
Reputation Tokens + ETH gas payment from
your account. Estimated gas cost is 0.02 ETH.
Maximum gas cost is set to 0.05 ETH
Transfer
Reputation Tokens Left: 68
number of tokens to transfer
Assign Reputation
Signed
TX
Reputation
Attribute
token
Balances
Tokens left
to assign
Michelle transfers 4 Reputation tokens for ‘Organisation’ to Kevin
Michelle transfers 4 Reputation tokens for ‘Organisation’ to Kevin
Michelle transfers 4 Reputation tokens for ‘Organisation’ to Kevin
Block no: 45566778
Michelle transfers 4 Reputation tokens for ‘Organisation’ to Kevin
Michelle transfers 4 Reputation tokens for ‘Organisation’ to Kevin
Michelle transfers 4 Reputation tokens for ‘Organisation’ to Kevin
Michelle transfers 4 Reputation tokens for ‘Organisation’ to Kevin
Michelle transfers 4 Reputation tokens for ‘Organisation’ to Kevin
Michelle transfers 4 Reputation tokens for ‘Organisation’ to Kevin
Michelle transfers 4 Reputation tokens for ‘Organisation’ to Kevin
How do we…
• …find Michelle’s transfers to everyone?
• ...summarise reputation transferred by groups of users?
• ...link data to semantically related external sources?
Linked Data indexing
• Problems
– Related data spread across blocks
– No high-level semantics for contracts
• Need
– An index onto blockchain
– To connect blockchain data to Linked Data
– To allow richer contract semantics
• LD index for blockchain
Ontologies for
Blockchains
Flex Ledger 1.0
• A flexible format and protocol for
decentralized ledgers on the Web
• FL Web API to wrap blockchains
– Vocab. extractable from JSON-LD model
• No explicit semantics
https://w3c.github.io/flex-ledger/
EthOn - An Ethereum Ontology
http://ethon.consensys.net/EthOn_spec.html
BLONDiE
Contract
Ethereum
Transaction
Bitcoin
Transaction
Output
Bitcoin
Transaction
Input
Bitcoin
Transaction
hasBitcoin
Transaction
Output
hasBitcoin
Transaction
Input
Message Call
Ethereum
Transaction
Contract
Creation
Ethereum
Transaction
Ethereum
Transaction
has
Ethereum
Transaction
has
Ethereum
Payload
hasOmmer Ethereum
Ommer
has
Ethereum
Blockheader
hasPayload
Ethereum
Blockheader
Normal
Ethereum
Transaction
has
Bitcoin
Blockheader
has
Bitcoin
Payload
hasTransaction
has
Blockheader
Bitcoin
Blockheader
https://github.com/hedugaro/Blondie
Minimal Service Model
https://iserve.kmi.open.ac.uk/
Architecture
RDF Store
Blockchain
index
Ethereum
Listener
Compiled
Contract
LOD Cloud
Architecture
Smart Contract Developer
Linking Open Data cloud diagram 2017, by Andrejs Abele, John P. McCrae,
Paul Buitelaar, Anja Jentzsch and Richard Cyganiak. http://lod-cloud.net/
Ethereum Node
New Block
Transaction &
Block Metadata
as RDF
Deployment
Contract Metadata as RDF
RDF Examples
Transaction RDF Example
Transaction RDF Example
Block RDF Example
Block RDF Example
SPARQL Example
• Total value transferred to a specific contract
address
• Results
Smart Contracts
Indexing smart contracts
• Contract deployment (Ethereum)
– Blockchain address
– Application Binary Interface (ABI) JSON
• Exposed methods & parameters
• Contract inaccessible without ABI
– “Private” deployed contracts can’t be indexed
Smart Contract ABI JSON
Challenges,
Future Work and
Summary
Challenges & Future Work
• Addressing
– Linked Data needs URIs; how to get the “U”?
• Ethereum Name Service:
– “DNS for Ethereum” hosts .eth top-level domain
– But specific to Ethereum
• Currently use node URI – not distributed
Challenges & Future Work
• Distributed index
– Index on one node: centralised
• But good for app-specific customisation
• Could we have
– Data (e.g., RDF) stored on IPFS/Swarm?
– Queries executed within a smart contract?
– i.e., both data & querying distributed
• Performance & cost?
• Use cases?
Our private Ethereum network
• 6 nodes
– 5 mining
– 1 observation (running listener & RDF store)
• Chain created 28th of April 2016
• 1 465 104 blocks (3.5 Gb)
– As of 31/03/2017
• 22 million triples
Summary
• Blockchains
– Are a linked list based on hashes
– No inbuilt indexing mechanism
– Contain ‘smart contracts’
• Basic semantic indexing based on BLONDiE
• Challenges
– Universal naming system
– Distributed vs centralised index

More Related Content

PPTX
Blockchains and new educational models v 2.0
PDF
Blockchains as a Component of the Next generation Internet
PDF
Towards the decentralisation of personal data through blockchains and linked ...
PDF
Blockchains and Adult Education
PDF
Blockchains a new platform for semantically enabled transactions public
PDF
The Potential of Blockchain in Higher Education
PDF
Decentralised Semantic Web @ International Semantic Web Research Summer Schoo...
PDF
Strategies for integrating semantic and blockchain technologies
Blockchains and new educational models v 2.0
Blockchains as a Component of the Next generation Internet
Towards the decentralisation of personal data through blockchains and linked ...
Blockchains and Adult Education
Blockchains a new platform for semantically enabled transactions public
The Potential of Blockchain in Higher Education
Decentralised Semantic Web @ International Semantic Web Research Summer Schoo...
Strategies for integrating semantic and blockchain technologies

What's hot (20)

PDF
The Future of Semantics on the Web
PDF
How Blockchains Are Transforming Adult Education
PPTX
VII Jornadas eMadrid "Education in exponential times". "Blockchains and their...
PPTX
COVID-19 Antibody Test+Vaccination Certificates: There's an app for that
PPTX
Semantic blockchain
PDF
Blockchain
PPTX
Innovation potential of the blockchain, and of decentralized applications
PDF
The Blockchain and Kudos: A Distributed System for Educational Record, Reputa...
PDF
Blockchain and Open Education
PDF
Blockchain Developer | How to Become a Blockchain Developer? | Blockchain Tra...
PDF
Blockchain Primer - Founder Collective - December 2017
PDF
Blockchains for trusted data and unstoppable code
PDF
X ange uni_-_cryptos_-_bj_-_04072017
PDF
"The Blockchain Effect on the Future of the Humanities" by Sherry Jones (July...
PDF
Blockchain Technology | Bitcoin | Ethereum Coin | Cryptocurrency
PDF
Introduction to Blockchain Governance Models
PDF
IDC - Blockchain Threat Model
PDF
Blockchain for Executives, Entrepreneurs and Investors
PDF
Blockchain Beyond Finance - Cronos Groep - Jan 17, 2017
PPTX
Blockchain 3.0 - Decentral Applications
The Future of Semantics on the Web
How Blockchains Are Transforming Adult Education
VII Jornadas eMadrid "Education in exponential times". "Blockchains and their...
COVID-19 Antibody Test+Vaccination Certificates: There's an app for that
Semantic blockchain
Blockchain
Innovation potential of the blockchain, and of decentralized applications
The Blockchain and Kudos: A Distributed System for Educational Record, Reputa...
Blockchain and Open Education
Blockchain Developer | How to Become a Blockchain Developer? | Blockchain Tra...
Blockchain Primer - Founder Collective - December 2017
Blockchains for trusted data and unstoppable code
X ange uni_-_cryptos_-_bj_-_04072017
"The Blockchain Effect on the Future of the Humanities" by Sherry Jones (July...
Blockchain Technology | Bitcoin | Ethereum Coin | Cryptocurrency
Introduction to Blockchain Governance Models
IDC - Blockchain Threat Model
Blockchain for Executives, Entrepreneurs and Investors
Blockchain Beyond Finance - Cronos Groep - Jan 17, 2017
Blockchain 3.0 - Decentral Applications
Ad

Similar to Linked data indexing of distributed ledgers (20)

PDF
Blockchain Chapter #4.pdf
PDF
77201913
PDF
77201913
PPTX
Hello world contract
PPTX
Ethereum Block Chain
PDF
A Pharo story on blockchain technology
PDF
CIKMTutorial.pdf
PPTX
The Ethereum Blockchain - Introduction to Smart Contracts and Decentralized A...
PDF
Grokking TechTalk #17: Introduction to blockchain
DOCX
Dr. Michael G. SolomonBLCN 631 – Blockchain Implementati
PDF
Fluent destry saul
PDF
Jerome de Tychey - Building Web3.0 with Ethereum - Codemotion Berlin 2018
PDF
Jerome de Tychey - Building Web3.0 with Ethereum - Codemotion Berlin 2018
PPTX
Blockchain, Ethereum and Business Applications
PDF
Block 16 - Ethereum block transaction info via aggregated views API by Block 16
PDF
Concept of BlockChain & Decentralized Application
PPTX
what is the graph
PPTX
lecture7 blockchain ethereum mechanics 101
PDF
blockchain class 3.pdf
PPTX
Introduction to Ethereum,accounts, smart contract.pptx
Blockchain Chapter #4.pdf
77201913
77201913
Hello world contract
Ethereum Block Chain
A Pharo story on blockchain technology
CIKMTutorial.pdf
The Ethereum Blockchain - Introduction to Smart Contracts and Decentralized A...
Grokking TechTalk #17: Introduction to blockchain
Dr. Michael G. SolomonBLCN 631 – Blockchain Implementati
Fluent destry saul
Jerome de Tychey - Building Web3.0 with Ethereum - Codemotion Berlin 2018
Jerome de Tychey - Building Web3.0 with Ethereum - Codemotion Berlin 2018
Blockchain, Ethereum and Business Applications
Block 16 - Ethereum block transaction info via aggregated views API by Block 16
Concept of BlockChain & Decentralized Application
what is the graph
lecture7 blockchain ethereum mechanics 101
blockchain class 3.pdf
Introduction to Ethereum,accounts, smart contract.pptx
Ad

More from John Domingue (12)

PPTX
1st workshop on linked data and distributed ledgers introduction v 1.0
PDF
Transforming Education through FORGE
PDF
FIRE in a Book
PPTX
Developing rich interactive eBooks to teach linked open data to professionals...
PPTX
Linked services: Connecting services to the Web of Data
PPTX
Beyond sparql linked data, software, services and applications. Keynote at D...
PPTX
Linked services for the Web of Data
PPTX
Linking Services and Linked Data: Keynote for AIMSA 2012
PPTX
Inaugural Lecture on Future Internet
PPTX
Soa4 all technical achievements final
PPT
Super ontology stack_review_m36_051
PPTX
ESWC 2012 Dinner Keynote: Improving the Impact and Takeup of Semantic Web Res...
1st workshop on linked data and distributed ledgers introduction v 1.0
Transforming Education through FORGE
FIRE in a Book
Developing rich interactive eBooks to teach linked open data to professionals...
Linked services: Connecting services to the Web of Data
Beyond sparql linked data, software, services and applications. Keynote at D...
Linked services for the Web of Data
Linking Services and Linked Data: Keynote for AIMSA 2012
Inaugural Lecture on Future Internet
Soa4 all technical achievements final
Super ontology stack_review_m36_051
ESWC 2012 Dinner Keynote: Improving the Impact and Takeup of Semantic Web Res...

Recently uploaded (20)

PDF
Paper PDF World Game (s) Great Redesign.pdf
PPT
tcp ip networks nd ip layering assotred slides
PPTX
Internet___Basics___Styled_ presentation
PDF
Decoding a Decade: 10 Years of Applied CTI Discipline
PPTX
522797556-Unit-2-Temperature-measurement-1-1.pptx
PDF
The Internet -By the Numbers, Sri Lanka Edition
PDF
How to Ensure Data Integrity During Shopify Migration_ Best Practices for Sec...
PDF
RPKI Status Update, presented by Makito Lay at IDNOG 10
PPTX
Funds Management Learning Material for Beg
PDF
APNIC Update, presented at PHNOG 2025 by Shane Hermoso
PDF
Automated vs Manual WooCommerce to Shopify Migration_ Pros & Cons.pdf
PPTX
Module 1 - Cyber Law and Ethics 101.pptx
PPTX
Introduction to Information and Communication Technology
PPTX
INTERNET------BASICS-------UPDATED PPT PRESENTATION
PPTX
CHE NAA, , b,mn,mblblblbljb jb jlb ,j , ,C PPT.pptx
PDF
SASE Traffic Flow - ZTNA Connector-1.pdf
PDF
Slides PDF The World Game (s) Eco Economic Epochs.pdf
PPTX
PptxGenJS_Demo_Chart_20250317130215833.pptx
PPTX
Job_Card_System_Styled_lorem_ipsum_.pptx
PPTX
Introduction about ICD -10 and ICD11 on 5.8.25.pptx
Paper PDF World Game (s) Great Redesign.pdf
tcp ip networks nd ip layering assotred slides
Internet___Basics___Styled_ presentation
Decoding a Decade: 10 Years of Applied CTI Discipline
522797556-Unit-2-Temperature-measurement-1-1.pptx
The Internet -By the Numbers, Sri Lanka Edition
How to Ensure Data Integrity During Shopify Migration_ Best Practices for Sec...
RPKI Status Update, presented by Makito Lay at IDNOG 10
Funds Management Learning Material for Beg
APNIC Update, presented at PHNOG 2025 by Shane Hermoso
Automated vs Manual WooCommerce to Shopify Migration_ Pros & Cons.pdf
Module 1 - Cyber Law and Ethics 101.pptx
Introduction to Information and Communication Technology
INTERNET------BASICS-------UPDATED PPT PRESENTATION
CHE NAA, , b,mn,mblblblbljb jb jlb ,j , ,C PPT.pptx
SASE Traffic Flow - ZTNA Connector-1.pdf
Slides PDF The World Game (s) Eco Economic Epochs.pdf
PptxGenJS_Demo_Chart_20250317130215833.pptx
Job_Card_System_Styled_lorem_ipsum_.pptx
Introduction about ICD -10 and ICD11 on 5.8.25.pptx

Linked data indexing of distributed ledgers

Editor's Notes

  • #21: Not really clear why EthOn was started in preference to BLONDiE’s own Ethereum vocabulary
  • #22: The EthOn Ethereum ontology, described using W3C RDF Schema and the Web Ontology Language. It is closely aligned with Gavin Wood's Ethereum yellow paper.
  • #35: Generated by during compilation for Ethereum. ABI needed because contract is compiled.