Help:Datatype "Keyword"

From Linux Web Expert

Revision as of 17:12, 17 April 2019 by >Kghbln (chg)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Keyword
Holds text of restricted length that is being normalised (similar to datatype Text)
Further information
Provided by: Semantic MediaWiki
Since version: 3.0.0
Until version: still in use
Datatype ID: _keyw
In this wiki: Keyword
Table of Contents


The datatype Keyword is used to strings of restricted length.1 It is similar to datatype "Text"Holds text of arbitrary length, but has the following differences:

  • Keywords are restricted in length (150 for ASCII, 85 for UTF-8)
  • they are normalized (lowercased, removed diacritics)
  • the original annotation value is kept but during a query request the normalized value is used to match the broadest possible result set which means whether you use teSt, TEST, or test the normalized version will always match the keyword test
  • Keywords allow to add a formatter rules (see below) which will self link any keyword to a link_to target to have immediate access to entities that have the same normalized keyword annotated

Formatter rule

Any keyword typed property can have its own formatter rule assigned which defines how links should be generated. For details, see Help:Rule. If the property has no formatter rule then it just displays the annotated value.

Examples

API example

<ul><li>The part "|Keyword" of the query was not understood.Results might not be as expected.</li> <!--br--><li>The part "]]" of the query was not understood.Results might not be as expected.</li></ul>

See also

#scite could not render a citation text for reference "gh:smw:3020" because type "pullrequest" was not assigned to a template.

References

  1. ^ gh:smw:3020