Help:Special:Ask 1.5.2 - 1.7.1

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
Using the API
Semantic Web
RDF export

External tools

Importing vocabulary

SMW admin manual

The "Semantic search" page, which can be found at Special:Ask, provides an interface that assists users with creating and executing semantic queries.

Query construction

On the top of the page there are two text area fields. The first one, titled 'Query', is meant for the portion of the query for selecting pages. The second one, titled 'Additional data to display', is meant to hold the set of properties that are displayed for each queried page - see Help:Displaying information. Each property should be prepended with a question mark, just as is done in regular #ask queries. As of Semantic MediaWiki 1.5.2, this field has autocompletion on property names, meaning that you can start typing the beginning of a property name, and a set of completions will show up. You can also just type a question mark, and you will see the list of all properties defined on the wiki at once.

Query parameters

As of Semantic MediaWiki 1.5.0, additional controls are shown under the text fields, which allow the user to pass parameters to the query that give extra control over how the data is displayed. The controls shown change according to the result format selected, as different formats support different parameters.

Running the query

You can run the query by hitting the 'find results' button in the lower left corner of the page, after which the results will be shown.

See also


This documentation page applies to all SMW versions from 1.5.2 to 1.7.1.
Other versions: ≥ 1.8.01.5.0 – 1.5.11.0 – 1.4.2       Other languages: defrjaruzh-hans

Help:Special:Ask en 1.5.2 1.7.1