Help:Sequence map

From semantic-mediawiki.org

The "sequence map"1 is a feature added with Semantic MediaWiki 3.1.0 and an attributive characteristic that can be assigned 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 table ("smw_object_aux") and field ("smw_seqmap") from the ground.2

Technical notes[edit]

A property with a "sequence map" attribute will signal to the StorageEngine to store an additional map of hashed values (see table smw_object_aux3) 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