Quick Start: Text
How to create a text News Item
Introduction
One of the most fundamental needs of a news organisation is to handle text. This Quick Start Guide covers the basics of a simple NewsML-G2 News Item containing text content. We recommend reading the Quick Start Guide to G2 Basics before this Quick Start Guide to Text.
Example
Below is an example story and supporting information as might be displayed on the journalist’s editing screen at a fictional news provider, Acme News and Media (ANM):
Acme News and Media – Content Editing System
Slugline | US-Finance-Fed |
---|---|
Source | ANM |
Author | mjameson |
Latest edit | 2016-11-21 16:22:45 |
Latest editor | moiras |
Categories | economy, finance, business, central bank, monetary policy |
Headline | Fed to halt QE to avert “bubble” |
Byline | By Meredith Jameson |
Location / Date | Washington 21/11/2016 |
Body Text | Et, sent luptat luptat, commy nim zzriureet vendreetue modo dolenis ex euisis nosto et lan ullandit lum doloreet vulla feugiam coreet, cons eleniam il ute facin veril et aliquis ad minis et lor sum del iriure dit la feugiamcommy nostrud min ullapat velisl duisismodip ero dipit nit utpatum sandrer cipisim nit lortis augiat nulla faccum at am, quam velenis nulput la auguerostrud magna commolore eliquatie exerate facilis modiamconsed dion henisse quipit at. Ut la feu facilla feu faccumsan ecte modoloreet ad ex el utat. |
This screen contains nearly all of the information needed to create the NewsML-G2 document as shown below:
Code Listing: NewsML-G2 Text Document
(All Scheme Aliases used in listing below indicate IPTC NewsCodes vocabularies, except for the following alias values: geoloc, is)
<?xml version=“1.0” encoding=“UTF-8” standalone=”yes”?>
<newsItem xmlns="http://iptc.org/std/nar/2006-10-01/"
guid=“urn:newsml:acmenews.com:20161121:US-FINANCE-FED”
version=“9”
standard=“NewsML-G2”
standardversion=“2.23”
xml:lang=“en-US”>
<catalogRef
href=“http://www.iptc.org/std/catalog/catalog.IPTC-G2-Standards_27.xml” />
<catalogRef
href=“http://catalog.acmenews.com/news/ANM_G2_CODES_2.xml” />
<rightsInfo>
<copyrightHolder uri="http://www.acmenews.com/about.html#copyright">
<name>Acme News and Media LLC</name>
</copyrightHolder>
<copyrightNotice>Copyright 2016 Acme News and Media LLC</copyrightNotice>
</rightsInfo>
<itemMeta>
<itemClass qcode=“ninat:text” />
<provider uri=“http://www.acmenews.com/about/” />
<versionCreated>2016-11-21T16:25:32-05:00</versionCreated>
<pubStatus qcode=“stat:usable” />
</itemMeta>
<contentMeta>
<contentCreated>2016-11-21T15:21:06-05:00</contentCreated>
<contentModified>2016-11-21T16:22:45-05:00</contentModified>
<located qcode="geoloc:NYC">
<name>New York, NY</name>
</located>
<creator uri=“http://www.acmenews.com/staff/mjameson”>
<name>Meredith Jameson</name>
</creator>
<infoSource qcode=“is:AP”>
<name>Associated Press</name>
</infoSource>
<language tag=“en-US” />
<subject qcode=“medtop:04000000”>
<name>economy, business and finance</name>
</subject>
<subject qcode=“medtop:20000350”>
<name>central bank</name>
</subject>
<subject qcode=“medtop:20000379”>
<name>money and monetary policy</name>
</subject>
<slugline>US-Finance-Fed</slugline>
<headline>Fed to halt QE to avert “bubble”</headline>
</contentMeta>
<contentSet>
<inlineXML contenttype=“application/nitf+xml”>
<nitf xmlns=“http://iptc.org/std/NITF/2006-10-18/”>
<body>
<body.head>
<hedline>
<hl1>Fed to halt QE to avert “bubble”</hl1>
</hedline>
<byline>By Meredith Jameson, <byttl>Staff Reporter</byttl></byline>
</body.head>
<body.content>
<p>(New York, NY - November 21) Et, sent luptat luptat, commy Nim
zzriureet vendreetue modo dolenis ex euisis nosto et lan ullandit
lum doloreet vulla. </p>
<p>Ugiating ea feugait utat, venim velent nim quis nulluptat num
Volorem inci enim dolobor eetuer ercin utpatio dolorpercing.</p>
</body.content>
</body>
</nitf>
</inlineXML>
</contentSet>
</newsItem>
Document structure
The building blocks of the text document shown above are the
<newsItem xmlns="http://iptc.org/std/nar/2006-10-01/"
guid=“urn:newsml:acmenews.com:20161121:US-FINANCE-FED”
version=“9”
standard=“NewsML-G2”
standardversion=“2.23”
conformance=“power”
xml:lang=“en-US”>
This is followed by references to the Catalogs used to resolve QCodes in the Item, and Rights information:
<catalogRef
href=“http://www.iptc.org/std/catalog/catalog.IPTC-G2-Standards_27.xml” />
<catalogRef
href=“http://catalog.acmenews.com/news/ANM_G2_CODES_2.xml” />
<rightsInfo>
<copyrightHolder uri="http://www.acmenews.com/about.html#copyright" >
<name>Acme News and Media LLC</name>
</copyrightHolder>
<copyrightNotice>Copyright 2016 Acme News and Media LLC</copyrightNotice>
</rightsInfo>
Item Metadata
Note the three mandatory child elements of the mandatory
- Item Class
- Provider
- Version Created
A publication status is also mandatory, but
<itemMeta>
<itemClass qcode=“ninat:text” />
<provider uri=“http://www.acmenews.com/about.html” />
<versionCreated>2016-11-21T16:25:32-05:00</versionCreated>
<pubStatus qcode=“stat:usable” />
</itemMeta>
Content Metadata
Administrative Metadata
The administrative properties of the example text story are:
<contentCreated>2016-11-21T15:21:06-05:00</contentCreated>
<contentModified>2016-11-21T16:22:45-05:00</contentModified>
The place that the content was created uses the
<located qcode=“geoloc:NYC”>
<name>New York, NY</name>
</located>
(Note that this is where the story was written, not the place where the subject of the story took place. That would be expressed using
<creator uri=“http://www.acmenews.com/staff/mjameson”>
<name>Meredith Jameson</name>
</creator>
The Information Source for the article is also given. When used without a @role,
<infoSource qcode=“is:AP”>
<name>Associated Press</name>
</infoSource>
The default language for the content is given as U.S. English:
<language tag=“en-US”
Descriptive Metadata
In the example, the Subject properties use QCodes from the Controlled Vocabulary of Media Topics NewsCodes that are owned and maintained by the IPTC and expressed as QCodes. Thus:
<subject qcode=“medtop:04000000”>
<name>economy, business and finance</name>
</subject>
<subject qcode=“medtop:20000350”>
<name>central bank</name>
</subject>
<subject qcode=“medtop:20000379”>
<name>money and monetary policy</name>
</subject>
The
<slugline>US-Finance-Fed</slugline>
In a similar fashion, the
<headline>Fed to halt QE to avert “bubble”</headline>
Complete Content Metadata
<contentMeta>
<contentCreated>2016-11-21T15:21:06-05:00</contentCreated>
<contentModified>2016-11-21T16:22:45-05:00</contentModified>
<located qcode=“geoloc:NYC”>
<name>New York, NY</name>
</located>
<creator uri=“http://www.acmenews.com/staff/mjameson”>
<name>Meredith Jameson</name>
</creator>
<infoSource qcode=“is:AP”>
<name>Associated Press</name>
</infoSource>
<language tag=“en-US” />
<subject qcode=“medtop:04000000”>
<name>economy, business and finance</name>
</subject>
<subject qcode=“medtop:20000350”>
<name>central bank</name>
</subject>
<subject qcode=“medtop:20000379”>
<name>money and monetary policy</name>
</subject>
<slugline>US-Finance-Fed</slugline>
<headline>Fed to halt QE to avert “bubble”</headline>
</contentMeta>
Text content choices
Inline XML
The content of the NewsML-G2 document is enclosed by the
<contentSet>
<inlineXML contenttype=“application/nitf+xml”>
<nitf xmlns=“http://iptc.org/std/NITF/2006-10-18/”>
<!--STORY CONTENT HERE -->
</nitf>
</inlineXML>
</contentSet>
Inline data
The
<contentSet>
<inlineData contenttype=“text/plain”>
Et, sent luptat luptat ...
</inlineData>
</contentSet>
NewsML-G2 Implementation Guidelines and Specification
For more comprehensive information about G2 implementation than is covered by these Quick Start Guides, the full Guidelines for NewsML-G2 Implementers may be downloaded from www.newsml-g2.org/doc. This includes more detailed “How To” topics to help implementers with more complex needs, and also covers subjects such as creating and managing Catalogs and Controlled Vocabularies, conveying multiple G2 Items in News Messages, and using Planning and EventsML-G2 for news management and fulfilment. The NewsML-G2 Specification is available for download at www.newsml-g2.org/spec.