# class PredicateProperties

###

Module | kio
Namespace |
Class | PredicateProperties
Inherits |

A predicate is part of the RDF trinity: subject, predicate, object. It is identified by URI and it defines the type of the relationship. For file metadata, a predicate can be seen as a fieldname. It has a data type, a description, a short id, a cardinality

### enums

- Attributes { Addable, Removable, Modifiable, Cumulative, Averaged, MultiLine, SqueezeText }

enum details

### methods

- PredicateProperties (predicate)

  returns ctor

  Argument | Type | Default
  --- | --- | ---
  predicate | QString | QString()

- PredicateProperties (p)

  returns ctor

  Argument | Type | Default
  --- | --- | ---
  p | PredicateProperties |

- attributes ( )

  returns uint

  Get the attributes of this group (see Attributes)

  Returns the attributes

- createValidator ( )

  returns QValidator

- description ( )

  returns QString
  Not implemented

  Localized description of the predicate.

- isValid ( )

  returns bool

- key ( )

  returns QString
  Not implemented

  Key associated with this value.

- maxCardinality ( )

  returns uint

- minCardinality ( )

  returns uint

- name ( )

  returns QString

  Localized name of the predicate.

- parent ( )

  returns PredicateProperties

- suggestedValues ( )

  returns QStringList

- type ( )

  returns QVariant.Type

  The type for this field.

- unit ( )

  returns QString
  Not implemented

  Return a url that identifies the unit in which this property is expressed.

### enums - detail

- Attributes { Addable, Removable, Modifiable, Cumulative, Averaged, MultiLine, SqueezeText }

  This enum is used to specify some attributes that an item can have, which fit neither in the Hint nor in the Unit enum.

  | Addable | - 1 | - | The item or group can be added by a user
  | Removable | - 2 | - | It can be removed
  | Modifiable | - 4 | - | The value can be edited (no meaning for a group)
  | Cumulative | - 8 | - | If an application wants to display information for more than one file, it may add up the values for this item (e.g. play time of an mp3 file)
  | Averaged | - 16 | - | Similar to Cumulative, but the average should be calculated instead of the sum
  | MultiLine | - 32 | - | This attribute says that a string item is likely to be more than one line long, so for editing, a widget capable for multline text should be used
  | SqueezeText | - 64 | - | If the text for this item is very long, it should be squeezed to the size of the widget where it's displayed