Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 12 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v2
with:
node-version: 'v20.16.0'
Expand All @@ -30,11 +30,10 @@ jobs:
- run: npm ci
- run: npm run lint


dockertest:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- run: docker build -t 'ocean-node:mybuild' .

build:
Expand All @@ -47,7 +46,7 @@ jobs:
node: ['18.20.4', 'v20.16.0', 'v22.5.1']

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
Expand All @@ -65,7 +64,7 @@ jobs:
test_unit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v2
with:
node-version: 'v20.16.0'
Expand All @@ -90,15 +89,15 @@ jobs:
DB_URL: 'http://localhost:8108/?apiKey=xyz'
FEE_TOKENS: '{ "1": "0x967da4048cD07aB37855c090aAF366e4ce1b9F48", "137": "0x282d8efCe846A88B159800bd4130ad77443Fa1A1", "80001": "0xd8992Ed72C445c35Cb4A2be468568Ed1079357c8", "56": "0xDCe07662CA8EbC241316a15B611c89711414Dd1a" }'
FEE_AMOUNT: '{ "amount": 1, "unit": "MB" }'
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v4
with:
name: coverage
path: coverage/

test_integration:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v2
with:
node-version: 'v20.16.0'
Expand All @@ -113,7 +112,7 @@ jobs:
- name: Set ADDRESS_FILE
run: echo "ADDRESS_FILE=${HOME}/.ocean/ocean-contracts/artifacts/address.json" >> $GITHUB_ENV
- name: Checkout Barge
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: 'oceanprotocol/barge'
path: 'barge'
Expand Down Expand Up @@ -174,7 +173,7 @@ jobs:
- name: docker logs
run: docker logs ocean-ocean-contracts-1 && docker logs ocean-kindcluster-1 && docker logs ocean-computetodata-1 && docker logs ocean-typesense-1
if: ${{ failure() }}
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v4
with:
name: coverage
path: coverage/
Expand All @@ -184,7 +183,7 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v2
Expand All @@ -204,7 +203,7 @@ jobs:
run: echo "ADDRESS_FILE=${HOME}/.ocean/ocean-contracts/artifacts/address.json" >> $GITHUB_ENV

- name: Checkout Barge
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: 'oceanprotocol/barge'
path: 'barge'
Expand Down Expand Up @@ -254,7 +253,7 @@ jobs:
if: ${{ failure() }}

- name: Checkout Ocean Node
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: 'oceanprotocol/ocean-node'
path: 'ocean-node'
Expand Down Expand Up @@ -290,7 +289,7 @@ jobs:
echo "Ocean Node did not start in time"
exit 1
- name: Checkout Ocean CLI
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: 'oceanprotocol/ocean-cli'
path: 'ocean-cli'
Expand Down
272 changes: 272 additions & 0 deletions schemas/5.0.0.ttl
Original file line number Diff line number Diff line change
@@ -0,0 +1,272 @@
@prefix dash: <http://datashapes.org/dash#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix schema: <https://www.w3.org/2018/credentials/v1> .
@prefix sh: <http://www.w3.org/ns/shacl#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

schema:VerifiableCredentialShape
sh:targetClass schema:VerifiableCredential ;
sh:property [
sh:path schema:type ;
sh:nodeKind sh:Literal ;
sh:minCount 1 ;
sh:maxCount 1 ;
] ;
sh:property [
sh:path schema:credentialSubject ;
sh:node schema:CredentialSubjectShape ;
sh:minCount 1 ;
sh:maxCount 1 ;
] ;
sh:property [
sh:path schema:issuer ;
sh:datatype xsd:string ;
sh:minCount 1 ;
sh:maxCount 1 ;
] ;
sh:property [
sh:path schema:version ;
sh:datatype xsd:string ;
sh:minCount 1 ;
sh:maxCount 1 ;
] ; .

schema:CredentialSubjectShape
sh:targetClass schema:CredentialSubject ;
sh:property [
sh:path schema:id ;
sh:datatype xsd:string ;
sh:pattern "^did\\:op\\:(.*)$" ;
sh:minCount 1 ;
sh:maxCount 1 ;
sh:maxLength 71 ;
sh:minLength 71 ;
] ;
sh:property [
sh:path schema:metadata ;
sh:node schema:MetadataShape ;
sh:minCount 1 ;
sh:maxCount 1 ;
] ;
sh:property [
sh:path schema:services ;
sh:node schema:ServiceShape ;
sh:minCount 1 ;
sh:maxCount 64 ;
] ;
sh:property [
sh:path schema:credentials ;
sh:node schema:CredentialsShape ;
sh:maxCount 64 ;
] ;
sh:property [
sh:path schema:chainId ;
sh:datatype xsd:integer ;
sh:minCount 1 ;
sh:maxCount 1 ;
] ;
sh:property [
sh:path schema:nftAddress ;
sh:datatype xsd:string ;
sh:minCount 1 ;
sh:maxCount 1 ;
sh:minLength 42 ;
sh:maxLength 42 ;
] ; .

