Page MenuHomePhabricator

Namespace alias for EntitySchema
Closed, ResolvedPublic

Description

Problem:
People can restrict their search (Special:Search) to the Property and Lexeme namespaces by prefixing their search with P: and L: respectively. We don't have the same for EntitySchema. We should. We want to use E: as the shortcut.

BDD
GIVEN a search term prefixed with "E:"
WHEN executing the search via Special:Search
THEN the search is restricted to the namespace for Entity Schemas

Acceptance criteria:

  • searches with "E:" are restricted to the Entity Schema namespace

Notes:

  • technically this seems to be realized by making E an alias for the Entity Schema namespace.

Event Timeline

Note that searching for EntitySchema:human already works, so I think all that would be needed would be a namespace alias, similar to T195493: Set up “L” as an alias for the “Lexeme” namespace. (But see also T224478: define "scheme:" as namespace alias for EntitySchema: (ns:640), which proposes a completely different namespace alias.)

A namespace alias would been nice. I think "E:" should be a good one for EntitySchema. Because they all start with an "E" (like E1), and to keep up with the other aliases (P for property, L for lexeme, among others)

Premeditated renamed this task from Prefix search for EntitySchema to Namespace alias for EntitySchema.Feb 18 2020, 5:37 PM

Change 608309 had a related patch set uploaded (by Michael Große; owner: Michael Große):
[operations/mediawiki-config@master] Add "E" as an alias of EntitySchema namespace on wikidata

https://gerrit.wikimedia.org/r/c/operations/mediawiki-config/ /608309

Change 608309 merged by jenkins-bot:
[operations/mediawiki-config@master] Add "E" as an alias of EntitySchema namespace on wikidata

https://gerrit.wikimedia.org/r/c/operations/mediawiki-config/ /608309

Mentioned in SAL (#wikimedia-operations) [2020-06-29T14:22:35Z] <lucaswerkmeister-wmde@deploy1001> Synchronized wmf-config/InitialiseSettings.php: Config: [[gerrit:608309|Add "E" as an alias of EntitySchema namespace on wikidata (T245529)]] (duration: 00m 57s)