Document relations and types
IMNML format is to a great extent based on relations and types in order to convey the meaning and how to interpret the data in the document. Here we aim to list and describe the relations and types used in IMNML.
Note that there might be other relations and types used in the format as a result of customers own systems, applications and/or plugins and concepts make update/modifies the documents. The usage of these customer specific values will not break IMNML documents but are handled as extensions of the format.
Namespaces
Namespaces in IMNML are used to specify ownership and type of data in the document. Typically namespaces are used for @type
and @uri
but also in combination with @qcode
(NewsML attribute).
Types
Infomaker types are prefixed as described below. These types indicates that the data belongs to Infomaker applications such as Writer, Dashboard, Concept Admin, Newspilot and/or Newsroom Planner and, obviously, what type the data is.
The actual types used and their values that are owned by Infomaker are defined in a catalog file (wip). Compare with how IPTC are using catalogs and controlled vocabularies.
Below are the types used by different, Infomaker owned, systems described. For examples, see "Examples of usage of type and relations" below.
Note that depending on customers own applications and plugins that use and manipulate the IMNML documents there might be other types in use, e.g. x-cmbr
(example of type belonging to Sydsvenskan).
Writer types
x-im - prefix is typically used when type is used in combination with
<link>
and<object>
elements (Infomaker extensions)imext - prefix used when extending NewsML standard types. Prefix applies to a number of different types used.
When the belonging of data cannot be determined, IMNML uses a pattern of giving the type a suffix - local
, e.g. x-im/author/local
. For more examples, see ”Examples of usage of type and relations” below.
Newspilot types
x-np - prefix used when referencing data belonging to Infomaker Newspilot.
Newsroom Planner types
nrpdesc - type of description
nrprole - role of assigned entity in Newsroom Planner
nrplinrol - role of address line
IMID types
x-imid - prefix used to indicate that referenced value belongs to Infomaker ID.
imid - prefix used when extending NewsML standard types where referenced value belongs to Infomaker ID. Usually used in combination with
uri
:s.
URI:s
In the case where a certain data cannot be identified with an uuid
, URI:s can be used. The ”scheme” part of the URI should represent ownership of the data that the URI is used for. Different system will make use of different prefixes much as in the case of types (see above).
The remaining part of the URI, after scheme, is used to identify the actual data, normally using type and some sort of id, see examples below.
Note that a customers application/system and plugins might use there own URI:s in which case the URI should follow the same pattern, e.g. an URI used for data belonging to Sydsvenskan should use cmbr://
scheme.
Writer uri:s
im:// - data belongs to Infomaker Writer and Infomaker plugins
Newspilot uri:s
np:// - data belongs to Newspilot
Newsroom Planner uri:s
nrp:// - data belongs to Newsroom Planner
IMID uri:s
imid:// - data belongs to Infomaker ID
Examples of usage of URI:s
URI for a IPTC mediatopic:
URI for a Writer article:
URI for a Newspilot user:
URI for a link to a IMID sub:
Link relations
The <link>
element is an extension used in the IMNML format. In order to describe how to use and interpret the link, typically the rel
attribute is used (often in combination with the type
attribute). Below is a list of values of the rel
attribute supported in IMNML. Please note that, as in the case of types and URI:s, values of rel
might differ from this list depending on customers own applications/systems and plugins using the documents.
subject - document is tagged with a subject
author - author of the document
self - specifying link to actual entity (used in the case where there are multiple alternate links to same entity
broader - parent of document
same-as - duplicate of or different aspect/version of entity
avatar - avatar image linked to document
article - related article to document
image - the linked document represents an image representation of the context
replaced-by - document is replaced by other document
creator - user created the document (Writer core will set this to authorized IMID user)
updater - user updated the document (Writer core will set this to authorized IMID user)
irel:seeAlso - resource for more information about the document
associated-with - document is associated or grouped with other document
mainchannel - the ”main” channel for the document
channel - channel for the document
articlesource - the original source of the document, e.g. ”TT”
crop - the soft crop of an image
alternate - alternative to the document
type - link type (used when links represents values in a list for example)
member - the linked document is a member of the context
presentation - the linked to document represents the presentation that is to be used for the context. Used by eg. the deck system
assigned-to - person is assigned to planned assignment
organiser - organiser of an event
participant - participant of an event
location - a geographic location
source - link represents the source for the entity being referenced (see "Source relations" below)
Source relations
In order to specify source information for a linked (referenced) entity, a link with rel attribute set to source
should be used. Below is an example of how to specify source link for an image where "xyz" represent the provider (source) for the image.
For the corresponding image newsItem, this information would be put in the itemMeta > links
element:
Source is also used in the "copy article" functionality in Writer, i.e. the copied version of the article will include a link pointing to the original article in the itemMeta > links
element:
IMID relations
Below are nodes used in format to represent IMID relations.
Affiliations
In order to specify IMID affiliations, the link
elements for "creator" and "updater" are used. Below is an example of affiliation connected to the "creator" but the same format applies for "updater".
Shared with
If the document is supposed to be shared with another IMID entity, the format below should be used (in addition to the "affiliation" format described above).
NB: If the document is supposed to be shared with an organisation as a whole, the following structure should be used.
By using this format there is no need to add anything to existing documents when a unit is added (or deleted) from an organisation. The convention of duplicating the "shared-with" link is to keep all "shared-with" links in the same position in the document, regardless if it is a unit or an organisation that the document is shared with.
The title
and base component of the uri must abide to the below regex.
Examples of usage of type and relations
Link to an author represented as a concept in Open Content:
Link to a ”custom” author, i.e. an author not belonging to a particular system or application:
Link to an author belonging to Newspilot but not a concept:
Link to an organiser belonging to Infomaker as a concept in Open Content:
Link to a ”custom” organiser, i.e. an organiser not belonging to a particular system or application:
Link to geo point represented as a concept in Open Content:
Link to a ”custom”, i.e. a geo point not belonging to a particular system or application:
Link to external subject belonging to IPTC:
Link to an IMID sub that is specified as a creator of an object:
Link to an alternate version of the article:
Link indicating that document is "grouped" under a certain concept (of type "x-im/group"):
Last updated