Semantic MediaWiki special pages: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
|||
Line 30: | Line 30: | ||
: '''Example''': Simple query finding all instances of a Category | : '''Example''': Simple query finding all instances of a Category | ||
<source lang="text">[[Category: Software information]]</source> | <source lang="text">[[Category: Software information]]</source> | ||
; [[Special:PageProperty]] | |||
: displays all values some page has for some property or all values. Users enter a page and a property name. | |||
; [[Special:RunQuery]] | ; [[Special:RunQuery]] |
Revision as of 12:33, 17 June 2013
<pageby nominor="false" comments="false"/> Warning: Needs to be reorganized, so far it's a cut/paste from the Semantic Forms article .....
This page lists special pages for the Semantic MediaWiki (SMW) extensions and extensions that work with SMW, such as Semantic Forms.
Semantic Formas and SMW include a few special pages that allow to define semantic "elements" without hand coding. They also allow to add forms to pages, make queries, etc.
List and search
- Special:Properties
- List all properties (defined and undefined as well used and unused)
- From there you then can browse through each property or data type.
- Special:Types
- Lists all data types that can be assigned to properties
- Special:UnusedProperties
- List all unused properties (defined and undefined)
- Special:SearchByProperty
- Enter property and an optional value
- Special:Ask
- Semantic search form. You should enter at least one information, i.e. which page to select. Optionally, what information to display about these pages. Read more in Semantic Search
- Example: Simple query that will find all pages that include a "Has URL" property with value "http://edutechwiki.unige.ch/en/Semantic_Forms":
[[Has URL::http://edutechwiki.unige.ch/en/Semantic_Forms]]
- Results are displayed in various ways. By default they are appended to the bottom of the same page.
- Example: Simple query finding all instances of a Category
[[Category: Software information]]
- Special:PageProperty
- displays all values some page has for some property or all values. Users enter a page and a property name.
- Special:RunQuery
- requires Semantic Forms
- Allows to to link to a special query page using a form. Query forms have the same syntax as editing forms.
- Ugly Example: Special:RunQuery/Software information (using a form made for editing)
- Special:Forms
- requires Semantic Forms
- Lists all forms
- Special:Templates
- requires Semantic Forms
- Lists all templates
- special:browseData
- requires Semantic Drilldown
- Browse data with categories
Defining new classes, categories, forms, templates and properties
- Special:CreateClass
- requires Semantic Forms
- Allows to enter all the data to create properties, a template, a form and a category for a single class. For more options, use the pages Create a property, Create a template, Create a form and Create a category instead (see below).
- Special:CreateCategory
- requires Semantic Forms
- Creates a new category and associates a default form with this category. Categories are the same as normal MediaWiki categories, but will have an associated form.
- Special:CreateForm
- requires Semantic Forms
- Creates a new form and an associated template. Therefore the template should be defined first.
- Special:CreateProperty
- Creates a new property and its type. By default a property is "page", i.e. its value will refer to a wiki page. You can link a property to pages that use a given form.
- Special:CreateTemplate
- requires Semantic Forms
- Creates new user input templates, i.e. a list of input fields. You can enter field names, display label and the associated semantic property (the latter from a pulldown list of all properties)
Using forms
- Special:FormEdit
- requires Semantic Forms
- Does not work as such, i.e. you must specifiy a form name and a target page in the URL
- Examples: http://edutechwiki.unige.ch/en/Special:FormEdit?form=Software%20information&target=Semantic%20Forms or using Semantic forms syntax: Special:FormEdit/Software information/Some software
- Special:FormStart
- requires Semantic Forms
- Allows to add a form to a page and then allows to edit the page.
Other
- Category pages will tell if the category is based on a semantic form, e.g. see Category:Software_information