Help:Schema/Type/PROPERTY GROUP SCHEMA

From semantic-mediawiki.org
< Help:Schema‎ | Type
SchemaSchema/TypeHelp:Schema/Type/PROPERTY GROUP SCHEMA

This is the help page on schema type PROPERTY_GROUP_SCHEMA.1 It allows to deploy property groupes without a user having to manually create categories and annotated them with special property "Is property group"Marks a category for holding properties belonging to a property group. This feature was introduced with Semantic MediaWiki 3.1.0Released on and compatible with MW 1.31.0 - 1.33.x..

However adding special property "Is property group"Marks a category for holding properties belonging to a property group to a category takes precedence over any group definition found in PROPERTY_GROUP_SCHEMA. Thus a property listed as part of a PROPERTY_GROUP_SCHEMA where a listed property itself is assigned to category the property will be a member of the category assigned group.

Objective

The PROPERTY_GROUP_SCHEMA schema type defines property groups to help structure the browsing interface.

Properties

  • type
  • manifest_version
  • groups identifies the section that contains a group definition
    • my_group group identifier
    • group_name canonical group label
    • msg_key contains a key that can be translated and replace the canonical group label
    • property_list list of properties keys assigned to the group
  • tags simple tags to categorize a schema

Example

{
    "type": "PROPERTY_GROUP_SCHEMA",
    "manifest_version": 1,
    "groups": {
        "my_group": {
            "group_name": "My properties",
            "msg_key": "smw-...",
            "property_list": [
                "MY_PROPERTY"
            ]
        }
    },
    "tags": [
        "group",
        "property groups"
    ]
}

Validation

/data/schema/property-group-schema.v1.json


See also[edit]

References

  1. ^  Semantic MediaWiki: GitHub pull request gh:smw:3749