FIWARE Banner


FIWARE チュートリアル・スキーマ:Shelf

Shelf - ストア用家具のユニット。製品は棚にあります

プロパティ期待されるタイプ説明
Shelf のプロパティ
locatedIn Relationship: Building 棚ユニットがある建物
maxCapacity Property: integer 棚が保持できるアイテムの最大数
name Property: text 棚ユニットの名前
stocks Relationship: Product 棚ユニットで現在見つかっている製品
numberOfItems Property: integer 現在棚にある製品のアイテムの数
installedBy Relationship: Person 棚を設置した人
statusOfWork Property: boolean 棚の設置のステータス (例 pending (保留中), in progress (進行中), completed (完了))
location GeoProperty: geo:json 棚の場所

@context@graph のスニペットは、以下にあります (詳細を見るためにスクロールしてください):

  
{
  "@context": {
    "tutorial": "https://fiware.github.io/tutorials.Step-by-Step/schema/",
 
    "Shelf": "tutorial:Shelf",

    "installedBy": {
      "@id": "tutorial:installedBy",   
      "@type": "@id"
    },  
    "locatedIn": {
      "@id": "tutorial:locatedIn",   
      "@type": "@id"
    },
    "maxCapacity":  {
      "@id": "tutorial:maxCapacity",
      "@type": "xsd:integer"
    },
    "numberOfItems":  {
      "@id": "tutorial:numberOfItems",
      "@type": "xsd:integer"
    },
    "requestedBy": {
      "@id": "tutorial:requestedBy",   
      "@type": "@id"
    },  
    "statusOfWork": "tutorial:statusOfWork",
    "stocks": {
      "@id": "tutorial:stocks",   
      "@type": "@id"
    }
  },
  "@graph": [
    {
      "@id": "tutorial:Shelf",
      "@type": "rdfs:Class",
      "rdfs:comment": "棚はストア用家具のユニット",
      "rdfs:label": "棚",
      "rdfs:subClassOf": {
        "@id": "http://schema.org/Thing"
      }
    },
    {
      "@id": "tutoral:requestedBy",
      "@type": "https://uri.etsi.org/ngsi-ld/Relationship",
      "schema:domainIncludes": [
        {
          "@id": "tutorial:Shelf"
        },
        {
          "@id": "tutorial:StockOrder"
        }
      ],
      "schema:rangeIncludes": [
        {
          "@id": "schema:Person"
        }
      ],
      "rdfs:comment": "人が要求したオブジェクト",
      "rdfs:label": "要求者"
    },
    {
      "@id": "tutoral:installedBy",
      "@type": "https://uri.etsi.org/ngsi-ld/Relationship",
      "schema:domainIncludes": [
        {
          "@id": "tutorial:Shelf"
        }
      ],
      "schema:rangeIncludes": [
        {
          "@id": "schema:Person"
        }
      ],
      "rdfs:comment": "オブジェクトを設置する人",
      "rdfs:label": "設置者"
    },
    {
      "@id": "tutorial:locatedIn",
      "@type": "https://uri.etsi.org/ngsi-ld/Relationship",
      "schema:domainIncludes": [
        {
          "@id": "tutorial:Shelf"
        }
      ],
      "schema:rangeIncludes": [
        {
          "@id": "fiware:Building"
        }
      ],
      "rdfs:comment": "アイテムが見つかった建物",
      "rdfs:label": "置き場所"
    },
    {
      "@id": "tutorial:stocks",
      "@type": "https://uri.etsi.org/ngsi-ld/Relationship",
      "schema:domainIncludes": [
        {
          "@id": "tutorial:Shelf"
        }
      ],
      "schema:rangeIncludes": [
        {
          "@id": "tutorial:Product"
        }
      ],
      "rdfs:comment": "棚の上にある製品",
      "rdfs:label": "在庫"
    }
  ]
}