|
|
Line 115: |
Line 115: |
| New semantic queries can be created using the [https://moha.wiki/Special:Ask Semantic Search] page. For a full description of the semantic search page you can visit [https://www.semantic-mediawiki.org/wiki/Help:Semantic_search here]. | | New semantic queries can be created using the [https://moha.wiki/Special:Ask Semantic Search] page. For a full description of the semantic search page you can visit [https://www.semantic-mediawiki.org/wiki/Help:Semantic_search here]. |
|
| |
|
| On this page the left column you "ask" the mediawiki to provide you information that matches your criteria. That criteria is any element that is a property within mediawiki and could be categories, event names, start dates etc.... | | On this page the left column you "ask" the mediawiki to provide you information that matches your criteria. |
|
| |
|
| So for example you could "ask", provide everything that is within the category of events. The code to do this is <nowiki> [[Category:Events]] </nowiki>. '''To note, a bug within mediawiki semantic search has led us to include <nowiki>[[Modification date::+]]</nowiki> within all semantic queries.''' So the code to semantically query all events in this case would be <nowiki>[[Category:Events]] [[Modification date::+]]</nowiki>. On the right you want to provide all the properties you'd like the query to return. For a list of all properties you can visit [https://moha.wiki/Special:Properties Properties]. For an individual page or events properties you can visit any given page and in the bottom left, click tools and then browse properties. This will show you all properties on that page as well as the values within those properties. In our example we're going to return the following properties | | That criteria is any element that is a property within mediawiki and could be categories, event names, start dates etc.... |
| | |
| | So for example you could "ask": provide everything that is within the category of events. The code to do this is <nowiki> [[Category:Events]] </nowiki>. |
| | |
| | '''To note, a bug within mediawiki semantic search has led us to include <nowiki>[[Modification date::+]]</nowiki> within all semantic queries.''' |
| | |
| | So the code to semantically query all events in this case would be <nowiki>[[Category:Events]] [[Modification date::+]]</nowiki>. On the right you want to provide all the properties you'd like the query to return. For a list of all properties you can visit [https://moha.wiki/Special:Properties Properties]. For an individual page or events properties you can visit any given page and in the bottom left, click tools and then browse properties. This will show you all properties on that page as well as the values within those properties. In our example we're going to return the following properties |
| <pre> | | <pre> |
| ?Event description | | ?Event description |
Revision as of 21:24, May 29, 2024
Design and Formatting
Wiki
Code Blocks
Semantic Queries and Templates
How to use intro box
Articles