@@ -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