Skip to content

Instantly share code, notes, and snippets.

View fabianekc's full-sized avatar

Christoph Fabianek fabianekc

View GitHub Profile
{
"@context": {
"@import": "https://ns.ownyourdata.eu/ns/soya-context.json",
"@version": 1.1,
"xsd": "http://www.w3.org/2001/XMLSchema#",
"@base": "https://soya.ownyourdata.eu/zQmTHP44chTm9Fp1CX3wT6GGfFJRWcSLhdDyQfV6H8Aigmq/"
},
"@graph": [
{
"@id": "Person",
{
"@context": {
"@import": "https://ns.ownyourdata.eu/ns/soya-context.json",
"@version": 1.1,
"xsd": "http://www.w3.org/2001/XMLSchema#"
},
"@graph": [
{
"@id": "Person",
"@type": "owl:Class",
{
"@context": {
"@version": 1.1,
"@import": "https://ns.ownyourdata.eu/ns/soya-context.json",
"@base": "https://soya.ownyourdata.eu/DRI123/",
"xsd": "http://www.w3.org/2001/XMLSchema#"
},
"@graph": [
{
"@id": "Person",
meta:
name: DRI123
content:
bases:
- name: Person
attributes:
name: String
dateOfBirth: Date
age: Integer
sex: String
// Import the required libraries
const Web3 = require('web3');
// Create a new instance of the Web3 provider
const web3 = new Web3('https://bellecour.iex.ec');
// Define the address of the smart contract and the ABI
const contractAddress = '0xF31A125fb44E0c2dca45c2665F272e9fc09f92AE';
const contractAbi = [
{
// Import the required libraries
const Web3 = require('web3');
// Create a new instance of the Web3 provider
const web3 = new Web3('https://bellecour.iex.ec');
// Define the address of the smart contract and the ABI
const contractAddress = '0xF31A125fb44E0c2dca45c2665F272e9fc09f92AE';
const contractAbi = [
{
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.0 <0.9.0;
contract LogStorage {
event DataStored(
string _data
);
function StoreInLogs(string calldata _data) public {
{
"@context": {
"@version": 1.1,
"@vocab": "https://soya.ownyourdata.eu/Organisation/"
},
"@graph": [
{
"@type": "Organisation",
"name": "Shop Hans Huber",
"location": [
{
"name": "Shop Hans Huber",
"location": {
"address": "straße 4, 1010 Wien",
"coordinates": [
{
"latitude": 48.1,
"longitude": 60.1
}
]
{
"@context": {
"@version": 1.1,
"@vocab": "https://soya.ownyourdata.eu/Organisation/"
},
"@graph": [
{
"@type": "Organisation",
"name": "TSP Hans Huber",
"location": [