Difference between revisions of "Semantic search"

From HCE Wiki - The Human Cognitive Enhancement Wiki
Jump to navigation Jump to search
(walkthrough expanded)
(added image, added link to list of all user properties)
Line 1: Line 1:
 
You can search the wiki semantically using the two following tools: [[Special:Browse]] and [[Special:Ask]]
 
You can search the wiki semantically using the two following tools: [[Special:Browse]] and [[Special:Ask]]
 
+
[[File:SemanticSearchGuide.png|thumbnail|right|The result of the semantic search for Virtual Reality Devices with the properties for Price and Resolution being filtered. ]]
 
The first search form allows you to quickly list all semantic properties used in a page. You can display a list of all pages the property is used together with their respective values. However, you can not issue a more complicated search query.
 
The first search form allows you to quickly list all semantic properties used in a page. You can display a list of all pages the property is used together with their respective values. However, you can not issue a more complicated search query.
  
Line 10: Line 10:
  
 
The resulting table now displays all [[Virtual Reality Devices]] together with the price (if known) of the individual devices. Additional values can be added below the <code>?Costs</code>, with each being on a separate line.
 
The resulting table now displays all [[Virtual Reality Devices]] together with the price (if known) of the individual devices. Additional values can be added below the <code>?Costs</code>, with each being on a separate line.
 +
 +
All available, user-created semantic properties can be found listed on the [[Special:Properties]] list.
  
 
The official [https://www.semantic-mediawiki.org/wiki/Help:Semantic_search Semantic MediaWiki guide] offers more details.  
 
The official [https://www.semantic-mediawiki.org/wiki/Help:Semantic_search Semantic MediaWiki guide] offers more details.  
  
 
[[Category:Guides]]
 
[[Category:Guides]]

Revision as of 13:57, 22 August 2016

You can search the wiki semantically using the two following tools: Special:Browse and Special:Ask

The result of the semantic search for Virtual Reality Devices with the properties for Price and Resolution being filtered.

The first search form allows you to quickly list all semantic properties used in a page. You can display a list of all pages the property is used together with their respective values. However, you can not issue a more complicated search query.

For more elaborate queries, you will need to use the second search form. This form is divided into two parts. The Query and the Additional data to display. You can search and filter the data as follows. Supposed we need to search the Virtual Reality Devices category and sort the devices by the price.

Find the semantic property that you wish the data to be sorted by. In the case of our example, this will be Virtual Reality Devices. The property's whole name has to be used, and the query must be enclosed in square brackets. Note that the query uses double :.

This search query displays a list of all devices that are categorised as Virtual Reality Devices but does not show any additional information. To display a price alongside the list of the devices, an additional property have to be stated in the right form field. These are additional properties found on the pages. In the case of this tutorial, we need to write ?Costs into the right form field and issues the query.

The resulting table now displays all Virtual Reality Devices together with the price (if known) of the individual devices. Additional values can be added below the ?Costs, with each being on a separate line.

All available, user-created semantic properties can be found listed on the Special:Properties list.

The official Semantic MediaWiki guide offers more details.