SlideShare una empresa de Scribd logo
1 de 20
News Exchange Formats WP
     IPTC Autumn Meeting 2012
              Moscow
      Stuart Myles, Associated Press
Agenda
• Minutes of the previous meeting

• Matters arising from the minutes

• NewsML-G2 2.13

• Annual Public Release of NewsML-G2 2.12

• QCodes

• News in JSON

• Date & place of the next meeting
                    © 2009 IPTC (www.iptc.org)   All rights reserved   2
Previous NEF WP Meeting

• Held: 11th June 2012, New York, USA
• Minutes
   –   already circulated in the post-conference package
   –   URN: urn:iptc:workdoc:nef:1204:1
   –   Doc: NEF1204.1-AGMminutes.pdf
   –   Actions arising from the minutes

                             Action                                                 Due date     Status
Investigate a JSON representation of NewsML-G2 as format for API
                                                                                   Autumn 2012
responses
Add G2-format receivers to the Who's Using It web pages                            Autumn 2012    

                        Vote to approve the minutes

                                © 2009 IPTC (www.iptc.org)   All rights reserved                          3
Chairman’s report
• Other Actions from previous NEF WP Meetings

   – Add G2-format receivers to the Who's Using It web pages
      • Major Agencies to ask their customers if they can be added to the
        Users list on the website
      • Status: Still outstanding – to follow up

   – Marketing
      • Elaborate on a unifying marketing strategy for the G2-Standards
      • Status: Still outstanding – to follow up




                        © 2009 IPTC (www.iptc.org)   All rights reserved    4
NewsML-G2 2.13 Changes

• CR00158: Add value format to altId

• CR00159: Add colourdepth to News Content
  Characteristics




                  © 2009 IPTC (www.iptc.org)   All rights reserved   5
CR00158: Add a value format attribute to altId
Add @idformat to the altId element to indicate the format of the value of the element
              http://dev.iptc.org/G2-CR00158-Add-value-format-to-altId

Example altId elements with the new @idformat

<altId idformat="valfmt:qcode">p:123</altId>
<altId idformat="valfmt:uri">http://example.com/ids/123</altId>
<altId idformat="valfmt:literal">123</altId>

Create a new Value Format NewsCodes controlled vocabulary
The recommended scheme alias is "valfmt"
    –   qcode: a QCode as defined by the G2 specifications
    –   uri: a URI as defined by RFC3986 or an IRI as defined by RFC3987
    –   literal: a literal string

                         http://cv.iptc.org/newscodes/valueformat/




                                © 2009 IPTC (www.iptc.org)   All rights reserved        6
CR00159: Add colourdepth


Add @colourdepth to the News Content Characteristics attribute group
  http://dev.iptc.org/G2-CR00159-Add-colourdepth-to-News-Content-Characteristics

<remoteContent residref="tag:example.org,2012:video_example.mpg"
rendition="rnd:highRes" contenttype="video/mpeg" format="fmt:mpeg"
height="625" duration="334" audiocodec="codec:mpegLayer2"
audiobitrate="256000" audiosamplesize="16" audiosamplerate="48000"
videocodec="codec:mpeg2mp@ml" videoavgbitrate="6500000"
videoframerate="25.0" videoscan="interlaced" videoaspectratio="16:9"
videosampling="4:2:0" colourdepth="8" rtr:definition="videoDef:SD">


Colourdepth is the "bit depth defining the spread of colour data within each sample".
The colourdepth is relevant to still images, graphics and video.

See http://en.wikipedia.org/wiki/Color_depth for more background




                               © 2009 IPTC (www.iptc.org)   All rights reserved         7
NewsML-G2

  MOTION – Standards Committee

MOTION (to the Standards Committee):
  To approve NewsML-G2 version 2.13
   as specified by the documents in
20121001-DRAFT-NewsML-G2_2.13.zip

       as a Developer Release.




         © 2009 IPTC (www.iptc.org)   All rights reserved   8
NewsML-G2 2.12

   NewsML-G2 2.12 is the current Public Release
