Date   

Re: Representing the filename of the original content

Philippe Mougin
 

Thanks Dave. 

For the record, we eventually opted to not use the <altId> bc in our use case the current content of the item may differ from original content.
We then explored using a <link> with a rel such as "originalContentFile" and a residref holding the filename. This is a semantically/rdf-ically correct approach, but alas it did not fit well with some of our internal requirements, so we ended up adding a specific extension: an "originalContentFilename" property in the contentMeta extension point.

Best,

Philippe


Re: Representing the filename of the original content

Compton, Dave J. (Refinitiv) <dave.compton@...>
 

Hi

Refinitiv uses altId/@type with an idType including fileXML, fileXML, versionedId and a number of other proprietary values. The @role would be used to indicate the role, such as ‘original’ etc.

Rgds

 

Dave Compton

Information Architect, Data & Analytics

London Stock Exchange Group

 

Telephone +44 (0) 20 4530 2000

Mobile +44 (0) 7990 568 341

dave.compton@...

 

5 Canada Square, Canary Wharf, London E14 5AQ

 

lseg.com

 

A picture containing icon

Description automatically generated

 

From: iptc-newsml-g2@groups.io <iptc-newsml-g2@groups.io> On Behalf Of Philippe Mougin via groups.io
Sent: 26 June 2021 18:23
To: iptc-newsml-g2@groups.io
Subject: [iptc-newsml-g2] Representing the filename of the original content

 

Hi,

Use case : journalist uploads graphic content from a file into the editorial system. The editorial system creates a news item and needs to store the original file name, as it constitutes a useful hint to the user for various purposes.
This sounds like a job for the "altId" property, right? 
How should we model it?

<altId type="idtype:originalfilename">myfile.jpeg</altId>

or is it 

<altId role="idrole:originalfilename">myfile.jpeg</altId> ?

Or something else? 

Best,

Philippe


Representing the filename of the original content

Philippe Mougin
 

Hi,

Use case : journalist uploads graphic content from a file into the editorial system. The editorial system creates a news item and needs to store the original file name, as it constitutes a useful hint to the user for various purposes.
This sounds like a job for the "altId" property, right? 
How should we model it?

<altId type="idtype:originalfilename">myfile.jpeg</altId>

or is it 

<altId role="idrole:originalfilename">myfile.jpeg</altId> ?

Or something else? 

Best,

Philippe


NewsML-G2 Generator tool announced

Brendan Quinn
 

Hello all,

 

We are pleased to announce the release of the NewsML-G2 Generator, a simple tool to help understand the structure and layout of NewsML-G2 files.

 

Please see our post at https://iptc.org/news/newsml-g2-generator-tool-launched/

 

To see how easy it can be to create a valid NewsML-G2 file, simply visit https://iptc.org/std/NewsML-G2/generator/, fill in the form and press the button labelled “Show content as NewsML-G2 2.29”.

 

Then the box below the form will be filled in with a valid NewsML-G2 document.

 

The tool demonstrates several key features of NewsML-G2:

  • Adding copyright and rights information through the <copyrightHolder/>, <copyrightNotice/> and <usageTerms/> elements
  • Adding news-item metadata via the <itemMeta> container, such as <firstCreated/>, <versionCreated/>, item type (textaudiovideographic or composite, selected via a drop-down), publication status (usagecancelled or withheld, selected via a drop-down)
  • Adding subject metadata using IPTC Media Topics, via a selection with all of the top-level categories enabled. Subjects are added using the <subject/> construct within the <contentMeta> container.
  • Referring to the IPTC catalog that declares standard metadata vocabularies, using the <catalogRef/> tag
  • Adding the body content using embedded NITF. In the future, we will add a radio button so users can select whether to embed the news content using NITF or XHTML, which is the other common format used by IPTC members to mark up news content.

 

Your test content is never saved and only exists within your browser.

 

The source code of the generator is available in the NewsML-G2 GitHub repository.

 

This is a simple 1.0 version, and only scratches the surface of the capabilities of NewsML-G2. It is based on the successful ninjs generator used to demonstrate our ninjs standard.

 

In the future, we are thinking of adding features such as:

  • Switch between NITF and XHTML for the content body
  • Demonstrate referring to images and video files using <remoteContent/>
  • Switch between using qcodes and URIs for metadata
  • Demonstrate multiple language support in NewsML-G2
  • Demonstrate usage of partMeta to show adding metadata to segments in files, such as audio and video
  • Integrate the tool with the ninjs generator so users can switch between ninjs and NewsML-G2 with one click!

 

