Article

(Difference between revisions)

Jump to: navigation, search

(?JSON (untyped – types will be discovered by the data processor))
Line 63: Line 63:
   
 
==== JSON (untyped – types will be discovered by the data processor) ====
 
==== JSON (untyped – types will be discovered by the data processor) ====
  +
<source lang="javascript">
 
[
 
[
 
  {
 
  {

Revision as of 14:36, 21 September 2014

This Page Semantic Annotations

Contents

Description

An article, such as a news article or piece of investigative report. Newspapers and magazines have articles of many different types and this is intended to cover them all. Subtypes include blog posts, news, or school works.

This class contains derivatives of IPTC rNews properties. rNews is a data model of publishing metadata with serializations currently available for RDFa as well as HTML5 Microdata.

Examples

A first example

JSON (typed)

{  "http://www.w3.org/1999/02/22-rdf-syntax-ns#type": "http://schema.org/Article",    "http://schema.org/name": "Allies Are Split on Goal and Exit Strategy in Libya",    "http://schema.org/alternativeHeadline": "NATO Takes Command",    "http://schema.org/datePublished": "March 24, 2011"^^"http://schema.org/Date",    "http://schema.org/author":    [      {        "http://www.w3.org/1999/02/22-rdf-syntax-ns#type": "http://schema.org/Person",        "http://schema.org/name": "STEVEN LEE MYERS"     },     {        "http://www.w3.org/1999/02/22-rdf-syntax-ns#type": "http://schema.org/Person",        "http://schema.org/name": "DAVID D. KIRKPATRICK"     }    ],     "http://schema.org/articleBody": "Having largely succeeded in stopping a rout of Libya's rebels, the inchoate coalition attacking Col. Muammar el-Qaddafi's forces remains divided over the ultimate goal ? and exit strategy ? of what officials acknowledged Thursday would be a military campaign that could last for weeks."^^"http://schema.org/Text",     "http://schema.org/associatedMedia":      {       "http://www.w3.org/1999/02/22-rdf-syntax-ns#type": "http://schema.org/ImageObject",         "http://schema.org/URL" : "http://getschema.org/files/rNews-Sample-Story/libya_sample_reuters.jpg",         "http://schema.org/author": "Goran Tomasevic",         "http://schema.org/sourceOrganization":          {           "http://www.w3.org/1999/02/22-rdf-syntax-ns#type": "http://schema.org/Organization",             "http://schema.org/name": "Reuters",         },         "http://schema.org/caption": "Rebel fighters take cover during a shelling near Ajdabiyah, Libya on Thursday.",       } }

JSON (untyped – types will be discovered by the data processor)

[  {   "http://schema.org/Article" :    {      "http://schema.org/name": "Allies Are Split on Goal and Exit Strategy in Libya",      "http://schema.org/alternativeHeadline": "NATO Takes Command",      "http://schema.org/datePublished": "March 24, 2011",      "http://schema.org/author":      [        {          "http://schema.org/name": "STEVEN LEE MYERS"       },       {          "http://schema.org/name": "DAVID D. KIRKPATRICK"       }      ],       "http://schema.org/articleBody": "Having largely succeeded in stopping a rout of Libya's rebels, the inchoate coalition attacking Col. Muammar el-Qaddafi's forces remains divided over the ultimate goal ? and exit strategy ? of what officials acknowledged Thursday would be a military campaign that could last for weeks.",       "http://schema.org/associatedMedia":        {           "http://schema.org/URL" : "http://getschema.org/files/rNews-Sample-Story/libya_sample_reuters.jpg",           "http://schema.org/author": "Goran Tomasevic",           "http://schema.org/sourceOrganization":            {               "http://schema.org/name": "Reuters",           },           "http://schema.org/caption": "Rebel fighters take cover during a shelling near Ajdabiyah, Libya on Thursday.",         }   }  } ]

Using Microdata

<div itemscope itemtype="http://schema.org/Article">    <div itemprop="headline">     Allies Are Split on Goal and      Exit Strategy in Libya   </div>    <div itemprop="description">     NATO Takes Command   </div>    <div itemprop="associatedMedia">     <span itemscope itemtype="http://schema.org/ImageObject">        <img itemprop="contentURL"         src="/files/rNews-Sample-Story/libya_sample_reuters.jpg"/>        <div>          Credit:          <span itemprop="author">Goran Tomasevic</span>/         <span itemprop="sourceOrganization">            <span itemscope itemtype="http://schema.org/Organization">             <span itemprop="name"> Reuters</span>           </span>         </span>       </div>      <div itemprop="caption">        Rebel fighters take cover during a shelling        near Ajdabiyah, Libya on Thursday.     </div>        </span>   </div>    <div>      By <span itemprop="author">STEVEN LEE MYERS</span>      and <span itemprop="author">DAVID D. KIRKPATRICK</span>   </div>    <div>      WASHINGTON |       <meta itemprop="datePublished" content="2011-03-24"/>      March 24, 2011   </div>    <div itemprop="articleBody">      <p>       Having largely succeeded in stopping a rout of        Libya's rebels, the inchoate coalition attacking        Col. Muammar el-Qaddafi's forces remains divided        over the ultimate goal ? and exit strategy ?        of what officials acknowledged Thursday would be        a military campaign that could last for weeks.             </p>   </div> </div>

Using RDFa 1.1 Lite

        <div vocab="http://schema.org/" typeof="Article">             <h1 property="headline">Allies Are Split on Goal and Exit Strategy in Libya</h1>             <h2 property="description">NATO Takes Command</h2>             <div property="associatedMedia">                 <div typeof="ImageObject">                     <img property="contentURL" alt="Lybia war sample"                         src="/files/rNews-Sample-Story/libya_sample_reuters.jpg"/>                     <div>Credit: <span property="author">Goran Tomasevic</span>/ <span                             property="sourceOrganization">                             <span typeof="Organization">                                 <span property="name">Reuters</span>                             </span>                         </span></div>                     <div property="caption">Rebel fighters take cover during a shelling near                         Ajdabiyah, Libya on Thursday.</div>                 </div>             </div>             <div>By <span property="author">                     <span typeOf="Person">                         <span property="name">STEVEN LEE MYERS</span>                     </span>                 </span>and <span property="author">                     <span typeOf="Person">                         <span property="name">DAVID D. KIRKPATRICK</span>                     </span>                 </span></div>             <div>WASHINGTON | <span property="datePublished" >March 24, 2011</span></div>             <div property="articleBody">                 <p>Having largely succeeded in stopping a rout of Libya's rebels, the inchoate                     coalition attacking Col. Muammar el-Qaddafi's forces remains divided over the                     ultimate goal &#8212; and exit strategy &#8212; of what officials                     acknowledged Thursday would be a military campaign that could last for                 weeks.</p>             </div>         </div>

A second example

Using Microdata

<div itemscope itemtype="http://schema.org/Article">   <h1 itemprop="name">The Semantic Web Revisited</h1>   <strong>Authors:</strong>     <span itemprop="author">       <span itemscope itemtype="http://schema.org/Person">          <span itemprop="familyName">           Shadbolt         </span>,         <span itemprop="givenName">           N.         </span>;       <span itemprop="affiliation" itemscope itemref="UniS"/>       </span>     </span>     <span itemprop="author">       <span itemscope itemtype="http://schema.org/Person">         <span itemprop="familyName">           Hall         </span>,         <span itemprop="givenName">           W.         </span>;         <span itemprop="affiliation" itemscope itemref="UniS"/>       </span>     </span>     <span itemprop="author">       <span itemscope itemtype="http://schema.org/Person">         <span itemprop="familyName">           Berners-Lee         </span>,         <span itemprop="givenName">           Tim         </span>;         <span itemprop="affiliation" itemscope itemref="UniS"/>       </span>     </span>     <span itemscope itemtype="http://schema.org/Organization" id="UniS">       <span itemprop="name">           Sch. of Electron. and Comput. Sci., Southampton Univ.       </span>     </span>     <div itemprop="publisher">       <strong>This paper appears in: </strong>         <span itemscope itemtype="http://schema.org/Organization">           <span itemprop="name">             Intelligent Systems, IEEE            </span>         </span>     </div>     <div>       <strong>Issue Date: </strong>       <span itemprop="datePublished">         Jan.-Feb. 2006        </span>     </div>     <h2>Abstract</h2>     <div itemprop="description">        The article included many scenarios in which intelligent         agents and bots undertook tasks on behalf of their human        or corporate owners. Of course, shopbots and auction bots         abound on the Web, but these are essentially handcrafted         for particular tasks: they have little ability to interact         with heterogeneous data and information types. Because we         haven't yet delivered large-scale, agent-based mediation,         some commentators argue that the semantic Web has failed to         deliver. We argue that agents can only flourish when standards         are well established and that the Web standards for expressing         shared meaning have progressed steadily over the past five years      </div> </div>

Personal tools

Namespaces

Variants

Actions

Navigation

Toolbox