Page MenuHomePhabricator
Paste P10913

(An Untitled Masterwork)
ActivePublic

Authored by Addshore on Apr 6 2020, 3:00 PM.
\Wikibase\Repo\WikibaseRepo::getDefaultInstance()->getLocalEntitySource();
\Wikibase\Repo\WikibaseRepo::getDefaultInstance()->getLocalEntitySource()->getConceptBaseUri();
\Wikibase\Repo\WikibaseRepo::getDefaultInstance()->getLocalEntitySource()->getRdfNodeNamespacePrefix();
\Wikibase\Repo\WikibaseRepo::getDefaultInstance()->getLocalEntitySource()->getRdfPredicateNamespacePrefix();
\Wikibase\Repo\WikibaseRepo::getDefaultInstance()->getLocalEntitySource()->getInterwikiPrefix();
\Wikibase\Repo\WikibaseRepo::getDefaultInstance()->getLocalEntitySource()->getEntityNamespaceIds();
\Wikibase\Repo\WikibaseRepo::getDefaultInstance()->getLocalEntitySource()->getDatabaseName();
$c = \Wikibase\Client\WikibaseClient::getDefaultInstance();
$reflectionMethod = new ReflectionMethod(\Wikibase\Client\WikibaseClient::class, 'getEntitySourceOfLocalRepo');
$reflectionMethod->setAccessible (true);
$source = $reflectionMethod->invoke($c);
$source->getConceptBaseUri();
$source->getRdfNodeNamespacePrefix();
$source->getRdfPredicateNamespacePrefix();
$source->getInterwikiPrefix();
$source->getEntityNamespaceIds();
$source->getDatabaseName();