If you have any more ideas, please raise an issue on the GitHub repository, contact us via the IPTC Contact Us form, or post to this discussion group.

 

To learn more about NewsML-G2, the global standard used for distributing news content, see our introduction to NewsML-G2, or the NewsML-G2 Guidelines.

 

Best regards,

 

Brendan.

--

Brendan Quinn, Managing Director, IPTC - International Press Telecommunications Council

25 Southampton Buildings, London WC2A 1AL, United Kingdom

Phone +44 (0)20 3178 4922 | Email mdirector@...  | Twitter @IPTC / @brendanquinn


NewsML-G2 2.29 released

Brendan Quinn
 

Hi all,

 

Just to let you know that NewsML-G2 2.29 was approved at the IPTC Spring Meeting in May, and the guidelines have now been updated.

 

The changes include:

  • Organisation-to-organisation affiliations
  • Retiring a scheme (as opposed to just retiring concepts within a scheme)

 

See our blog post at https://iptc.org/news/newsml-g2-2-29-released/ for more information.

 

Any questions or comments can be sent to this list.

 

Best regards,

 

Brendan.

--

Brendan Quinn, Managing Director, IPTC - International Press Telecommunications Council

25 Southampton Buildings, London WC2A 1AL, United Kingdom

Phone +44 (0)20 3178 4922 | Email mdirector@...  | Twitter @IPTC / @brendanquinn


Python library or convert to RSS

naveed.agboatwala11@...
 

Hello
I would like to ingest NewsML-G2 and would like to know if there is an existing library for NewsML-G2? Or if there is a way to convert NewsML-G2 to RSS (of which there is an existing library called feedparser).
thank you,
Naveed


Blog post: IPTC presents at Arab States Broadcasting Union metadata workshop

Brendan Quinn
 

Hi all,

 

You might be interested to read about an event yesterday where we presented NewsML-G2 to a workshop hosted by the Arab States Broadcasting Union. They are looking at creating a new content sharing network among their members so they wanted to understand how NewsML-G2 could help them to deliver it.

 

https://iptc.org/news/iptc-presents-at-arab-states-broadcasting-union-metadata-workshop/

 

Best regards,

 

Brendan.

--

Brendan Quinn, Managing Director, IPTC - International Press Telecommunications Council

25 Southampton Buildings, London WC2A 1AL, United Kingdom

Phone +44 (0)20 3178 4922 | Email mdirector@...  | Twitter @IPTC / @brendanquinn


changes to schema

John Evans
 

Trying to understand the changes from "xsd", "2.0.50727.1432" to "xsd", "4.6.1055.0" (v 2.28)
I have worked out a few things are just renaming of classes, however other things are harder to work out. I have read through loads of the changes documents going back to 2011 and not getting much help.

Examples
conceptItem.concept used to contain a property called Item, now does not, what is it replaced by?

newsMessage.header used to contain a property of type ItemsElementName, to be used for things like destination, what is this replaced by?

anyItem.itemMeta used to contain a property called urgency, where has this gone?

newsItem.contentMeta used to contain a property of type Items1ElementName to be used for things like language, what is this replaced by?

Am I missing something in the changelog???
I seemed to remember way back that changes would be backward compatible, I am struggling to understand the huge number of things that seem to break this.




Re: using xsd.exe to create c# classes

John Evans
 

Very interesting results. Our original class creation was way back, using "xsd", "2.0.50727.1432"

