Help:Sequence map

From semantic-mediawiki.org

The sequence map1 is a feature added with Semantic MediaWiki 3.1.0Released on 23 September 2019 and compatible with MW 1.31.0 - 1.33.x. and can assign an attributive characteristic to a property so that annotated values do appear in the same sequence (order) during an output as there were added during the input.

Usage[edit]

Create a "PROPERTY_PROFILE_SCHEMA" schema that defines the sequence map.

{
    "type": "PROPERTY_PROFILE_SCHEMA",
    "profile": {
        "sequence_map": true
    },
    "tags": [
        "property profile"
    ]
}

Following the creation of a profile schema, assign the profile to a property using the declarative Profile schema property. The specific profile is only created once and can be reused for other properties that want to make use of this feature.

Note[edit]

Once a profile schema is added to a property with special property "Profile schema"Holds the name of a profile schema which declares characteristics for annotations maintenance script "rebuildData.php"Allows to rebuild all the semantic data for a selected data backend/store has to be run as this requires to build up the new database table "smw_object_aux" with it's field "smw_seqmap" from the ground.2

Technical notes[edit]

A property with a "sequence map" attribute will signal to the Storage Engine to store an additional map of hashed values (see database table "smw_object_aux"3) together with their sequence so that annotated values can appear in the same order as there were annotated.



References

  1. ^  Semantic MediaWiki: GitHub issue gh:smw:4226
  2. ^  |  Semantic MediaWiki: GitHub issue comment gh:smw:4227:520222005
  3. ^  Semantic MediaWiki: GitHub pull request gh:smw:4227