Special properties

From semantic-mediawiki.org
Special properties
Provides an overview about properties that are build into Semantic MediaWiki.
Table of Contents

This page describes the 47 special properties that are built-in to Semantic MediaWiki (SMW). They are needed to make the system work. They appear in a page's factbox, on special page "Properties"Lists properties and displays their usage and on special page "Browse"Shows all properties and their values annotated to a page in italic. Since Semantic MediaWiki 1.4.0Released on 21 November 2008 and compatible with MW 1.13.x - 1.16.x., special properties can be used in browsing interfaces and inline queries just like all other properties. Also see the help page properties and types for more information.

Special properties may also be provided by extensions to Semantic MediaWiki like, e.g. extension "Semantic Extra Special Properties"Adds some extra special properties to all pages or extension "Semantic Cite"Provides a simple way of organizing citation resources with the help of semantic annotations., etc. These however are currently not being documented here.

The names and aliases of special properties are reserved and cannot be used for other properties. Additionally special properties should only be used according to their documented purpose! It is not necessary to create pages for special properties. They will perform their special behavior even if your wiki does not have a property page for it.

List[edit]

The following table gives an overview of all 47 special properties provided by Semantic MediaWiki:

NameDescriptionHelp pageSinceKey
Allows valueLists one permissible value for a propertySpecial property "Allows value"1.0
_PVAL
Corresponds toGives the conversion factor for some unit of a physical quantity and the possible names for that unitSpecial property "Corresponds to"1.0
_CONV
Display unitsSpecifies the a comma-separated list of units or formats that a property should use in displaySpecial property "Display units"1.0
_UNIT
Equivalent URIMarks a page in the wiki as having a well-known meaning beyond this wiki, in an external URISpecial property "Equivalent URI"1.0
_URI
Has typeAssigns a datatype to a propertySpecial property "Has type"1.0
_TYPE
Imported fromAllows users to reuse elements of external vocabularies directly within the wikiSpecial property "Imported from"1.0
_IMPO
Provides serviceAdds service links to propertiesSpecial property "Provides service"1.0
_SERV
Subproperty ofLets you indicate that one property is a subproperty of anotherSpecial property "Subproperty of"1.0
_SUBP
Modification dateHolds a fixed value that corresponds to the date of the last modification of each pageSpecial property "Modification date"1.4.0
_MDAT
Has improper value forAlerts in case the assigned value to a property is invalidSpecial property "Has improper value for"1.4.2
_ERRP
Has fieldsDefines a short list of fields with a fixed type and order for datatype RecordSpecial property "Has fields"1.5.0
_LIST
Subcategory ofLets you explicitly indicate that one category is a subcategory of anotherSpecial property "Subcategory of"1.5.0
_SUBC
Creation dateHolds a fixed value that corresponds to the date of the first revision of each pageSpecial property "Creation date"1.7.0
_CDAT
Has subobjectHolds the subobjects set on a pageSpecial property "Has subobject"1.7.0
_SOBJ
Is a new pageHolds a value marking a page as being new or notSpecial property "Is a new page"1.7.1
_NEWP
Last editor isHolds the page name of the user who created the last page revisionSpecial property "Last editor is"1.7.1
_LEDT
Has queryLinks a page to the subobject created by a query recording its profileSpecial property "Has query"1.8.0
_ASK
Query depthHolds the value of the property depth of a querySpecial property "Query depth"1.8.0
_ASKDE
Query formatHolds the name of the result format used in a querySpecial property "Query format"1.8.0
_ASKFO
Query sizeHolds the value of the number of conditions in a querySpecial property "Query size"1.8.0
_ASKSI
Query stringHolds the conditions of the query as a stringSpecial property "Query string"1.8.0
_ASKST
Query durationHolds the value of the duration a query took to executeSpecial property "Query duration"1.9.0
_ASKDU
MIME typeHolds the MIME type of an uploaded fileSpecial property "MIME type"1.9.1
_MIME
Media typeHolds the Media type of an uploaded fileSpecial property "Media type"1.9.1
_MEDIA
Allows patternPattern to match a permissible valueSpecial property "Allows pattern"2.4.0
_PVAP
Display precision ofPrecision in digitsSpecial property "Display precision of"2.4.0
_PREC
Display title ofHolds a specific denote title for an entitySpecial property "Display title of"2.4.0
_DTITLE
Has processing errorHolds a "container" with further information about a problem and allows to explore it.Special property "Has processing error"2.4.0
_ERRC
Has processing error textContains a textual description of an error which occurred during the processing of a page.Special property "Has processing error text"2.4.0
_ERRT
Has property descriptionAdds localizable context help to propertiesSpecial property "Has property description"2.4.0
_PDESC
Has uniqueness constraintAllows to restrict value annotation to be uniqueSpecial property "Has uniqueness constraint"2.4.0
_PVUC
Language codeHandles BCP47 conform language codes specifying the language of the annotated textSpecial property "Language code"2.4.0
_LCODE
Allows value listAdds a reference to a list of permissible values for a propertySpecial property "Allows value list"2.5.0
_PVALI
External formatter URIDeclares an external URL with a place holder $1Special property "External formatter URI"2.5.0
_PEFU
External identifierSpecifies an external identifierSpecial property "External identifier"2.5.0
_PEID
Has preferred property labelAdds localizable labels to a propertySpecial property "Has preferred property label"2.5.0
_PPLB
Is edit protectedStores the status of an edit restriction of a pageSpecial property "Is edit protected"2.5.0
_EDIP
Query parametersHolds the parameters a query used to select its outputSpecial property "Query parameters"2.5.0
_ASKPA
Query sourceHolds the identifier of an alternative (e.g. remote) query sourceSpecial property "Query source"2.5.0
_ASKSC
Change propagationHolds the new property specification of a property or category pageSpecial property "Change propagation"3.0.0
_CHGPRO
Is property groupProperty to identify a group category and to support a simple grouping feature in Special:BrowseSpecial property "Is property group"3.0.0
_PPGR
Query stateHolds the status code a query uses to define its internal stateSpecial property "Query state"3.0.0
_ASKCO

See also[edit]

Special properties can also be classified according to a certain behaviour they have or allow for. See the following help pages for further information:

Applying styles[edit]

In case you would like to make special properties easier to be identified in the factbox, on special page "Properties"Lists properties and displays their usage and on special page "Browse"Shows all properties and their values annotated to a page just add, e.g. the following CSS code to the MediaWiki:Common.css page.

.smwbuiltin a,
.smwbuiltin a.new {
    color: #ff8000;
}
Special properties are are already printed in italics prior to the extra formatting mentioned here.

"Has description " contains a listed "LF" character as part of the property label and has therefore been classified as invalid. "Has description " contains a listed "LF" character as part of the property label and has therefore been classified as invalid. "Has description " contains a listed "LF" character as part of the property label and has therefore been classified as invalid. "Has description " contains a listed "LF" character as part of the property label and has therefore been classified as invalid. "Has description " contains a listed "LF" character as part of the property label and has therefore been classified as invalid.