Sha256: 19c769e7d91ab3eecd3fab780cb90c9ebd33c5026be2d7b2b69e6e655c4becd3

Contents?: true

Size: 1.7 KB

Versions: 1

Compression:

Stored size: 1.7 KB

Contents

{
  "id": 9,
  "name": "孔子",
  "pinyin": "Kongzi",
  "latinized": "Confucius",
  "_links": {
    "self":    { "href": "http://literature.example.com/authors/kongzi"  },
    "profile": { "href": "http://literature.example.com/profiles/scholar" },
    "http://literature.example.com/rels/quotes": {
        "href": "http://literature.example.com/quotes/?author=kongzi&q={query}",
        "templated": true
    }
  },
  "_embedded": {
    "http://literature.example.com/rel/works": [
      {
        "id": 11,
        "chinese_name": "論語",
        "english_name": "Analects",
        "_links": {
          "self":    { "href": "http://literature.example.com/work/11" },
          "profile": { "href": "http://literature.example.com/profiles/work" }
        },
        "_embedded": {
          "http://literature.example.com/rel/quotes": [
            {
              "id": 17,
              "chinese": "廄焚。子退朝,曰:“傷人乎?” 不問馬。"
            },
            {
              "id": 18,
              "chinese": "子曰:“其恕乎!己所不欲、勿施於人。”"
            }
          ],
          "http://literature.example.com/rel/era": {
            "id": 99,
            "name": "Zhou Dynasty"
          }
        }
      },
      {
        "id": 12,
        "chinese_name": "易經",
        "english_name": "Commentaries to the Yi-jing",
        "_links": {
          "self":    { "href": "http://literature.example.com/work/12" },
          "profile": { "href": "http://literature.example.com/profiles/work" }
        },
        "_embedded": {
          "http://literature.example.com/rel/quotes": [],
          "http://literature.example.com/rel/era": null
        }
      }
    ]
  }
}

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
yaks-0.4.2 spec/json/confucius.hal.json