http://www.iptc.org/site/News_Exchange_Formats/NewsML-G2/
           http://www.iptc.org/std/NewsML-G2/2.12/


                    The 2.12 G2 XSD
    http://www.iptc.org/std/NewsML-G2/2.12/specification/
       The updated G2 Implementation Guide
   http://www.iptc.org/std/NewsML-G2/2.12/documentation/




                   © 2010 IPTC (www.iptc.org)   All rights reserved   9
QCodes

• As part of the IPTC mission of creating better and more
  comprehensive documentation, we have a new set of
  pages on the "dev" site, dedicated to QCodes

• http://dev.iptc.org/QCodes

•   QCodes (Qualified Codes) are a short format for URIs
•   They are used extensively within the G2 family
•   They avoid certain restrictions from QNames
•   Please review the documentation, so that we can publish
    it publicly

                     © 2010 IPTC (www.iptc.org)   All rights reserved   10
News about Jayson?




 © 2010 IPTC (www.iptc.org)   All rights reserved   11
News in JSON
  The IPTC should standardize the representation of news in JSON


• JSON = JavaScript Object Notation http://json.org/

• Lightweight, easy to parse, data interchange format

• "JSON is a better data exchange format. XML is a better
  document exchange format. Use the right tool for the
  right job.”
   http://www.json.org/xml.html



                       © 2010 IPTC (www.iptc.org)   All rights reserved   12
JSON and XML

• JSON is an increasingly popular alternative to /
  replacement for XML, e.g. for APIs
   – http://blog.appfog.com/why-json-will-continue-to-push-xml-out-of-
     the-picture/
   – http://blog.programmableweb.com/2011/05/25/1-in-5-apis-say-
     bye-xml/


• XML community starting to embrace JSON
   – http://www.slideshare.net/JeniT/collisions-chimera-and-
     consonance-in-web-content
   – http://www.balisage.net/Proceedings/topics/JSON.html



                       © 2010 IPTC (www.iptc.org)   All rights reserved   13
What is JSON?
Name / value pairs: a fieldname in quotes, a colon, a value in quotes
                     "givenname" : "Stuart"

  Objects: written inside curly braces, may contain multiple NVPs
   {"givenname" : "Stuart", "familyname" : "Myles"}

 Arrays: Written inside square braces, may contain multiple objects
  {"iptcdelegates":      [
      {
       "givenname":      "Dave", "familyname": "Compton"},
      {
       "givenname":      "Stuart", "familyname": "Myles"},
      {
       "givenname":      "Robert", "familyname": "Schmidt-Nia"
      }
  ]}

                       © 2010 IPTC (www.iptc.org)   All rights reserved   14
Mapping between JSON and XML

• Some challenges
   –   No direct equivalent to namespaces in JSON
   –   No direct equivalent to attributes in JSON
   –   Best way to handle repeated elements?
   –   Representing text markup (particularly with inline markup)
   –   Different datatypes in JSON and XML
• Two basic approaches:
   – Mechanically translate from XML to JSON
   – Handcraft representation in JSON
• My recommendation is that IPTC hand crafts the JSON
   – Maximize the “naturalness” of resulting markup
   – Lets us determine the underlying model (G2, rNews, NITF, ...)

                         © 2010 IPTC (www.iptc.org)   All rights reserved   15
An Initial G2 JSON Experiment




                                                         Tried JSON w/ TR G2 item
                                                         https://gist.github.com/3880441

                                                         Also see AP’s JSON API
                                                         http://developer.ap.org/capi




      © 2010 IPTC (www.iptc.org)   All rights reserved                                  16
JSON Schema, Validation

• Support for formal validation of JSON is starting to be
  developed
   – JSON schema initiative
      • http://json-schema.org/
      • http://www.jsonschema.net/
   – JSON validation
      • http://jsonlint.com/
• IPTC could develop a JSON schema for news




                         © 2010 IPTC (www.iptc.org)   All rights reserved   17
Proposal
  The IPTC should standardize the representation of news in JSON
• News Exchange Formats group kick off News in JSON
   – Focus on “sweet spots” for JSON representation
      • APIs and data interchange more than documents
   – Form a group
      • Volunteers, charter, establish working methods...
   – Establish an agenda, such as
      • Examine existing JSON work
      • Poll IPTC membership for interest
      • Determine the data model which needs to be expressed (G2,
        rNews, NITF ...)
      • Create experimental JSON representations and schema
