@@ -71,7 +71,7 @@ JSON-LD introduces the concept of the `@context` element which provides addition
7171interpret the rest of the data with more clarity and depth.
7272
7373Furthermore the JSON-LD specification enables you to define a unique ` @type ` associating a well-defined
74- [ data model] ( https://fiware-datamodels.readthedocs.io/en/latest/guidelines/index.html ) to the data itself.
74+ [ data model] ( https://smartdatamodels.org/ ) to the data itself.
7575
7676### Video: What is JSON-LD?
7777
@@ -118,7 +118,7 @@ Once again, _entity_ can be considered to be the core element. Every entity must
118118often a [ URN] ( https://en.wikipedia.org/wiki/Uniform_resource_name ) , there is also a ` type ` , used to define the structure
119119of the data held, which must also be a URI. This URI should correspond to a well-defined data model which can be found
120120on the web. For example the URI ` https://uri.fiware.org/ns/data-models#Building ` is used to define common data model for
121- a [ Building] ( https://fiware-datamodels.readthedocs.io/en/latest/Building/Building/doc/spec/index.html ) .
121+ a [ Building] ( https://github.com/smart-data-models/dataModel.Building ) .
122122
123123_ Entities_ can have _ properties_ and _ relationships_ . Ideally the name of each _ property_ should also be a well defined
124124URI which corresponds to a common concept found across the web (e.g. ` http://schema.org/address ` is a common URI for the
@@ -284,7 +284,7 @@ from multiple sources and remove ambiguity when comparing data coming from diffe
284284
285285Creating linked data using fully qualified names throughout would be painful, as each attribute would need to be a URI,
286286so JSON-LD introduces the idea of an `@context` attribute which can hold pointers to context definitions. To add a
287- FIWARE [Building](https://fiware-datamodels.readthedocs.io/en/latest/Building/Building/doc/spec/index.html ) data entity,
287+ FIWARE [Building](https://github.com/smart-data-models/dataModel.Building ) data entity,
288288the following `@context` would be required
289289
290290` ` ` json
@@ -293,7 +293,7 @@ the following `@context` would be required
293293 "type": "Building",
294294 ... other data attributes
295295 "@context": [
296- "https://fiware.github.io/data-models /context.jsonld",
296+ "https://smartdatamodels.org /context.jsonld",
297297 "https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context-v1.3.jsonld"
298298 ]
299299}
@@ -306,11 +306,11 @@ refers to the Core `@context` of NGSI-LD, this defines element such as `id` and
306306entities, as well as defining terms such as `Property` and `Relationship`. The core context is so fundamental to
307307NGSI-LD, that it is added by default to any `@context` sent to a request.
308308
309- # ## FIWARE Data Models
309+ # ## Smart Data Models
310310
311- [https://fiware.github.io/data-models/ context.jsonld](https://fiware.github.io/data-models /context.jsonld) refers to the
312- definition of standard data models supplied by FIWARE . Adding this to the `@context` will load the definitions of all
313- the [data models](https://fiwaredata-models.readthedocs.io ) defined by the FIWARE Foundation in collaboration with other
311+ [https://smartdatamodels.org/ context.jsonld](https://smartdatamodels.org /context.jsonld) refers to the
312+ definition of standard data models supplied by the Smart Data Models project . Adding this to the `@context` will load the definitions of all
313+ the [data models](https://smartdatamodels.org/ ) defined by the FIWARE Foundation in collaboration with other
314314organizations such as [GSMA](https://www.gsma.com/) and [TM Forum](https://www.tmforum.org/). A summary of the FQNs
315315related to **Building** can be seen below :
316316
@@ -372,7 +372,7 @@ curl -iX POST \
372372 "value": "Bösebrücke Einkauf"
373373 },
374374 "@context": [
375- "https://fiware.github.io/data-models /context.jsonld",
375+ "https://smartdatamodels.org /context.jsonld",
376376 "https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context-v1.3.jsonld"
377377 ]
378378}'
@@ -381,7 +381,7 @@ curl -iX POST \
381381The first request will take some time, as the context broker must navigate and load all of the files mentioned in the
382382` @context` .
383383
384- > **Note**: if `https://fiware.github.io/data-models /context.jsonld` is unavailable for some reason the request will
384+ > **Note**: if `https://smartdatamodels.org /context.jsonld` is unavailable for some reason the request will
385385> fail
386386>
387387> For a working production system it is essential that the `@context` files are always available to ensure third parties
@@ -428,7 +428,7 @@ curl -iX POST \
428428 "value": "Checkpoint Markt"
429429 },
430430 "@context": [
431- "https://fiware.github.io/data-models /context.jsonld",
431+ "https://smartdatamodels.org /context.jsonld",
432432 "https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context-v1.3.jsonld"
433433 ]
434434}'
@@ -638,7 +638,7 @@ A [`Link` header](https://www.w3.org/wiki/LinkHeader) must be supplied to associ
638638with the FQN `https://uri.fiware.org/ns/data-models#Building`. The full link header syntax can be seen below:
639639
640640` ` ` text
641- Link: <https://fiware.github.io/data-models /context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json
641+ Link: <https://smartdatamodels.org /context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json
642642` ` `
643643
644644The standard HTTP `Link` header allows metadata (in this case the `@context`) to be passed in without actually touching
@@ -649,7 +649,7 @@ the resource in question. In the case of NGSI-LD, the metadata is a file in `app
649649` ` ` bash
650650curl -G -X GET \
651651 'http://localhost:1026/ngsi-ld/v1/entities' \
652- -H 'Link: <https://fiware.github.io/data-models /context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"' \
652+ -H 'Link: <https://smartdatamodels.org /context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"' \
653653 'http://localhost:1026/ngsi-ld/v1/entities' \
654654 -H 'Accept: application/ld+json' \
655655 -d 'type=Building' \
@@ -679,7 +679,7 @@ used as the `@context` returned in the response.
679679 "type": "Point",
680680 "coordinates": [13.3986, 52.5547]
681681 },
682- "@context": "https://fiware.github.io/data-models /context.jsonld"
682+ "@context": "https://smartdatamodels.org /context.jsonld"
683683 },
684684 {
685685 "id": "urn:ngsi-ld:Building:store002",
@@ -696,7 +696,7 @@ used as the `@context` returned in the response.
696696 "type": "Point",
697697 "coordinates": [13.3903, 52.5075]
698698 },
699- "@context": "https://fiware.github.io/data-models /context.jsonld"
699+ "@context": "https://smartdatamodels.org /context.jsonld"
700700 }
701701]
702702` ` `
@@ -712,7 +712,7 @@ the `q` parameter - if a string has spaces in it, it can be URL encoded and held
712712` ` ` bash
713713curl -G -X GET \
714714 'http://localhost:1026/ngsi-ld/v1/entities' \
715- -H 'Link: <https://fiware.github.io/data-models /context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"'
715+ -H 'Link: <https://smartdatamodels.org /context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"'
716716 -H 'Accept: application/ld+json' \
717717 -d 'type=Building' \
718718 -d 'q=name==%22Checkpoint%20Markt%22' \
@@ -721,12 +721,12 @@ curl -G -X GET \
721721
722722# ### Response:
723723
724- The `Link` header `https://fiware.github.io/data-models /context.jsonld` holds an array of `@context` as shown :
724+ The `Link` header `https://smartdatamodels.org /context.jsonld` holds an array of `@context` as shown :
725725
726726` ` ` json
727727{
728728 "@context": [
729- "https://fiware.github.io/data-models /context.jsonld",
729+ "https://smartdatamodels.org /context.jsonld",
730730 "https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context-v1.3.jsonld"
731731 ]
732732}
@@ -754,7 +754,7 @@ JSON-LD as shown:
754754 "type": "Point",
755755 "coordinates": [13.3903, 52.5075]
756756 },
757- "@context": "https://fiware.github.io/data-models /context.jsonld"
757+ "@context": "https://smartdatamodels.org /context.jsonld"
758758 }
759759]
760760` ` `
@@ -770,7 +770,7 @@ done using the `q` parameter, comma separating the acceptable values.
770770` ` ` bash
771771curl -G -X GET \
772772 'http://localhost:1026/ngsi-ld/v1/entities' \
773- -H 'Link: <https://fiware.github.io/data-models /context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"'
773+ -H 'Link: <https://smartdatamodels.org /context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"'
774774 -H 'Accept: application/ld+json' \
775775 -d 'type=Building' \
776776 -d 'q=category==%22commercial%22,%22office%22 \
@@ -798,7 +798,7 @@ The response is returned in JSON-LD format with short form attribute names:
798798 "type": "Point",
799799 "coordinates": [13.3986, 52.5547]
800800 },
801- "@context": "https://fiware.github.io/data-models /context.jsonld"
801+ "@context": "https://smartdatamodels.org /context.jsonld"
802802 },
803803 {
804804 "id": "urn:ngsi-ld:Building:store002",
@@ -815,7 +815,7 @@ The response is returned in JSON-LD format with short form attribute names:
815815 "type": "Point",
816816 "coordinates": [13.3903, 52.5075]
817817 },
818- "@context": "https://fiware.github.io/data-models /context.jsonld"
818+ "@context": "https://smartdatamodels.org /context.jsonld"
819819 }
820820]
821821` ` `
@@ -832,7 +832,7 @@ Filtering can be done using the `q` parameter - sub-attributes are annotated usi
832832` ` ` bash
833833curl -G -X GET \
834834 'http://localhost:1026/ngsi-ld/v1/entities' \
835- -H 'Link: <https://fiware.github.io/data-models /context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"'
835+ -H 'Link: <https://smartdatamodels.org /context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"'
836836 -H 'Accept: application/ld+json' \
837837 -d 'type=Building' \
838838 -d 'q=address[addressLocality]==%22Kreuzberg%22' \
@@ -860,7 +860,7 @@ Use of the `Link` header and the `options=keyValues` parameter reduces the respo
860860 "type": "Point",
861861 "coordinates": [13.3903, 52.5075]
862862 },
863- "@context": "https://fiware.github.io/data-models /context.jsonld"
863+ "@context": "https://smartdatamodels.org /context.jsonld"
864864 }
865865]
866866` ` `
@@ -878,7 +878,7 @@ This supersedes the `mq` parameter from NGSI v2.
878878` ` ` bash
879879curl -G -X GET \
880880 'http://localhost:1026/ngsi-ld/v1/entities' \
881- -H 'Link: <https://fiware.github.io/data-models /context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"'
881+ -H 'Link: <https://smartdatamodels.org /context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json"'
882882 -H 'Accept: application/json' \
883883 -d 'type=Building' \
884884 -d 'q=address.verified==true' \
@@ -942,7 +942,7 @@ If another attribute is to be used, an additional `geoproperty` parameter is req
942942` ` ` bash
943943curl -G -X GET \
944944 'http://localhost:1026/ngsi-ld/v1/entities' \
945- -H 'Link: <https://fiware.github.io/data-models /context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/json"'
945+ -H 'Link: <https://smartdatamodels.org /context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/json"'
946946 -H 'Accept: application/json' \
947947 -d 'type=Building' \
948948 -d 'geometry=Point' \
0 commit comments