Skip to content

Commit

Permalink
Amend context file location.
Browse files Browse the repository at this point in the history
  • Loading branch information
jason-fox committed Jan 22, 2024
1 parent 1ad487f commit 6e5f7ae
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 21 deletions.
20 changes: 10 additions & 10 deletions README.ja.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@

たとえば、`address` 属性はスマート・アプリケーション内にあり、次のように定義されています:

```jsonld
```json
"@context": {
"schema": "https://schema.org/",
"address": "schema:address"
Expand All @@ -81,7 +81,7 @@
[schema.org **JSON-LD** schema](https://schema.org/version/latest/schemaorg-current-http.jsonld) を参照することにより、
`address` 属性が `streetAddress` を含むサブ属性を持つ JSON オブジェクトを保持しているという情報を抽出できます。

```jsonld
```json
{
"@id": "http://schema.org/streetAddress",
"@type": "rdf:Property",
Expand Down Expand Up @@ -406,7 +406,7 @@ Context Broker は `@context` で示されているすべてのファイルを

つまり、実際の `@context` は次のとおりです:

```jsonld
```json
{
"@context": [
"http://context/ngsi-context.jsonld",
Expand Down Expand Up @@ -543,7 +543,7 @@ curl -G -X GET \

エンティティの作成時に属性が FQN に関連付けられていない場合は、短い名前が**常に**表示されます。

```jsonld
```json
[
{
"@context": "https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context-v1.6.jsonld",
Expand Down Expand Up @@ -654,7 +654,7 @@ Core `@context` が含まれることは常に暗示されることに注意し
両方の `@context` ファイルを明示的に含めることもできます。レスポンスは正規化された **NGSI-LD** であり、
したがって有効な **JSON-LD** でもあり、`@context` は受信プログラムで **JSON-LD** 操作に使用できます。

```jsonld
```json
{
"@context": "http://context/ngsi-context.jsonld",
"id": "urn:ngsi-ld:Building:farm001",
Expand Down Expand Up @@ -722,7 +722,7 @@ curl -G -X GET \
やプロパティのプロパティ (_properties-of-properties_) 要素は含まれません。リクエストの `Link`
ヘッダがレスポンスで返される `@context` として使用されていることがわかります。

```jsonld
```json
[
{
"@context": "http://context/ngsi-context.jsonld",
Expand Down Expand Up @@ -793,7 +793,7 @@ curl -G -X GET \
`Link` ヘッダと `options=keyValues` パラメータを使用すると、次のように、短い形式の Key-Value **JSON-LD**
へのレスポンスが減少します:

```jsonld
```json
[
{
"@context": "http://context/json-context.jsonld",
Expand Down Expand Up @@ -865,7 +865,7 @@ curl -G -X GET \
形式で返されます。Core Context の用語 (`id`, `type` など) を直接上書きすることはできませんが、追加の **JSON-LD**
拡張/圧縮操作が必要になることに注意してください。

```jsonld
```json
[
{
"@context": "http://context/alternate-context.jsonld",
Expand Down Expand Up @@ -917,7 +917,7 @@ curl -G -X GET \

レスポンスは JSON-LD 形式で返され、短い形式の属性名が含まれます:

```jsonld
```json
[
{
"@context": "http://context/ngsi-context.jsonld",
Expand Down Expand Up @@ -966,7 +966,7 @@ curl -G -X GET 'http://localhost:1026/ngsi-ld/v1/entities/' \

`Link` ヘッダと `options=keyValues` パラメータを使用すると、JSON-LD へのレスポンスが減少します。

```jsonld
```json
[
{
"@context": "http://context/json-context.jsonld",
Expand Down
22 changes: 11 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ held within our broker.

For example, the attribute `address` is within our smart application is defined as follows:

```jsonld
```json
"@context": {
"schema": "https://schema.org/",
"address": "schema:address"
Expand All @@ -82,7 +82,7 @@ A program written by a third party would therefore be able to extract informatio
holds a JSON object with a sub-attribute containing the `streetAddress` by referring to the full
[schema.org **JSON-LD** schema](https://schema.org/version/latest/schemaorg-current-http.jsonld)

```jsonld
```json
{
"@id": "http://schema.org/streetAddress",
"@type": "rdf:Property",
Expand Down Expand Up @@ -411,7 +411,7 @@ is implicitly included as well.

This means that the actual `@context` is:

```jsonld
```json
{
"@context": [
"http://context/ngsi-context.jsonld",
Expand Down Expand Up @@ -540,7 +540,7 @@ Since no explicit `@context` was sent in the request, the response returns the C
Note that if an attribute has not been associated to an FQN when the entity was created, the short name will **always**
be displayed.

```jsonld
```json
[
{
"@context": "https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context-v1.6.jsonld",
Expand Down Expand Up @@ -626,7 +626,7 @@ This example returns the data of `urn:ngsi-ld:Building:farm001`. The NGSI-LD `@c
The full link header syntax can be seen below:

```text
Link: <https://fiware.github.io/data-models/context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json
Link: <ttp://context/json-context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"; type="application/ld+json
```

The standard HTTP `Link` header allows metadata (in this case the `@context`) to be passed in without actually touching
Expand All @@ -649,7 +649,7 @@ Note that the inclusion of the core `@context` is always implied. It would be al
files explicitly as element in the array of `@context` sent. The response is normalized **NGSI-LD** and therefore valid
**JSON-LD** as well, and the `@context` can be used by the receiving program for **JSON-LD** operations.

```jsonld
```json
{
"@context": "http://context/ngsi-context.jsonld",
"id": "urn:ngsi-ld:Building:farm001",
Expand Down Expand Up @@ -715,7 +715,7 @@ Because of the use of the `options=keyValues`, the response consists of JSON onl
`type="Property"` or any _properties-of-properties_ elements. You can see that `Link` header from the request has been
used as the `@context` returned in the response.

```jsonld
```json
[
{
"@context": "http://context/ngsi-context.jsonld",
Expand Down Expand Up @@ -784,7 +784,7 @@ curl -G -X GET \
The use of the `Link` header and the `options=keyValues` parameter reduces the response to short form key-values
**JSON-LD** as shown:

```jsonld
```json
[
{
"@context": "http://context/json-context.jsonld",
Expand Down Expand Up @@ -854,7 +854,7 @@ The response is returned in JSON-LD format with short form attribute names (`add
the short names provided in the alternate context. Note that core context terms (`id`, `type` etc.) cannot be overridden
directly but would require an additional **JSON-LD** expansion/compaction operation.

```jsonld
```json
[
{
"@context": "http://context/alternate-context.jsonld",
Expand Down Expand Up @@ -904,7 +904,7 @@ curl -G -X GET \

The response is returned in JSON-LD format with short form attribute names:

```jsonld
```json
[
{
"@context": "http://context/ngsi-context.jsonld",
Expand Down Expand Up @@ -951,7 +951,7 @@ curl -G -X GET 'http://localhost:1026/ngsi-ld/v1/entities/' \

Use of the `Link` header and the `options=keyValues` parameter reduces the response to JSON-LD.

```jsonld
```json
[
{
"@context": "http://context/json-context.jsonld",
Expand Down

0 comments on commit 6e5f7ae

Please sign in to comment.