Pastakhov created this task.
Pastakhov added projects: Wikidata, Wikidata-Query-Service.
Herald added subscribers: Zppix, Aklapper.
Herald added a project: Discovery.

TASK DESCRIPTION

As you know, Blazegraph updater makes request to Special:EntityData and gets data of entity in RDF/Turtle formats.
One of prefixes is wdata which looks like:

@prefix wdata: <https://www.wikidata.org/wiki/Special:EntityData/> .

And Blazegraph updater expects it in this form (link to source):

public WikibaseUris(String host) {
        root = "http://" + host;
        rootHttps = "https://" + host;
        entityData = root + "/wiki/Special:EntityData/";
        entityDataHttps = rootHttps + "/wiki/Special:EntityData/";
....

Problem is: Mediawiki core (Title->getCanonicalURL()) makes all links in content language which defined in $wgLanguageCode, and on site when (for example) $wgLanguageCode defined to 'ru', wdata prefix looks like:

@prefix wdata: <https://www.example.com/wiki/%D0%A1%D0%BB%D1%83%D0%B6%D0%B5%D0%B1%D0%BD%D0%B0%D1%8F:EntityData/> .

Point to WikibaseRepo.php source where the link is made ($entityDataTitle->getCanonicalURL()).

$entityDataTitle = Title::makeTitle( NS_SPECIAL, 'EntityData' );

$this->rdfVocabulary = new RdfVocabulary(
				$this->getVocabularyBaseUri(),
				$entityDataTitle->getCanonicalURL() . '/',
				$languageCodes,
				$this->dataTypeDefinitions->getRdfTypeUris()
			);

I think Special:EntityData should use English content language for making links, but I can't find easy and true way to do it.
Seems that this behavior is hard-coded in core and cannot be easy changed.


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

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

To: Pastakhov
Cc: Aklapper, Pastakhov, Zppix, Avner, debt, Gehel, D3r1ck01, Jonas, FloNight, Xmlizer, Izno, jkroll, Smalyshev, Wikidata-bugs, Jdouglas, aude, Deskana, Manybubbles, Mbch331
_______________________________________________
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to