schema:MetadataShape
sh:targetClass schema:Metadata ;
sh:property [
sh:path schema:created ;
sh:datatype xsd:string ;
sh:minCount 1 ;
sh:maxCount 1 ;
] ;
sh:property [
sh:path schema:updated ;
sh:datatype xsd:string ;
sh:minCount 1 ;
sh:maxCount 1 ;
] ;
sh:property [
sh:path schema:description ;
sh:node schema:DescriptionObjectShape ;
sh:minCount 1 ;
sh:maxCount 1 ;
] ;
sh:property [
sh:path schema:tags ;
sh:datatype xsd:string ;
sh:maxLength 256 ;
sh:maxCount 64 ;
] ;
sh:property [
sh:path schema:author ;
sh:datatype xsd:string ;
sh:minCount 1 ;
sh:maxCount 1 ;
sh:maxLength 256 ;
] ;
sh:property [
sh:path schema:copyrightHolder ;
sh:datatype xsd:string ;
sh:maxCount 1 ;
sh:pattern "^(.|\\s)*$" ;
sh:maxLength 512 ;
] ;
sh:property [
sh:path schema:license ;
sh:node schema:LicenseObjectShape ;
sh:minCount 1 ;
sh:maxCount 1 ;
] ;
sh:property [
sh:path schema:additionalInformation ;
sh:node schema:AdditionalInformationShape ;
sh:maxCount 1 ;
] ; .

schema:DescriptionObjectShape
sh:property [
sh:path schema:value ;
sh:datatype xsd:string ;
sh:maxCount 1 ;
] ;
sh:property [
sh:path schema:language ;
sh:datatype xsd:string ;
sh:maxCount 1 ;
] ;
sh:property [
sh:path schema:direction ;
sh:datatype xsd:string ;
sh:maxCount 1 ;
] ; .

schema:LicenseObjectShape
sh:property [
sh:path schema:value ;
sh:datatype xsd:string ;
sh:maxCount 1 ;
] ;
sh:property [
sh:path schema:language ;
sh:datatype xsd:string ;
sh:maxCount 1 ;
] ; .

schema:ServiceShape
sh:targetClass schema:Service ;
sh:property [
sh:path schema:id ;
sh:datatype xsd:string ;
sh:minCount 1 ;
sh:maxCount 1 ;
sh:maxLength 256 ;
] ;
sh:property [
sh:path schema:type ;
sh:datatype xsd:string ;
sh:minCount 1 ;
sh:maxCount 1 ;
] ;
sh:property [
sh:path schema:name ;
sh:datatype xsd:string ;
sh:pattern "^(.*)$" ;
sh:minCount 1 ;
sh:maxCount 1 ;
sh:maxLength 256 ;
] ;
sh:property [
sh:path schema:description ;
sh:node schema:DescriptionObjectShape ;
sh:minCount 1 ;
sh:maxCount 1 ;
] ;
sh:property [
sh:path schema:datatokenAddress ;
sh:datatype xsd:string ;
sh:minCount 1 ;
sh:maxCount 1 ;
sh:minLength 42 ;
sh:maxLength 42 ;
] ;
sh:property [
sh:path schema:serviceEndpoint ;
sh:datatype xsd:string ;
sh:pattern "^(.*)$" ;
sh:minCount 1 ;
sh:maxCount 1 ;
sh:maxLength 2048 ;
] ;
sh:property [
sh:path schema:files ;
sh:datatype xsd:string ;
sh:minCount 1 ;
sh:maxCount 1 ;
sh:maxLength 8192 ;
] ;
sh:property [
sh:path schema:timeout ;
sh:datatype xsd:integer ;
sh:minCount 1 ;
sh:maxCount 1 ;
] ;
sh:property [
sh:path schema:compute ;
sh:node schema:ComputeShape ;
sh:maxCount 1 ;
] ; .

schema:ComputeShape
sh:property [
sh:path schema:allowRawAlgorithm ;
sh:datatype xsd:boolean ;
sh:minCount 1 ;
sh:maxCount 1 ;
] ;
sh:property [
sh:path schema:allowNetworkAccess ;
sh:datatype xsd:boolean ;
sh:minCount 1 ;
sh:maxCount 1 ;
] ;
sh:property [
sh:path schema:publisherTrustedAlgorithmPublishers ;
sh:datatype xsd:string ;
sh:maxCount 64 ;
] ;
sh:property [
sh:path schema:publisherTrustedAlgorithms ;
sh:node schema:PublisherTrustedAlgorithmShape ;
sh:maxCount 64 ;
] ; .

schema:PublisherTrustedAlgorithmShape
sh:property [
sh:path schema:did ;
sh:datatype xsd:string ;
sh:minCount 1 ;
sh:maxCount 1 ;
] ;
sh:property [
sh:path schema:filesChecksum ;
sh:datatype xsd:string ;
sh:minCount 1 ;
sh:maxCount 1 ;
] ;
sh:property [
sh:path schema:containerSectionChecksum ;
sh:datatype xsd:string ;
sh:maxCount 1 ;
] ; .

schema:AdditionalInformationShape
sh:property [
sh:path schema:termsAndConditions ;
sh:datatype xsd:boolean ;
sh:minCount 1 ;
sh:maxCount 1 ;
] ; .
7 changes: 7 additions & 0 deletions schemas/op_ddo_v5_0_0.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"name": "op_ddo_v5.0.0",
"enable_nested_fields": true,
"fields": [
{ "name": ".*", "type": "auto", "optional": true }
]
}
Loading
Loading