• Progress report in Amsterdam

                        © 2010 IPTC (www.iptc.org)   All rights reserved   18
Any other business?




 © 2009 IPTC (www.iptc.org)   All rights reserved   19
Date & Place of the Next Meeting



                                                    IPTC Spring
                                                11 – 13 March 2013
                                               Amsterdam, Nederland

                                                          Спасибо и до
                                                             свидания!




       © 2009 IPTC (www.iptc.org)   All rights reserved                  20

Más contenido relacionado

Similar a IPTC News Exchange Formats Working Party Autumn 2012

IPTC Semantic Web Working Group Summer 2012
IPTC Semantic Web Working Group Summer 2012IPTC Semantic Web Working Group Summer 2012
IPTC Semantic Web Working Group Summer 2012Stuart Myles
 
IPTC News in JSON Spring 2013
IPTC News in JSON Spring 2013IPTC News in JSON Spring 2013
IPTC News in JSON Spring 2013Stuart Myles
 
IPTC News in JSON November 2017
IPTC News in JSON November 2017IPTC News in JSON November 2017
IPTC News in JSON November 2017Stuart Myles
 
IPTC Approach to News in JSON
IPTC Approach to News in JSONIPTC Approach to News in JSON
IPTC Approach to News in JSONStuart Myles
 
IPTC Semantic Web Working Group Autumn 2012
IPTC Semantic Web Working Group Autumn 2012IPTC Semantic Web Working Group Autumn 2012
IPTC Semantic Web Working Group Autumn 2012Stuart Myles
 
The complex IoT equation, and FLOSS solutions, OW2con'18, June 7-8, 2018, Paris
The complex IoT equation, and FLOSS solutions, OW2con'18, June 7-8, 2018, ParisThe complex IoT equation, and FLOSS solutions, OW2con'18, June 7-8, 2018, Paris
The complex IoT equation, and FLOSS solutions, OW2con'18, June 7-8, 2018, ParisOW2
 
The Complex IoT Equation (and FLOSS solutions)
The Complex IoT Equation (and FLOSS solutions)The Complex IoT Equation (and FLOSS solutions)
The Complex IoT Equation (and FLOSS solutions)Samsung Open Source Group
 
Monitoraggio del Traffico di Rete Usando Python ed ntop
Monitoraggio del Traffico di Rete Usando Python ed ntopMonitoraggio del Traffico di Rete Usando Python ed ntop
Monitoraggio del Traffico di Rete Usando Python ed ntopPyCon Italia
 
IPTC Rights Working Group Autumn 2012
IPTC Rights Working Group Autumn 2012IPTC Rights Working Group Autumn 2012
IPTC Rights Working Group Autumn 2012Stuart Myles
 
Web Services for the Internet of Things
Web Services for the Internet of ThingsWeb Services for the Internet of Things
Web Services for the Internet of ThingsMarkku Laine
 
webthing-iotjs-tizenrt-cdl2018-20181117rzr
webthing-iotjs-tizenrt-cdl2018-20181117rzrwebthing-iotjs-tizenrt-cdl2018-20181117rzr
webthing-iotjs-tizenrt-cdl2018-20181117rzrPhil www.rzr.online.fr
 
Samsung SDS OpeniT - The possibility of Python
Samsung SDS OpeniT - The possibility of PythonSamsung SDS OpeniT - The possibility of Python
Samsung SDS OpeniT - The possibility of PythonInsuk (Chris) Cho
 
Python in the Financial Industry The universal tool for end-to-end developme...
Python in the Financial Industry  The universal tool for end-to-end developme...Python in the Financial Industry  The universal tool for end-to-end developme...
Python in the Financial Industry The universal tool for end-to-end developme...PyData
 