Finally getting round to upgrading to v 28 (don't judge me :)  ) 

Having recreated the classes and tried to compile there are a number of differences that I would appreciate some comments on.

I get rid of the majority of my errors by addressing this difference
previous
        [System.Xml.Serialization.XmlElementAttribute("inlineData", typeof(newsItemContentSetInlineData))]
        [System.Xml.Serialization.XmlElementAttribute("inlineXML", typeof(newsItemContentSetInlineXML))]
        [System.Xml.Serialization.XmlElementAttribute("remoteContent", typeof(newsItemContentSetRemoteContent))]
        public object[] Items
        {
            get
            {
                return this.itemsField;
            }
            set
            {
                this.itemsField = value;
            }
        }

now
        [System.Xml.Serialization.XmlElementAttribute("inlineData", typeof(contentSetInlineData))]
        [System.Xml.Serialization.XmlElementAttribute("inlineXML", typeof(contentSetInlineXML))]
        [System.Xml.Serialization.XmlElementAttribute("remoteContent", typeof(RemoteContentPropType))]
        public object[] Items
        {
            get
            {
                return this.itemsField;
            }
            set
            {
                this.itemsField = value;
            }
        }

Is this pretty much a case of renaming classes so NewscontentSetInlineData becomes contentSetInlineData etc. (I assume with some extra but not changed properties)

Secondly
things that were QualPropType seem to be QualRelPropType , again can I just change the class name reference.

Thirdly

anyItem.itemMeta.embargoed.Value was a datetime, now seems to be a string, is this true, so I just need to mess about with datetostring stuff?


Thanks for any confirmation on these. Clearing these up will show up more issues I am sure.

John


Re: using xsd.exe to create c# classes

John Evans
 

Thanks Johan,

 

Looking carefully at our stuff, I think we have added a very simple class AnyItemTypeBase  for AnyItemType to inherit from, for programming reasons, nothing to do with IPTC standards.

 

Kind regards

 

John

 

 

 

From: iptc-newsml-g2@groups.io [mailto:iptc-newsml-g2@groups.io] On Behalf Of Johan Lindgren
Sent: 25 March 2020 06:34
To: iptc-newsml-g2@groups.io
Subject: Re: [iptc-newsml-g2] using xsd.exe to create c# classes

 

I think you should look at this file:

 

NewsML-G2_2.28-spec-All-Power.xsd

 

I suspect you are looking at some .xsd in a folder called individual. I have never looked at those and not sure what they are meant for.

 

 

Johan

 

Johan Lindgren, TT, 070-6528007

 

 

Den tis 24 mars 2020 kl 17:01 skrev John Evans <john@...>:

looking to update our c# classes to version 28. The zip package has three versions of the same(ish) sets of xsd files.
read.me files do not really explain why or which ones to use.
Which ones should I use and why?
We currently use 4 generated classes NewsMessage, Newsitem, packageitem  (all of which I can see and create), and AnyItemtype (which I don't see). 
Where/how do I generate AnyItemType class?


Re: using xsd.exe to create c# classes

Johan Lindgren
 

I think you should look at this file:

NewsML-G2_2.28-spec-All-Power.xsd

I suspect you are looking at some .xsd in a folder called individual. I have never looked at those and not sure what they are meant for.


Johan

Johan Lindgren, TT, 070-6528007


Den tis 24 mars 2020 kl 17:01 skrev John Evans <john@...>:

looking to update our c# classes to version 28. The zip package has three versions of the same(ish) sets of xsd files.
read.me files do not really explain why or which ones to use.
Which ones should I use and why?
We currently use 4 generated classes NewsMessage, Newsitem, packageitem  (all of which I can see and create), and AnyItemtype (which I don't see). 
Where/how do I generate AnyItemType class?


using xsd.exe to create c# classes

John Evans
 

looking to update our c# classes to version 28. The zip package has three versions of the same(ish) sets of xsd files.
read.me files do not really explain why or which ones to use.
Which ones should I use and why?
We currently use 4 generated classes NewsMessage, Newsitem, packageitem  (all of which I can see and create), and AnyItemtype (which I don't see). 
Where/how do I generate AnyItemType class?


Re: newsmlg2 xml to ninj

John Evans
 

Thanks Trond,

The way in which we create quite big packages of news is not really suitable for serializing from a model.

 

Kind regards

 

John Evans

Managing Director

Transtel Communications ltd

www.Transtel.com

 

From: iptc-newsml-g2@groups.io [mailto:iptc-newsml-g2@groups.io] On Behalf Of Trond Husø
Sent: 13 March 2020 14:11
To: iptc-newsml-g2@groups.io
Subject: Re: [iptc-newsml-g2] newsmlg2 xml to ninj

 

On a general note:

 

C# has the option to serialize objects to XML or JSON. The latter by using the json library json.net I think it is. This is what I did when I created SportsML-json-objects in the NTB SportLite application.

 

That way you can create a complete object and then serialize it to JSON (or XML if you want)

 

Trond

 

 

From: "iptc-newsml-g2@groups.io" <iptc-newsml-g2@groups.io> on behalf of Johan Lindgren <johan.lindgren@...>
Reply to: "iptc-newsml-g2@groups.io" <iptc-newsml-g2@groups.io>
Date: Friday, 13 March 2020 at 14:37
To: "iptc-newsml-g2@groups.io" <iptc-newsml-g2@groups.io>
Subject: Re: [iptc-newsml-g2] newsmlg2 xml to ninj

 

Hi John,

 

Can't help you much here. We have NINJS as our primary format and convert to NewsML-G2 for customers that so choose.

But we use NodeJS for that conversion and not C#.

 

If you are interested in the development of ninjs the group is active again.

 

 

Johan

 

Johan Lindgren, TT, 070-6528007

 

 

Den tis 10 mars 2020 kl 16:34 skrev John Evans <john@...>:

Hi all,

We create a standard output of a newsmlG2 file with attachments in xml.

We want to offer the option to produce this as a ninj json file.

 

Can anyone point me to any examples or code snippets using C#?

 

Kind regards

 

John Evans

Transtel Communications

 

 

 


Re: newsmlg2 xml to ninj

Trond Husø
 

On a general note:

 

C# has the option to serialize objects to XML or JSON. The latter by using the json library json.net I think it is. This is what I did when I created SportsML-json-objects in the NTB SportLite application.

 

That way you can create a complete object and then serialize it to JSON (or XML if you want)

 

Trond

 

 

From: "iptc-newsml-g2@groups.io" <iptc-newsml-g2@groups.io> on behalf of Johan Lindgren <johan.lindgren@...>
Reply to: "iptc-newsml-g2@groups.io" <iptc-newsml-g2@groups.io>
Date: Friday, 13 March 2020 at 14:37
To: "iptc-newsml-g2@groups.io" <iptc-newsml-g2@groups.io>
Subject: Re: [iptc-newsml-g2] newsmlg2 xml to ninj

 

Hi John,

 

Can't help you much here. We have NINJS as our primary format and convert to NewsML-G2 for customers that so choose.

But we use NodeJS for that conversion and not C#.

 

If you are interested in the development of ninjs the group is active again.

 

 

Johan

 

Johan Lindgren, TT, 070-6528007

 

 

Den tis 10 mars 2020 kl 16:34 skrev John Evans <john@...>:

Hi all,

We create a standard output of a newsmlG2 file with attachments in xml.

We want to offer the option to produce this as a ninj json file.

 

Can anyone point me to any examples or code snippets using C#?

 

Kind regards

 

John Evans

Transtel Communications

 

 

 


Re: newsmlg2 xml to ninj

Johan Lindgren
 

Probably because Brendan became a father last week and put work aside for some weeks ;-)


Johan

Johan Lindgren, TT, 070-6528007


Den fre 13 mars 2020 kl 14:42 skrev John Evans <john@...>:

Thanks Johan, I did apply to join the ninj group but got no reply.


From: iptc-newsml-g2@groups.io <iptc-newsml-g2@groups.io> on behalf of Johan Lindgren <johan.lindgren@...>
Sent: Friday, March 13, 2020 1:37:02 PM
To: iptc-newsml-g2@groups.io <iptc-newsml-g2@groups.io>
Subject: Re: [iptc-newsml-g2] newsmlg2 xml to ninj
 
Hi John,

Can't help you much here. We have NINJS as our primary format and convert to NewsML-G2 for customers that so choose.
But we use NodeJS for that conversion and not C#.

If you are interested in the development of ninjs the group is active again.


Johan

Johan Lindgren, TT, 070-6528007


Den tis 10 mars 2020 kl 16:34 skrev John Evans <john@...>:

Hi all,

We create a standard output of a newsmlG2 file with attachments in xml.

We want to offer the option to produce this as a ninj json file.

 

Can anyone point me to any examples or code snippets using C#?

 

Kind regards

 

John Evans

Transtel Communications

 

 

 


Re: newsmlg2 xml to ninj

John Evans
 

Thanks Johan, I did apply to join the ninj group but got no reply.


From: iptc-newsml-g2@groups.io <iptc-newsml-g2@groups.io> on behalf of Johan Lindgren <johan.lindgren@...>
Sent: Friday, March 13, 2020 1:37:02 PM
To: iptc-newsml-g2@groups.io <iptc-newsml-g2@groups.io>
Subject: Re: [iptc-newsml-g2] newsmlg2 xml to ninj
 
Hi John,

Can't help you much here. We have NINJS as our primary format and convert to NewsML-G2 for customers that so choose.
But we use NodeJS for that conversion and not C#.

If you are interested in the development of ninjs the group is active again.


Johan

Johan Lindgren, TT, 070-6528007


Den tis 10 mars 2020 kl 16:34 skrev John Evans <john@...>:

Hi all,

We create a standard output of a newsmlG2 file with attachments in xml.

We want to offer the option to produce this as a ninj json file.

 

Can anyone point me to any examples or code snippets using C#?

 

Kind regards

 

John Evans

Transtel Communications

 

 

 


Re: newsmlg2 xml to ninj

Johan Lindgren
 

Hi John,

Can't help you much here. We have NINJS as our primary format and convert to NewsML-G2 for customers that so choose.
But we use NodeJS for that conversion and not C#.

If you are interested in the development of ninjs the group is active again.


Johan

Johan Lindgren, TT, 070-6528007


Den tis 10 mars 2020 kl 16:34 skrev John Evans <john@...>:

Hi all,

We create a standard output of a newsmlG2 file with attachments in xml.

We want to offer the option to produce this as a ninj json file.

 

Can anyone point me to any examples or code snippets using C#?

 

Kind regards

 

John Evans

Transtel Communications

 

 

 


newsmlg2 xml to ninj

John Evans
 

Hi all,

We create a standard output of a newsmlG2 file with attachments in xml.

We want to offer the option to produce this as a ninj json file.

 

Can anyone point me to any examples or code snippets using C#?

 

Kind regards

 

John Evans

Transtel Communications

 

 

 


Re: Affiliations for organisations in G2?

Brendan Quinn
 

Hello everyone, sorry but this was meant to go to the News Architecture Working Group’s discussion list, not to the public NewsML-G2 discussion list.

 

Now you all get to see the exciting topics that we discuss in the working group 😊

 

Thanks for your patience,

 

Brendan.

--

Brendan Quinn, Managing Director, IPTC - International Press Telecommunications Council

25 Southampton Buildings, London WC2A 1AL, United Kingdom

Phone +44 (0)20 3178 4922 | Email mdirector@...  | Twitter @IPTC / @brendanquinn

 

From: <iptc-newsml-g2@groups.io> on behalf of Brendan Quinn <mdirector@...>
Reply to: <iptc-newsml-g2@groups.io>
Date: Monday, 10 February 2020 at 14:24
To: "iptc-newsml-g2@groups.io" <iptc-newsml-g2@groups.io>
Subject: [iptc-newsml-g2] Affiliations for organisations in G2?

 

Hi everyone,

 

  1. I’m finalising the Trust Indicators document and one of the things that they want to express is an organisation’s membership of some kind of body, including organisations such as IPTC, RSF, WAN-IFRA as well as the Trust Project itself.

 

We have <affiliation> under <personDetails> but nothing equivalent under <organisationDetails> as far as I can see.

 

  1. Separately, the affiliation docs in the Guidelines say:

Affiliation <affiliation>

An affiliation of the person to an organisation.

<affiliation type="orgnat:employer" qcode="org:ECB">

    <name>European Central Bank</name>

</affiliation>

Note that the @type refers to the type of organisation – not the type of relationship with the person. In the example we use scheme "orgnat" to describe the Nature of the Organisation as a Bank.

The note at the end there seems to contradict the example. The “type” attribute doesn’t describe that the nature of the organisation is a bank, it seems to indicate the type of relationship between the person and the organisation (ie an employer/employee relationship).

 

So is the example wrong, or is the note wrong, or am I misunderstanding something?

 

Thoughts?

 

Brendan.

--

Brendan Quinn, Managing Director, IPTC - International Press Telecommunications Council

25 Southampton Buildings, London WC2A 1AL, United Kingdom

Phone +44 (0)20 3178 4922 | Email mdirector@...  | Twitter @IPTC / @brendanquinn


Affiliations for organisations in G2?

Brendan Quinn
 

Hi everyone,

 

  1. I’m finalising the Trust Indicators document and one of the things that they want to express is an organisation’s membership of some kind of body, including organisations such as IPTC, RSF, WAN-IFRA as well as the Trust Project itself.

 

We have <affiliation> under <personDetails> but nothing equivalent under <organisationDetails> as far as I can see.

 

  1. Separately, the affiliation docs in the Guidelines say:

Affiliation <affiliation>

An affiliation of the person to an organisation.

<affiliation type="orgnat:employer" qcode="org:ECB">

    <name>European Central Bank</name>

</affiliation>

Note that the @type refers to the type of organisation – not the type of relationship with the person. In the example we use scheme "orgnat" to describe the Nature of the Organisation as a Bank.

The note at the end there seems to contradict the example. The “type” attribute doesn’t describe that the nature of the organisation is a bank, it seems to indicate the type of relationship between the person and the organisation (ie an employer/employee relationship).

 

So is the example wrong, or is the note wrong, or am I misunderstanding something?

 

Thoughts?

 

Brendan.

--

Brendan Quinn, Managing Director, IPTC - International Press Telecommunications Council

25 Southampton Buildings, London WC2A 1AL, United Kingdom

Phone +44 (0)20 3178 4922 | Email mdirector@...  | Twitter @IPTC / @brendanquinn

1 - 20 of 1661