Object type attributes

Build 1501 on 14/Nov/2017  This topic last edited on: 5/Aug/2014, at 16:53

The system schema can define attributes associated with the object types themselves – also known as meta-attributes. These attributes are rendered in a special ‘nav:objectTypeAttrs’ element in the object’s XML, e.g.:

  <audio nav:objectType="audio" id="obj44013" . . .>

    <nav:objectTypeAttrs mediaType="Audio" . . . />

    . . .

  </audio>

Use this element to write queries based on object type attributes, for example:

gn4:archiveObject[nav:objectTypeAttrs/@mediaType='Audio']

returns all the archive objects with a media type ‘Audio’, and

gn4:txt[nav:objectTypeAttrs/@typeKind='body']

returns all article’s text of kind ‘body’.