IPTC NewsCodes - Controlled Vocabularies for the News Media (EBU MDN Workshop...
IPTC NewsCodes - Controlled Vocabularies for the News Media (EBU MDN Workshop...IPTC NewsCodes - Controlled Vocabularies for the News Media (EBU MDN Workshop...
IPTC NewsCodes - Controlled Vocabularies for the News Media (EBU MDN Workshop...IPTC
 
IPTC Rights Expression Working Group Spring 2014
IPTC Rights Expression Working Group Spring 2014IPTC Rights Expression Working Group Spring 2014
IPTC Rights Expression Working Group Spring 2014Stuart Myles
 

Similar a IPTC News Exchange Formats Working Party Autumn 2012 (20)

IPTC Semantic Web Working Group Summer 2012
IPTC Semantic Web Working Group Summer 2012IPTC Semantic Web Working Group Summer 2012
IPTC Semantic Web Working Group Summer 2012
 
IPTC News in JSON Spring 2013
IPTC News in JSON Spring 2013IPTC News in JSON Spring 2013
IPTC News in JSON Spring 2013
 
IPTC News in JSON November 2017
IPTC News in JSON November 2017IPTC News in JSON November 2017
IPTC News in JSON November 2017
 
IoTivity: From Devices to the Cloud
IoTivity: From Devices to the CloudIoTivity: From Devices to the Cloud
IoTivity: From Devices to the Cloud
 
IPTC Approach to News in JSON
IPTC Approach to News in JSONIPTC Approach to News in JSON
IPTC Approach to News in JSON
 
IPTC Semantic Web Working Group Autumn 2012
IPTC Semantic Web Working Group Autumn 2012IPTC Semantic Web Working Group Autumn 2012
IPTC Semantic Web Working Group Autumn 2012
 
The complex IoT equation, and FLOSS solutions, OW2con'18, June 7-8, 2018, Paris
The complex IoT equation, and FLOSS solutions, OW2con'18, June 7-8, 2018, ParisThe complex IoT equation, and FLOSS solutions, OW2con'18, June 7-8, 2018, Paris
The complex IoT equation, and FLOSS solutions, OW2con'18, June 7-8, 2018, Paris
 
webthing-floss-iot-20180607rzr
webthing-floss-iot-20180607rzrwebthing-floss-iot-20180607rzr
webthing-floss-iot-20180607rzr
 
The Complex IoT Equation (and FLOSS solutions)
The Complex IoT Equation (and FLOSS solutions)The Complex IoT Equation (and FLOSS solutions)
The Complex IoT Equation (and FLOSS solutions)
 
SDN and metrics from the SDOs
SDN and metrics from the SDOsSDN and metrics from the SDOs
SDN and metrics from the SDOs
 
Monitoraggio del Traffico di Rete Usando Python ed ntop
Monitoraggio del Traffico di Rete Usando Python ed ntopMonitoraggio del Traffico di Rete Usando Python ed ntop
Monitoraggio del Traffico di Rete Usando Python ed ntop
 
IPTC Rights Working Group Autumn 2012
IPTC Rights Working Group Autumn 2012IPTC Rights Working Group Autumn 2012
IPTC Rights Working Group Autumn 2012
 
Web Services for the Internet of Things
Web Services for the Internet of ThingsWeb Services for the Internet of Things
Web Services for the Internet of Things
 
webthing-iotjs-tizenrt-cdl2018-20181117rzr
webthing-iotjs-tizenrt-cdl2018-20181117rzrwebthing-iotjs-tizenrt-cdl2018-20181117rzr
webthing-iotjs-tizenrt-cdl2018-20181117rzr
 
Smart net
Smart netSmart net
Smart net
 
Samsung SDS OpeniT - The possibility of Python
Samsung SDS OpeniT - The possibility of PythonSamsung SDS OpeniT - The possibility of Python
Samsung SDS OpeniT - The possibility of Python
 
Python in the Financial Industry The universal tool for end-to-end developme...
Python in the Financial Industry  The universal tool for end-to-end developme...Python in the Financial Industry  The universal tool for end-to-end developme...
Python in the Financial Industry The universal tool for end-to-end developme...
 
IPTC NewsCodes - Controlled Vocabularies for the News Media (EBU MDN Workshop...
IPTC NewsCodes - Controlled Vocabularies for the News Media (EBU MDN Workshop...IPTC NewsCodes - Controlled Vocabularies for the News Media (EBU MDN Workshop...
IPTC NewsCodes - Controlled Vocabularies for the News Media (EBU MDN Workshop...
 
IPTC Rights Expression Working Group Spring 2014
IPTC Rights Expression Working Group Spring 2014IPTC Rights Expression Working Group Spring 2014
IPTC Rights Expression Working Group Spring 2014
 
Easy IoT with JavaScript
Easy IoT with JavaScriptEasy IoT with JavaScript
Easy IoT with JavaScript
 

Más de Stuart Myles

IPTC Rights Statements For News
IPTC Rights Statements For NewsIPTC Rights Statements For News
IPTC Rights Statements For NewsStuart Myles
 
IPTC New Taxonomies Ideas
IPTC New Taxonomies IdeasIPTC New Taxonomies Ideas
IPTC New Taxonomies IdeasStuart Myles
 
IPTC Board Spring 2019
IPTC Board Spring 2019IPTC Board Spring 2019
IPTC Board Spring 2019Stuart Myles
 
IPTC Spring 2019 Conference
IPTC Spring 2019 ConferenceIPTC Spring 2019 Conference
IPTC Spring 2019 ConferenceStuart Myles
 
Photomation or Fauxtomation?
Photomation or Fauxtomation?Photomation or Fauxtomation?
Photomation or Fauxtomation?Stuart Myles
 
Image Tagging at the Associated Press
Image Tagging at the Associated PressImage Tagging at the Associated Press
Image Tagging at the Associated PressStuart Myles
 
IPTC Rights Working Group Toronto October 2018
IPTC Rights Working Group Toronto October 2018IPTC Rights Working Group Toronto October 2018
IPTC Rights Working Group Toronto October 2018Stuart Myles
 
IPTC AGM 2018 Welcome
IPTC AGM 2018 WelcomeIPTC AGM 2018 Welcome
IPTC AGM 2018 WelcomeStuart Myles
 
How Can We Make Algorithmic News More Transparent?
How Can We Make Algorithmic News More Transparent?How Can We Make Algorithmic News More Transparent?
How Can We Make Algorithmic News More Transparent?Stuart Myles
 
IPTC EXTRA Spring 2018
IPTC EXTRA Spring 2018IPTC EXTRA Spring 2018
IPTC EXTRA Spring 2018Stuart Myles
 
IPTC Machine Readable Rights for News and Media: Solving Three Challenges wit...
IPTC Machine Readable Rights for News and Media: Solving Three Challenges wit...IPTC Machine Readable Rights for News and Media: Solving Three Challenges wit...
IPTC Machine Readable Rights for News and Media: Solving Three Challenges wit...Stuart Myles
 
Ap Taxonomy Localization Requirements and Challenges
Ap Taxonomy Localization Requirements and ChallengesAp Taxonomy Localization Requirements and Challenges
Ap Taxonomy Localization Requirements and ChallengesStuart Myles
 
IPTC Spring Meeting Welcome To Athens April 2018
IPTC Spring Meeting Welcome To Athens April 2018IPTC Spring Meeting Welcome To Athens April 2018
IPTC Spring Meeting Welcome To Athens April 2018Stuart Myles
 
Sustaining Television News Technical Challenges
Sustaining Television News Technical ChallengesSustaining Television News Technical Challenges
Sustaining Television News Technical ChallengesStuart Myles
 
How to Train Your Classifier: Create a Serverless Machine Learning System wit...
How to Train Your Classifier: Create a Serverless Machine Learning System wit...How to Train Your Classifier: Create a Serverless Machine Learning System wit...
How to Train Your Classifier: Create a Serverless Machine Learning System wit...Stuart Myles
 
The Search for IPTC's Next Managing Director
The Search for IPTC's Next Managing DirectorThe Search for IPTC's Next Managing Director
The Search for IPTC's Next Managing DirectorStuart Myles
 
IPTC EXTRA and EXTRA+ November 2017
IPTC EXTRA and EXTRA+ November 2017IPTC EXTRA and EXTRA+ November 2017
IPTC EXTRA and EXTRA+ November 2017Stuart Myles
 
Welcome to Barcelona - IPTC November 2017
Welcome to Barcelona - IPTC November 2017Welcome to Barcelona - IPTC November 2017
Welcome to Barcelona - IPTC November 2017Stuart Myles
 
Credibility Schema Working Group
Credibility Schema Working GroupCredibility Schema Working Group
Credibility Schema Working GroupStuart Myles
 
Rights for Photo and Video Archives at the Associated Press
Rights for Photo and Video Archives at the Associated PressRights for Photo and Video Archives at the Associated Press
Rights for Photo and Video Archives at the Associated PressStuart Myles
 

Más de Stuart Myles (20)

IPTC Rights Statements For News
IPTC Rights Statements For NewsIPTC Rights Statements For News
IPTC Rights Statements For News
 
IPTC New Taxonomies Ideas
IPTC New Taxonomies IdeasIPTC New Taxonomies Ideas
IPTC New Taxonomies Ideas
 
IPTC Board Spring 2019
IPTC Board Spring 2019IPTC Board Spring 2019
IPTC Board Spring 2019
 
IPTC Spring 2019 Conference
IPTC Spring 2019 ConferenceIPTC Spring 2019 Conference
IPTC Spring 2019 Conference
 
Photomation or Fauxtomation?
Photomation or Fauxtomation?Photomation or Fauxtomation?
Photomation or Fauxtomation?
 
Image Tagging at the Associated Press
Image Tagging at the Associated PressImage Tagging at the Associated Press
Image Tagging at the Associated Press
 
IPTC Rights Working Group Toronto October 2018
IPTC Rights Working Group Toronto October 2018IPTC Rights Working Group Toronto October 2018
IPTC Rights Working Group Toronto October 2018
 
IPTC AGM 2018 Welcome
IPTC AGM 2018 WelcomeIPTC AGM 2018 Welcome
IPTC AGM 2018 Welcome
 
How Can We Make Algorithmic News More Transparent?
How Can We Make Algorithmic News More Transparent?How Can We Make Algorithmic News More Transparent?
How Can We Make Algorithmic News More Transparent?
 
IPTC EXTRA Spring 2018
IPTC EXTRA Spring 2018IPTC EXTRA Spring 2018
IPTC EXTRA Spring 2018
 
IPTC Machine Readable Rights for News and Media: Solving Three Challenges wit...
IPTC Machine Readable Rights for News and Media: Solving Three Challenges wit...IPTC Machine Readable Rights for News and Media: Solving Three Challenges wit...
IPTC Machine Readable Rights for News and Media: Solving Three Challenges wit...
 
Ap Taxonomy Localization Requirements and Challenges
Ap Taxonomy Localization Requirements and ChallengesAp Taxonomy Localization Requirements and Challenges
Ap Taxonomy Localization Requirements and Challenges
 
IPTC Spring Meeting Welcome To Athens April 2018
IPTC Spring Meeting Welcome To Athens April 2018IPTC Spring Meeting Welcome To Athens April 2018
IPTC Spring Meeting Welcome To Athens April 2018
 
Sustaining Television News Technical Challenges
Sustaining Television News Technical ChallengesSustaining Television News Technical Challenges
Sustaining Television News Technical Challenges
 
How to Train Your Classifier: Create a Serverless Machine Learning System wit...
How to Train Your Classifier: Create a Serverless Machine Learning System wit...How to Train Your Classifier: Create a Serverless Machine Learning System wit...
How to Train Your Classifier: Create a Serverless Machine Learning System wit...
 
The Search for IPTC's Next Managing Director
The Search for IPTC's Next Managing DirectorThe Search for IPTC's Next Managing Director
The Search for IPTC's Next Managing Director
 
IPTC EXTRA and EXTRA+ November 2017
IPTC EXTRA and EXTRA+ November 2017IPTC EXTRA and EXTRA+ November 2017
IPTC EXTRA and EXTRA+ November 2017
 
Welcome to Barcelona - IPTC November 2017
Welcome to Barcelona - IPTC November 2017Welcome to Barcelona - IPTC November 2017
Welcome to Barcelona - IPTC November 2017
 
Credibility Schema Working Group
Credibility Schema Working GroupCredibility Schema Working Group
Credibility Schema Working Group
 
Rights for Photo and Video Archives at the Associated Press
Rights for Photo and Video Archives at the Associated PressRights for Photo and Video Archives at the Associated Press
Rights for Photo and Video Archives at the Associated Press
 

IPTC News Exchange Formats Working Party Autumn 2012

  • 1. News Exchange Formats WP IPTC Autumn Meeting 2012 Moscow Stuart Myles, Associated Press
  • 2. Agenda • Minutes of the previous meeting • Matters arising from the minutes • NewsML-G2 2.13 • Annual Public Release of NewsML-G2 2.12 • QCodes • News in JSON • Date & place of the next meeting © 2009 IPTC (www.iptc.org) All rights reserved 2
  • 3. Previous NEF WP Meeting • Held: 11th June 2012, New York, USA • Minutes – already circulated in the post-conference package – URN: urn:iptc:workdoc:nef:1204:1 – Doc: NEF1204.1-AGMminutes.pdf – Actions arising from the minutes Action Due date Status Investigate a JSON representation of NewsML-G2 as format for API Autumn 2012 responses Add G2-format receivers to the Who's Using It web pages Autumn 2012  Vote to approve the minutes © 2009 IPTC (www.iptc.org) All rights reserved 3
  • 4. Chairman’s report • Other Actions from previous NEF WP Meetings – Add G2-format receivers to the Who's Using It web pages • Major Agencies to ask their customers if they can be added to the Users list on the website • Status: Still outstanding – to follow up – Marketing • Elaborate on a unifying marketing strategy for the G2-Standards • Status: Still outstanding – to follow up © 2009 IPTC (www.iptc.org) All rights reserved 4
  • 5. NewsML-G2 2.13 Changes • CR00158: Add value format to altId • CR00159: Add colourdepth to News Content Characteristics © 2009 IPTC (www.iptc.org) All rights reserved 5
  • 6. CR00158: Add a value format attribute to altId Add @idformat to the altId element to indicate the format of the value of the element http://dev.iptc.org/G2-CR00158-Add-value-format-to-altId Example altId elements with the new @idformat <altId idformat="valfmt:qcode">p:123</altId> <altId idformat="valfmt:uri">http://example.com/ids/123</altId> <altId idformat="valfmt:literal">123</altId> Create a new Value Format NewsCodes controlled vocabulary The recommended scheme alias is "valfmt" – qcode: a QCode as defined by the G2 specifications – uri: a URI as defined by RFC3986 or an IRI as defined by RFC3987 – literal: a literal string http://cv.iptc.org/newscodes/valueformat/ © 2009 IPTC (www.iptc.org) All rights reserved 6
  • 7. CR00159: Add colourdepth Add @colourdepth to the News Content Characteristics attribute group http://dev.iptc.org/G2-CR00159-Add-colourdepth-to-News-Content-Characteristics <remoteContent residref="tag:example.org,2012:video_example.mpg" rendition="rnd:highRes" contenttype="video/mpeg" format="fmt:mpeg" height="625" duration="334" audiocodec="codec:mpegLayer2" audiobitrate="256000" audiosamplesize="16" audiosamplerate="48000" videocodec="codec:mpeg2mp@ml" videoavgbitrate="6500000" videoframerate="25.0" videoscan="interlaced" videoaspectratio="16:9" videosampling="4:2:0" colourdepth="8" rtr:definition="videoDef:SD"> Colourdepth is the "bit depth defining the spread of colour data within each sample". The colourdepth is relevant to still images, graphics and video. See http://en.wikipedia.org/wiki/Color_depth for more background © 2009 IPTC (www.iptc.org) All rights reserved 7
  • 8. NewsML-G2 MOTION – Standards Committee MOTION (to the Standards Committee): To approve NewsML-G2 version 2.13 as specified by the documents in 20121001-DRAFT-NewsML-G2_2.13.zip as a Developer Release. © 2009 IPTC (www.iptc.org) All rights reserved 8
  • 9. NewsML-G2 2.12 NewsML-G2 2.12 is the current Public Release http://www.iptc.org/site/News_Exchange_Formats/NewsML-G2/ http://www.iptc.org/std/NewsML-G2/2.12/ The 2.12 G2 XSD http://www.iptc.org/std/NewsML-G2/2.12/specification/ The updated G2 Implementation Guide http://www.iptc.org/std/NewsML-G2/2.12/documentation/ © 2010 IPTC (www.iptc.org) All rights reserved 9
  • 10. QCodes • As part of the IPTC mission of creating better and more comprehensive documentation, we have a new set of pages on the "dev" site, dedicated to QCodes • http://dev.iptc.org/QCodes • QCodes (Qualified Codes) are a short format for URIs • They are used extensively within the G2 family • They avoid certain restrictions from QNames • Please review the documentation, so that we can publish it publicly © 2010 IPTC (www.iptc.org) All rights reserved 10
  • 11. News about Jayson? © 2010 IPTC (www.iptc.org) All rights reserved 11
  • 12. News in JSON The IPTC should standardize the representation of news in JSON • JSON = JavaScript Object Notation http://json.org/ • Lightweight, easy to parse, data interchange format • "JSON is a better data exchange format. XML is a better document exchange format. Use the right tool for the right job.” http://www.json.org/xml.html © 2010 IPTC (www.iptc.org) All rights reserved 12
  • 13. JSON and XML • JSON is an increasingly popular alternative to / replacement for XML, e.g. for APIs – http://blog.appfog.com/why-json-will-continue-to-push-xml-out-of- the-picture/ – http://blog.programmableweb.com/2011/05/25/1-in-5-apis-say- bye-xml/ • XML community starting to embrace JSON – http://www.slideshare.net/JeniT/collisions-chimera-and- consonance-in-web-content – http://www.balisage.net/Proceedings/topics/JSON.html © 2010 IPTC (www.iptc.org) All rights reserved 13
  • 14. What is JSON? Name / value pairs: a fieldname in quotes, a colon, a value in quotes "givenname" : "Stuart" Objects: written inside curly braces, may contain multiple NVPs {"givenname" : "Stuart", "familyname" : "Myles"} Arrays: Written inside square braces, may contain multiple objects {"iptcdelegates": [ { "givenname": "Dave", "familyname": "Compton"}, { "givenname": "Stuart", "familyname": "Myles"}, { "givenname": "Robert", "familyname": "Schmidt-Nia" } ]} © 2010 IPTC (www.iptc.org) All rights reserved 14
  • 15. Mapping between JSON and XML • Some challenges – No direct equivalent to namespaces in JSON – No direct equivalent to attributes in JSON – Best way to handle repeated elements? – Representing text markup (particularly with inline markup) – Different datatypes in JSON and XML • Two basic approaches: – Mechanically translate from XML to JSON – Handcraft representation in JSON • My recommendation is that IPTC hand crafts the JSON – Maximize the “naturalness” of resulting markup – Lets us determine the underlying model (G2, rNews, NITF, ...) © 2010 IPTC (www.iptc.org) All rights reserved 15
  • 16. An Initial G2 JSON Experiment Tried JSON w/ TR G2 item https://gist.github.com/3880441 Also see AP’s JSON API http://developer.ap.org/capi © 2010 IPTC (www.iptc.org) All rights reserved 16
  • 17. JSON Schema, Validation • Support for formal validation of JSON is starting to be developed – JSON schema initiative • http://json-schema.org/ • http://www.jsonschema.net/ – JSON validation • http://jsonlint.com/ • IPTC could develop a JSON schema for news © 2010 IPTC (www.iptc.org) All rights reserved 17
  • 18. Proposal The IPTC should standardize the representation of news in JSON • News Exchange Formats group kick off News in JSON – Focus on “sweet spots” for JSON representation • APIs and data interchange more than documents – Form a group • Volunteers, charter, establish working methods... – Establish an agenda, such as • Examine existing JSON work • Poll IPTC membership for interest • Determine the data model which needs to be expressed (G2, rNews, NITF ...) • Create experimental JSON representations and schema • Progress report in Amsterdam © 2010 IPTC (www.iptc.org) All rights reserved 18
  • 19. Any other business? © 2009 IPTC (www.iptc.org) All rights reserved 19
  • 20. Date & Place of the Next Meeting IPTC Spring 11 – 13 March 2013 Amsterdam, Nederland Спасибо и до свидания! © 2009 IPTC (www.iptc.org) All rights reserved 20