Skip to content
Open
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
8 changes: 4 additions & 4 deletions docs/canis-major-integration-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,12 +82,12 @@ To retrieve the available entity types in the context broker run the following c

```shell
curl -iX GET 'http://localhost:1026/ngsi-ld/v1/types' \
-H 'Link: <https://raw.githubusercontent.com/smart-data-models/dataModel.DistributedLedgerTech/master/context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"' \
-H 'Link: <https://smart-data-models.github.io/dataModel.DistributedLedgerTech/context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"' \
-H 'NGSILD-Tenant: orion'
```
The command returns the following response, demonstrating the available entity types in the Context Broker:
```json
"@context": "https://raw.githubusercontent.com/smart-data-models/dataModel.DistributedLedgerTech/master/context.jsonld",
"@context": "https://smart-data-models.github.io/dataModel.DistributedLedgerTech/context.jsonld",
"id": "urn:ngsi-ld:EntityTypeList:d77ccfa0-b3cd-11ef-ae1b-0242ac120005",
"type": "EntityTypeList",
"typeList": ["DLTtxReceipt"]
Expand Down Expand Up @@ -159,15 +159,15 @@ To retrieve specific DLT transaction receipts from the the context broker, we'll

```shell
curl -iX GET 'http://localhost:1026/ngsi-ld/v1/entities/?type=DLTtxReceipt&q=refEntity%3D%3D%22urn%3Angsi-ld%3ABuilding%3Awarehouse001%22&attrs=TxReceipts' \
-H 'Link: <https://raw.githubusercontent.com/smart-data-models/dataModel.DistributedLedgerTech/master/context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"' \
-H 'Link: <https://smart-data-models.github.io/dataModel.DistributedLedgerTech/context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"' \
-H 'NGSILD-Tenant: orion'
```

The output will be similar to the following json response:

```json
{
"@context": "https://raw.githubusercontent.com/smart-data-models/dataModel.DistributedLedgerTech/master/context.jsonld",
"@context": "https://smart-data-models.github.io/dataModel.DistributedLedgerTech/context.jsonld",
"id": "urn:ngsi-ld:dlttxreceipt:0xa46d2e3b190d36fbb8af5d0a1c212d8036cf007e6ec4d1309904e052d25e5499",
"type": "DLTtxReceipt",
"TxReceipts": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ public interface TxReceiptMapper {

ObjectMapper OBJECT_MAPPER = new ObjectMapper();

// the transaction index will be appended as a id
// the transaction index will be appended as an id
String ID_TEMPLATE = "urn:ngsi-ld:dlttxreceipt:%s";
String ENTITY_TYPE = "DLTtxReceipt";
String CONTEXT = "https://raw.githubusercontent.com/smart-data-models/dataModel.DistributedLedgerTech/master/context.jsonld";
String CONTEXT = "https://smart-data-models.github.io/dataModel.DistributedLedgerTech/context.jsonld";
String TX_RECEIPTS_KEY = "TxReceipts";
String REF_ENTITY_KEY = "refEntity";
String RETRIEVAL_QUERY_KEY = "retrievalQuery";
Expand Down
Loading