Skip to content

Commit

Permalink
comunica integration (#1937)
Browse files Browse the repository at this point in the history
* comunica integration and refactoring

* fix issue with assertionsByAsset

* update max retries for publish results

* create graphdb repository if not exists

* update sparql query service unit tests
  • Loading branch information
zeroxbt authored May 5, 2022
1 parent 99cd111 commit e8d9297
Show file tree
Hide file tree
Showing 9 changed files with 16,231 additions and 11,170 deletions.
7 changes: 3 additions & 4 deletions .origintrail_noderc.tests
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,11 @@
}
],
"graphDatabase": {
"name": "node0",
"username": "admin",
"password": "",
"implementation": "Blazegraph",
"url": "http://localhost:9999/blazegraph",
"sparqlEndpoint": "http://localhost:9999/blazegraph/namespace/kb/sparql",
"sparqlEndpointUpdate": "http://localhost:9999/blazegraph/namespace/kb/sparql"
"implementation": "GraphDB",
"url": "http://localhost:7200/"
},
"logLevel": "trace",
"rpcPort": 8900,
Expand Down
330 changes: 152 additions & 178 deletions config/config.json
Original file line number Diff line number Diff line change
@@ -1,181 +1,155 @@
{
"development": {
"appDataPath": "data",
"autoUpdate": {
"enabled": false,
"branch": "v6/develop",
"backupDirectory": "../backup"
},
"blockchain": [
{
"blockchainTitle": "Polygon",
"networkId": "polygon::mainnet",
"hubContractAddress": "0xFD6ECaed420aB70fb97eB2423780517dc425ef81",
"rpcEndpoints": [
"https://rpc-mumbai.maticvigil.com/"
]
}
],
"graphDatabase": {
"implementation": "GraphDB",
"url": "http://localhost:7200",
"name": "node0",
"username": "admin",
"password": ""
},
"logLevel": "trace",
"replicationFactor": 5,
"rpcPort": 8900,
"network": {
"port": 9000,
"bootstrap": []
},
"ipWhitelist": [
"::1",
"127.0.0.1"
],
"telemetryHub": {
"enabled": false,
"packages": [
"ot-telemetry-collector"
],
"url": ""
},
"operationalDatabase": {
"databaseName": "operationaldb"
}
},
"test": {
"appDataPath": "data",
"autoUpdate": {
"enabled": false,
"branch": "v6/develop",
"backupDirectory": "../backup"
},
"blockchain": [
{
"blockchainTitle": "ganache",
"networkId": "ganache::testnet",
"hubContractAddress": "",
"rpcEndpoints": [
"http://localhost:7545"
]
}
],
"graphDatabase": {
"implementation": "GraphDB",
"url": "http://localhost:7200",
"name": "node0",
"username": "admin",
"password": ""
},
"logLevel": "trace",
"replicationFactor": 5,
"rpcPort": 8900,
"network": {
"port": 9000,
"bootstrap": []
},
"ipWhitelist": [
"::1",
"127.0.0.1"
],
"telemetryHub": {
"enabled": false,
"packages": [
"ot-telemetry-collector"
],
"url": ""
},
"operationalDatabase": {
"databaseName": "operationaldb"
}
},
"testnet": {
"appDataPath": "data",
"autoUpdate": {
"enabled": true,
"branch": "v6/release/testnet",
"backupDirectory": "../backup"
},
"blockchain": [
{
"blockchainTitle": "Polygon",
"networkId": "polygon::testnet",
"hubContractAddress": "0xFD6ECaed420aB70fb97eB2423780517dc425ef81",
"rpcEndpoints": [
"https://rpc-mumbai.maticvigil.com/"
]
}
],
"graphDatabase": {
"implementation": "GraphDB",
"url": "http://localhost:7200",
"name": "node0",
"username": "admin",
"password": ""
},
"logLevel": "trace",
"replicationFactor": 5,
"rpcPort": 8900,
"network": {
"port": 9000,
"bootstrap": [
"/ip4/165.232.122.94/tcp/9000/p2p/QmQ2zigjQikYnyYUSXZydNXrDRhBut2mubwJBaLXobMt3A",
"/ip4/46.101.111.223/tcp/9000/p2p/QmdTKEP4DDSwYzX2CHEsBfpEAKAVyE4mPq9ouh4ehZZbg5",
"/ip4/46.101.153.21/tcp/9000/p2p/QmXzmTqVT3TPUtTz4dBDN5NWSABqnX9rKXCG9WCLXMfEaM"
]
},
"ipWhitelist": [
"::1",
"127.0.0.1"
],
"telemetryHub": {
"enabled": true,
"packages": [
"ot-telemetry-collector"
],
"url": "https://polaris.delta.origin-trail.network/metrics/"
},
"operationalDatabase": {
"databaseName": "operationaldb"
}
},
"mainnet": {
"appDataPath": "data",
"autoUpdate": {
"enabled": true,
"branch": "v6/release/mainnet",
"backupDirectory": "../backup"
},
"blockchain": [],
"graphDatabase": {
"implementation": "GraphDB",
"url": "http://localhost:7200",
"name": "node0",
"username": "admin",
"password": ""
},
"logLevel": "trace",
"replicationFactor": 5,
"rpcPort": 8900,
"network": {
"port": 9000,
"bootstrap": []
},
"ipWhitelist": [
"::1",
"127.0.0.1"
],
"telemetryHub": {
"enabled": false,
"packages": [
"ot-telemetry-collector"
],
"url": ""
},
"operationalDatabase": {
"databaseName": "operationaldb"
"development": {
"appDataPath": "data",
"autoUpdate": {
"enabled": false,
"branch": "v6/develop",
"backupDirectory": "../backup"
},
"blockchain": [
{
"blockchainTitle": "Polygon",
"networkId": "polygon::mainnet",
"hubContractAddress": "0xFD6ECaed420aB70fb97eB2423780517dc425ef81",
"rpcEndpoints": ["https://rpc-mumbai.maticvigil.com/"]
}
],
"graphDatabase": {
"implementation": "GraphDB",
"url": "http://localhost:7200",
"name": "node0",
"username": "admin",
"password": ""
},
"logLevel": "trace",
"replicationFactor": 5,
"rpcPort": 8900,
"network": {
"port": 9000,
"bootstrap": []
},
"ipWhitelist": ["::1", "127.0.0.1"],
"telemetryHub": {
"enabled": false,
"packages": ["ot-telemetry-collector"],
"url": ""
},
"operationalDatabase": {
"databaseName": "operationaldb"
}
},
"test": {
"appDataPath": "data",
"autoUpdate": {
"enabled": false,
"branch": "v6/develop",
"backupDirectory": "../backup"
},
"blockchain": [
{
"blockchainTitle": "ganache",
"networkId": "ganache::testnet",
"hubContractAddress": "",
"rpcEndpoints": ["http://localhost:7545"]
}
],
"graphDatabase": {
"implementation": "GraphDB",
"url": "http://localhost:7200",
"name": "node0",
"username": "admin",
"password": ""
},
"logLevel": "trace",
"replicationFactor": 5,
"rpcPort": 8900,
"network": {
"port": 9000,
"bootstrap": []
},
"ipWhitelist": ["::1", "127.0.0.1"],
"telemetryHub": {
"enabled": false,
"packages": ["ot-telemetry-collector"],
"url": ""
},
"operationalDatabase": {
"databaseName": "operationaldb"
}
},
"testnet": {
"appDataPath": "data",
"autoUpdate": {
"enabled": true,
"branch": "v6/release/testnet",
"backupDirectory": "../backup"
},
"blockchain": [
{
"blockchainTitle": "Polygon",
"networkId": "polygon::testnet",
"hubContractAddress": "0xFD6ECaed420aB70fb97eB2423780517dc425ef81",
"rpcEndpoints": ["https://rpc-mumbai.maticvigil.com/"]
}
],
"graphDatabase": {
"implementation": "GraphDB",
"url": "http://localhost:7200",
"name": "node0",
"username": "admin",
"password": ""
},
"logLevel": "trace",
"replicationFactor": 5,
"rpcPort": 8900,
"network": {
"port": 9000,
"bootstrap": [
"/ip4/165.232.122.94/tcp/9000/p2p/QmQ2zigjQikYnyYUSXZydNXrDRhBut2mubwJBaLXobMt3A",
"/ip4/46.101.111.223/tcp/9000/p2p/QmdTKEP4DDSwYzX2CHEsBfpEAKAVyE4mPq9ouh4ehZZbg5",
"/ip4/46.101.153.21/tcp/9000/p2p/QmXzmTqVT3TPUtTz4dBDN5NWSABqnX9rKXCG9WCLXMfEaM"
]
},
"ipWhitelist": ["::1", "127.0.0.1"],
"telemetryHub": {
"enabled": true,
"packages": ["ot-telemetry-collector"],
"url": "https://polaris.delta.origin-trail.network/metrics/"
},
"operationalDatabase": {
"databaseName": "operationaldb"
}
},
"mainnet": {
"appDataPath": "data",
"autoUpdate": {
"enabled": true,
"branch": "v6/release/mainnet",
"backupDirectory": "../backup"
},
"blockchain": [],
"graphDatabase": {
"implementation": "GraphDB",
"url": "http://localhost:7200",
"name": "node0",
"username": "admin",
"password": ""
},
"logLevel": "trace",
"replicationFactor": 5,
"rpcPort": 8900,
"network": {
"port": 9000,
"bootstrap": []
},
"ipWhitelist": ["::1", "127.0.0.1"],
"telemetryHub": {
"enabled": false,
"packages": ["ot-telemetry-collector"],
"url": ""
},
"operationalDatabase": {
"databaseName": "operationaldb"
}
}
}
}
Loading

0 comments on commit e8d9297

Please sign in to comment.