ninjs Examples Multimedia

Example for multimedia content

The ninjs object includes

  • text news as main object
  • a main picture illustrating the text news (in ninjs terms: associated with the text news)
  • a portrait of a person the text news is about (also: associated)
{
    "uri" : "http://ninjs.example.com/newsitems/20130709cplx456",
    "type" : "composite",
    "profile" : "text-photo",
    "versioncreated" : "2013-07-09T10:39:00Z",
    "copyrightnotice" : "Copyright 2013 The News Agency, www.tnag.org - all rights reserved.",
    "language" : "en",
    "person" : [{
      "name" : "Francesco Schettino",
      "rel" : "about",
      "scheme" : "http://www.freebase.com/m/",
      "code" : "0hzcydt"
      }],
    "place" : [{
      "name" : "Grossetto",
      "rel" : "mentions"
      },
      {
      "name" : "Tuscany",
      "rel" : "mentions"
      },
      {
      "name" : "Italy",
      "rel" : "mentions",
      "scheme" : "http://cvx.iptc.org/iso3166-1a2/",
      "code" : "it"
      }
      ],
    "organisation" : [{
      "name" : "Costa Crociere SpA",
      "rel" : "mentions"
      }],
    "byline" : "Paulo Santalucia and Frances d'Emilio",
    "located" : "Grossetto, Italy",
    "headline" : "Captain of wrecked cruise ship on trial in Italy", 
    "body_text" : "GROSSETO, Italy (AP) -- The trial of the captain of the shipwrecked Costa Concordia cruise liner has begun in a theater converted into a courtroom in Tuscany to accommodate all the survivors and relatives of the 32 victims who want to see justice carried out in the 2012 tragedy. The sole defendant, Francesco Schettino, his eyes shaded by sunglasses and slipping into a back door, made no comment to reporters as he arrived for his trial Tuesday on charges of multiple manslaughter, abandoning ship and causing the shipwreck near the island of Giglio. His lawyer, Domenico Pepe, told reporters that, as expected, the judge was postponing the hearing due to an eight-day nationwide lawyers' strike. Pepe said some 1,000 witnesses are expected to eventually testify. Many of them are expected to be from among the 4,2000 passengers and crew aboard the ship that struck a jagged reef off Giglio, took on water and capsized. Schettino has denied wrongdoing.",
    "body_xhtml" : "<p>GROSSETO, Italy (AP) -- The trial of the captain of the shipwrecked Costa Concordia cruise liner has begun in a theater converted into a courtroom in Tuscany to accommodate all the survivors and relatives of the 32 victims who want to see justice carried out in the 2012 tragedy.</p><p>The sole defendant, Francesco Schettino, his eyes shaded by sunglasses and slipping into a back door, made no comment to reporters as he arrived for his trial Tuesday on charges of multiple manslaughter, abandoning ship and causing the shipwreck near the island of Giglio.</p><p>His lawyer, Domenico Pepe, told reporters that, as expected, the judge was postponing the hearing due to an eight-day nationwide lawyers' strike.</p><p>Pepe said some 1,000 witnesses are expected to eventually testify. Many of them are expected to be from among the 4,2000 passengers and crew aboard the ship that struck a jagged reef off Giglio, took on water and capsized. Schettino has denied wrongdoing.</p>",
    "associations" : {
      "mainpic" :
    {
        "uri" : "http://ninjs.example.com/newsitems/20130709simpPh123",
        "type" : "picture",
        "versioncreated" : "2013-07-08T08:12:00Z",
        "copyrightnotice" : "Copyright 2013 The News Agency, www.tna.org - all rights reserved.",
        "object" : [ {
          "name" : "Costa Concordia",
          "rel" : "about",
          "scheme" : "http://www.freebase.com/m/",
          "code" : "0cd72h"
        }
        ],
        "place" : [{
          "name" : "Giglio",
          "rel" : "mentions"
          },
          {
          "name" : "Tuscany",
          "rel" : "mentions"
          },
          {
          "name" : "Italy",
          "rel" : "mentions",
          "scheme" : "http://cvx.iptc.org/iso3166-1a2/",
          "code" : "it"
          }
          ],
        "organisation" : [{
          "name" : "Costa Crociere SpA",
          "rel" : "mentions"
          }],
        "byline" : "Paulo Santalucia",
        "headline" : "Costa Concordia cruise ship", 
         "description_text": "The Costa Concordia cruise ship lies on its side in the waters of the Tuscan island of Giglio, Italy, Monday, July 8, 2013. The luxury cruise ship ran aground off the coast of Tuscany on Jan 13, 2012, sending water pouring in through a 160-foot (50-meter) gash in the hull and forcing the evacuation of some 4,200 people from the listing vessel early. ",
         "description_xhtml": "<p>The Costa Concordia cruise ship lies on its side in the waters of the Tuscan island of Giglio, Italy,</ br> Monday, July 8, 2013. The luxury cruise ship ran aground off the coast of Tuscany on Jan 13, 2012, sending water pouring in through a 160-foot (50-meter) gash in the hull and forcing the evacuation of some 4,200 people from the listing vessel early. </p>",
        "renditions" : {
          "main" : {
            "href" : "http://hosted.ap.org/photos/2/2643c588-dc8d-4923-bebd-e3b904edbb3a-big.jpg",
            "mimetype": "image/jpg",
            "title" : "Mid Resolution",
            "height" : 281,
            "width" : 429
          },
          "small" : {
            "href" : "http://hosted.ap.org/photos/2/2643c588-dc8d-4923-bebd-e3b904edbb3a-small.jpg",
            "mimetype": "image/jpg",
            "title" : "Low Resolution",
            "height" : 117,
            "width" : 179
          }
        }
    },
    "portrait" :
    {
    "uri" : "http://ninjs.example.com/newsitems/20130709simpPh456",
    "type" : "picture",
    "versioncreated" : "2013-07-09T10:12:00Z",
    "copyrightnotice" : "Copyright 2013 The News Agency, www.tna.org - all rights reserved.",
    "person" : [{
      "name" : "Francesco Schettino",
      "rel" : "about",
      "scheme" : "http://www.freebase.com/m/",
      "code" : "0hzcydt"
      }],
    "place" : [{
      "name" : "Grossetto",
      "rel" : "mentions"
      },
      {
      "name" : "Tuscany",
      "rel" : "mentions"
      },
      {
      "name" : "Italy",
      "rel" : "mentions",
      "scheme" : "http://cvx.iptc.org/iso3166-1a2/",
      "code" : "it"
      }
      ],
    "organisation" : [{
      "name" : "Costa Crociere SpA",
      "rel" : "mentions"
      }],
        "byline" : "Paulo Santalucia",
        "headline" : "Francesco Schettino at court", 
        "description_text" : "Francesco Schettino the captain of the Costa Concordia cruise ship at court in Grossetto, Italy, on 9 July 2013",
        "renditions" : {
          "main" : {
            "href" : "http://hosted.ap.org/photos/2/2643c588-dc8d-4923-bebd-e3b904xyz000-big.jpg",
            "mimetype": "image/jpg",
            "title" : "Mid Resolution",
            "height" : 430,
            "width" : 280
          },
          "small" : {
            "href" : "http://hosted.ap.org/photos/2/2643c588-dc8d-4923-bebd-e3b904xyz000-small.jpg",
            "mimetype": "image/jpg",
            "title" : "Low Resolution",
            "height" : 180,
            "width" : 120
          }
        }
    }    

  }
}