daniel created this task.
daniel added subscribers: thiemowmde, Aklapper, Lydia_Pintscher, daniel.
daniel added projects: MediaWiki-extensions-WikibaseRepository, Wikidata, 
ValueView.

TASK DESCRIPTION
  The JS frontend needs a service that can provide a human readable label for a 
given vocabulary URI. Such a service is implemented in the backend by 
EntityLabelUnitFormatter combined with a SuffixEntityIdParser.
  
  A vocabulary URI is a URI refering to a concept on the designated vocabulary 
repo. For now, the vocab repo is always the local repo, but in the future, the 
default vocab repo should be Wikidata. Cinceptually, vocab repo need not be 
Wikibase repos, and tehre could be more than one vocab repo.
  
  Implementation options:
  1. The JS frontend code could re-use the label that was already rendered into 
the HTML output by the backend. The unit label could be marked up with a 
special CSS class, or placed in a data attribute.
  2. The FormatValue API module could support formatting of vocabulary URIs. 
This would be achieved by introducing a (pseudo-)data type for vocab URIs 
(using string values). That data type would be somewhat complimentary to the 
proposed "ID" type: IDs would expand to URIs for normalization. Vocab URIs 
would be replaced by labels for display. Conceptually, they are quite similar 
though.
  3. Introduce a new API module for formatting vocab URIs.

TASK DETAIL
  https://phabricator.wikimedia.org/T111172

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: daniel
Cc: daniel, Lydia_Pintscher, Aklapper, thiemowmde, Wikidata-bugs, aude, Malyacko



_______________________________________________
Wikidata-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to