Table of Contents | |
---|---|
Contents |
Semantic MediaWiki 3.0.0Released on 11 October 2018 and compatible with MW 1.27.0 - 1.31.x. introduced an entity suggester123 for some registered input fields to increase search efficiency and accuracy during the annotation process and improve the overall editing experience by providing an input assistance.
Features and limitations[edit]
Input assistance is available for:
- The query condition input field on special page "Ask"Provides an interface that assists users with creating and executing semantic queries,
- the description field on special page "Upload",
- the search input field on special page "Search" if the "SMWSearch" feature is enabled and
- the page edit textarea (
wikiEditor
)
Support for this feature is only available for users that have set the appropriate user preference.
Usage[edit]
The suggestion box will only appear when an appropriate context marker (e.g. p:
) and a prefix condition (i.e. [[
as common prefix) is available at the same time to avoid arbitrary searches on non related text inputs.
The default context marker (or token) that the entity suggester uses to identify what type of entity is being requested have been defined by:
- prefix
p:
for property suggestions, - prefix
c:
for category suggestions and - prefix
con:
for concept suggestions.
It should be noted that when only the prefix, e.g. p:
is entered the suggester will remain silent and not activate due to a missing prefix condition.
- Page edit textarea
The page edit textarea (wikiEditor
) has two additional methods on how to active a suggestion box, ?
and |
as prefix combination with p:
to ease the selection of a property instance while annotating with the #set
parser function, #subobject
parser function, or as part of a printout declaration.
#set
parser function
{{#set: |p: ... }}
#subobject
parser function
{{#subobject: |p: ... }}
#ask
parser function
{{#ask: [[p: ... |?p: ... }}
See also[edit]
- Help page on edit help
References
- ^ | Semantic MediaWiki: GitHub pull request gh:smw:2696
- ^ | Semantic MediaWiki: GitHub pull request gh:smw:2699
- ^ | Semantic MediaWiki: GitHub pull request gh:smw:2756