Help:Special properties

From semantic-mediawiki.org
Jump to: navigation, search
SMW user manual
Introduction
Editing
Properties and types
Special properties
Inverse properties
Custom units

Semantic templates

Service links

Browsing interfaces
Special:Ask
Special:Browse
Semantic search
Selecting pages
Strict comparators
Displaying information
Result formats
Inline queries
Querying for queries
Concepts
Inferencing
Semantic Web
RDF export

External tools

Importing vocabulary

SMW admin manual

This page describes the 24 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:Browse and on Special:Properties in italic. Since SMW 1.4.0, 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.

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 behaviour even if your wiki does not have a property page for it.

The pages listed in the table below provide an overview and link to documentation pages for special properties.

NameAliasDescriptionHelp pageComponentSinceOptionalLabel
Allows valuehas no aliasLists one permissible value for a propertySpecial property Allows valueSemantic MediaWiki1.0falsenot specified
Corresponds tohas no aliasGives the conversion factor for some unit of a physical quantity and the possible names for that unitSpecial property Corresponds toSemantic MediaWiki1.0falsenot specified
Display unitsDisplay unitSpecifies the a comma-separated list of units or formats that a property should use in displaySpecial property Display unitsSemantic MediaWiki1.0falsenot specified
Equivalent URIhas no aliasMarks a page in the wiki as having a well-known meaning beyond this wiki, in an external URISpecial property Equivalent URISemantic MediaWiki1.0falsenot specified
Has typehas no aliasAssigns a type to a propertySpecial property Has typeSemantic MediaWiki1.0falsenot specified
Imported fromhas no aliasAllows users to reuse elements of external vocabularies directly within the wikiSpecial property Imported fromSemantic MediaWiki1.0falsenot specified
Provides servicehas no aliasAdds service links to propertiesSpecial property Provides serviceSemantic MediaWiki1.0falsenot specified
Subproperty ofhas no aliasLets you indicate that one property is a subproperty of anotherSpecial property Subproperty ofSemantic MediaWiki1.0falsenot specified
Modification datehas no aliasIt has a fixed value that corresponds to the date of the last modification of each pageSpecial property Modification dateSemantic MediaWiki1.4.0true_MDAT
Has improper value forhas no aliasAlerts in case the assigned value to a property is invalidSpecial property Has improper value forSemantic MediaWiki1.4.2falsenot specified
Has fieldshas no aliasDefines a short list of fields with a fixed type and order for datatype RecordSpecial property Has fieldsSemantic MediaWiki1.5.0falsenot specified
Subcategory ofhas no aliasLets you explicitly indicate that one category is a subcategory of anotherSpecial property Subcategory ofSemantic MediaWiki1.5.0falsenot specified
Creation datehas no aliasIt has a fixed value that corresponds to the date of the first revision of each pageSpecial property Creation dateSemantic MediaWiki1.7.0true_CDAT
Has subobjecthas no aliasHolds the subobjects set on a pageSpecial property Has subobjectSemantic MediaWiki1.7.0falsenot specified
Is a new pagehas no aliasMarks a page as being new or notSpecial property Is a new pageSemantic MediaWiki1.7.1true_NEWP
Last editor ishas no aliasHolds the page name of the user who created the last page revisionSpecial property Last editor isSemantic MediaWiki1.7.1true_LEDT
Has queryhas no aliasLinks a page to the subobject created by a querySpecial property Has querySemantic MediaWiki1.8.0falsenot specified
Query depthhas no aliasHolds the value of the property depth of a querySpecial property Query depthSemantic MediaWiki1.8.0falsenot specified
Query formathas no aliasHolds the name of the result format used in a querySpecial property Query formatSemantic MediaWiki1.8.0falsenot specified
Query sizehas no aliasHolds the value of the number of conditions in a querySpecial property Query sizeSemantic MediaWiki1.8.0falsenot specified
Query stringhas no aliasHolds the conditions of the query as a stringSpecial property Query stringSemantic MediaWiki1.8.0falsenot specified
Query durationhas no aliasHolds the value of the duration a query took to executeSpecial property Query durationSemantic MediaWiki1.9.0truenot specified
MIME typehas no aliasHolds the MIMI type of an uploaded fileSpecial property MIME typeSemantic MediaWiki1.9.1true_MIME
Media typehas no aliasHolds the Media type of an uploaded fileSpecial property Media typeSemantic MediaWiki1.9.1true_MEDIA

You can create your own special properties in an extension using the smwInitProperties hook. See, for example, the usage in the Semantic Extra Special Properties extension, which provides extra special properties.

In case you would like to make special properties easier to be identified in the factbox, on Special:Properties and Special:Browse just add, e.g.

.smwbuiltin a,
.smwbuiltin a.new {
    color: #FF8000;
}

to the MediaWiki:Common.css page. Note that they are already printed in italics prior to the extra formatting mentioned here.


This documentation page applies to all SMW versions from 1.4.0 to the most current version.
      Other languages: deruukzh-hans

Help:Special properties en 1.4.0