Wikibase
MediaWiki Wikibase extension
|
A dedicated formatter for concept URIs referring to entities on a vocabulary repository. More...
Public Member Functions | |
__construct (EntityIdParser $vocabUriParser, LabelDescriptionLookup $labelLookup, array $unitlessUnitIds=[]) | |
format ( $conceptUri) | |
Private Attributes | |
$vocabUriParser | |
$labelLookup | |
$unitlessUnitIds | |
A dedicated formatter for concept URIs referring to entities on a vocabulary repository.
Wikibase\Lib\Formatters\VocabularyUriFormatter::__construct | ( | EntityIdParser | $vocabUriParser, |
LabelDescriptionLookup | $labelLookup, | ||
array | $unitlessUnitIds = [] ) |
EntityIdParser | $vocabUriParser | |
LabelDescriptionLookup | $labelLookup | |
string[] | $unitlessUnitIds | A list of IDs that represent the "unitless" unit (one), e.g. "http://www.wikidata.org/entity/Q199". The strings "" and "1" are always treated as "non-units". |
Wikibase\Lib\Formatters\VocabularyUriFormatter::format | ( | $conceptUri | ) |
string | $conceptUri |
InvalidArgumentException |
|
private |
|
private |
|
private |