Here we will introduce how to quickly build a graph-indexer.
Prepare the environment
Install JDK(Requires JDK11 and above)
brew install openjdk@11
sudo yum install java-11-openjdk-devel
Check the installation:
java -version
Install nodejs
To complete this tutorial successfully, you must have installed on your machine.
Install Node.js with
Install jena-fuseki
Install and run:
wget https://dlcdn.apache.org/jena/binaries/apache-jena-fuseki-4.7.0.tar.gz
tar xvf apache-jena-fuseki-4.7.0.tar.gz
cd apache-jena-fuseki-4.7.0
sh fuseki-server
Create a dataset
A simple Graph Indexer
Here, we will use Node.js to accomplish this process.
This example will listen to RDF data on the Mumbai network, between blocks 32362681 and 32362699.
Create a new project and install the ethers (v5), axios, and qs.