Closed NZT48 closed 1 year ago
DKG v6 beta.1.23 is now live on the network. If you want your node to switch to Blazegraph, after performing steps above, run next command to restart your node:
systemctl restart otnode
Alternatively, for non-Debian-based Linux distros, you can run: wget https://github.com/blazegraph/database/releases/download/BLAZEGRAPH_2_1_6_RC/blazegraph.jar
and start the following service:
[Unit] Description=blazegraph - OriginTrail V6 Stage 1 Beta Node Documentation=https://github.com/OriginTrail/ot-node After=network.target
[Service] Type=simple User=root WorkingDirectory=/root/ ExecStart=/bin/java -server -Xmx4g -jar /root/blazegraph.jar Restart=on-failure
[Install] WantedBy=multi-user.target
As an extension to the @origin_trail v6 data layer, we are introducing support for Blazegraph! Blazegraph is the second out of many triple stores to be integrated and supported by OriginTrail v6, after the initial integration with Ontotext GraphDB.
Following the OriginTrail development principle of #neutrality, this opens up doors for further integrations with the likes of Amazon Neptune, Stardog and other great graph solutions out there.
If you want your nodes to automatically start using Blazegraph from the new release (beta 1.23), you should follow these instructions.
Installation
Download Blazegraph on Ubuntu machine:
Install Blazegraph:
Start Blazegraph:
To verify that Blazegraph is running you can use next command:
Testing
Now that you have running Blazegraph you can test it out to and if everything works fine, you OT-Node v6 will automatically connect to Blazegraph after beta 1.23.
Create a testTriples.nq file and place these triples in it:
Upload the file to Blazegraph:
Query the Blazegraph to see uploaded triples:
Final step, to get you OT-Node v6 ready to automatically switch to Blazegraph, you need to add lines with parameters for implementation name and url of graph database (in this case Blazegraph) to your .origintrail_noderc file :
At the end your .origintrail_noderc will be similar to this one:
Your Blazegraph is ready and OT-Node v6 will start using it after the new 1.23 release!
TraceOn