Skip to content

Commit 5567d91

Browse files
committed
Remove @context
1 parent 590cdd9 commit 5567d91

2 files changed

Lines changed: 10 additions & 15 deletions

File tree

docs/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ This is a collection of **NGSI-v2** tutorials for the FIWARE system. Each tutori
2222
demonstrate the correct use of individual FIWARE components and shows the flow of context data within a simple Smart
2323
Solution either by connecting to a series of dummy IoT devices or manipulating the context directly or programmatically.
2424

25-
<!--
25+
<!--- GLOBAL SUMMIT BANNER AD -->
2626

2727
<a href="https://www.fiware.org/global-summit/"><img src="https://fiware.github.io//catalogue/img/Summit24.png" width="240" height="70" /></a> <a href="https://www.eventbrite.de/e/fiware-tech-training-naples-tickets-920143322447"><img src="https://fiware.github.io//catalogue/img/Training24.png" width="240" height="70" /></a>
28-
-->
28+
2929

3030
<blockquote>
3131
<h3>Should I use NGSI-v2 or NGSI-LD?</h3>

docs/relationships-linked-data.md

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -496,15 +496,13 @@ However since the full context has been supplied in the `Link` header, the short
496496
```json
497497
[
498498
{
499-
"@context": "http://context/user-context.jsonld",
500499
"id": "urn:ngsi-ld:Product:001",
501500
"type": "Product",
502501
"name": "Apples",
503502
"price": 0.99,
504503
"size": "S"
505504
},
506505
{
507-
"@context": "http://context/user-context.jsonld",
508506
"id": "urn:ngsi-ld:Product:002",
509507
"type": "Product",
510508
"name": "Bananas",
@@ -548,7 +546,6 @@ Once again the short names are returned.
548546
```json
549547
[
550548
{
551-
"@context": "http://context/user-context.jsonld",
552549
"id": "urn:ngsi-ld:Shelf:unit001",
553550
"type": "Shelf",
554551
"name": "Corner Unit",
@@ -558,7 +555,6 @@ Once again the short names are returned.
558555
}
559556
},
560557
{
561-
"@context": "http://context/user-context.jsonld",
562558
"id": "urn:ngsi-ld:Shelf:unit002",
563559
"type": "Shelf",
564560
"name": "Wall Unit 1",
@@ -602,7 +598,7 @@ The short names have been returned since the `@context` has been supplied in the
602598

603599
```json
604600
{
605-
"@context": "https://fiware.github.io/tutorials.Step-by-Step/datamodels-context.jsonld",
601+
"@context": "http://context/user-context.jsonld",
606602
"id": "urn:ngsi-ld:Shelf:unit001",
607603
"type": "Shelf",
608604
"name": "Corner Unit",
@@ -656,15 +652,14 @@ Note that the relationship is currently unidirectional. **Shelf** ➡ **Building
656652
#### 5 Request:
657653

658654
```bash
659-
curl -X POST \
655+
curl -iX POST \
660656
http://localhost:1026/ngsi-ld/v1/entities/urn:ngsi-ld:Shelf:unit001/attrs \
661657
-H 'Content-Type: application/ld+json' \
662-
-H 'fiware-servicepath: /' \
663658
-d '{
664659
"numberOfItems": {"type": "Property","value": 50},
665660
"stocks": {
666661
"type": "Relationship",
667-
"object": "urn:ngsi-ld:Product:001"
662+
"object": "urn:ngsi-ld:Product:001"
668663
},
669664
"locatedIn" : {
670665
"type": "Relationship", "object": "urn:ngsi-ld:Building:store001",
@@ -713,22 +708,22 @@ passed in the previous request.
713708
"@context": "https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context-v1.6.jsonld",
714709
"id": "urn:ngsi-ld:Shelf:unit001",
715710
"type": "https://fiware.github.io/tutorials.Step-by-Step/schema/Shelf",
716-
"name": {
711+
"http://schema.org/name": {
717712
"type": "Property",
718713
"value": "Corner Unit"
719714
},
720715
"https://fiware.github.io/tutorials.Step-by-Step/schema/locatedIn": {
721716
"type": "Relationship",
722717
"object": "urn:ngsi-ld:Building:store001",
723-
"installedBy": {
718+
"https://fiware.github.io/tutorials.Step-by-Step/schema/installedBy": {
724719
"type": "Relationship",
725720
"object": "urn:ngsi-ld:Person:employee001"
726721
},
727-
"requestedBy": {
722+
"https://fiware.github.io/tutorials.Step-by-Step/schema/requestedBy": {
728723
"type": "Relationship",
729724
"object": "urn:ngsi-ld:Person:bob-the-manager"
730725
},
731-
"statusOfWork": {
726+
"https://fiware.github.io/tutorials.Step-by-Step/schema/statusOfWork": {
732727
"type": "Property",
733728
"value": "completed"
734729
}
@@ -839,7 +834,7 @@ curl -G -X GET \
839834

840835
```json
841836
{
842-
"@context": "https://fiware.github.io/tutorials.Step-by-Step/datamodels-context.jsonld",
837+
"@context": "http://context/user-context.jsonld",
843838
"id": "urn:ngsi-ld:Shelf:unit001",
844839
"type": "Shelf",
845840
"locatedIn": "urn:ngsi-ld:Building:store001"

0 commit comments

Comments
 (0)