Page MenuHomePhabricator

put a link to the entity's concept URI into the toolbox
Closed, ResolvedPublic

Description


Version: master
Severity: minor
See Also:
https://bugzilla.wikimedia.org/show_bug.cgi?id=64515

Details

Reference
bz54275

Event Timeline

bzimport raised the priority of this task from to Low.Nov 22 2014, 1:57 AM
bzimport set Reference to bz54275.
bzimport added a subscriber: Unknown Object (MLST).

So, on the page about Q17, there would be a link in the toolbox to http://www.wikidata.org/entity/Q17

karandev43 wrote:

I could not find the page. Please help me.

Karan: I don't know what you tried and which "page" you could not find. Please provide clear and explicit steps. If you have a specific question, ask it (also see http://catb.org/~esr/faqs/smart-questions.html ). Thanks!

Would WikibaseRepo::getDefaultInstance()->getRdfBaseURI() . $title->getPrefixedText() be the right way to generate this URI?

No. The mediawiki namespace is not part of the canonical URI, so please use $title->getDBKey() instead of $title->getPrefixedText(). That should work for now, though it's not really nice.

Ideally, the URI would be generated from an EntityId, not from a Title object. That would require us to put the entity id into ParserOutput (using setExtensionData), and then copy it over to the OutputPage (using setProperty), using the appropriate hooks... If you want to look into that too, great :)

Change 148376 had a related patch set uploaded by Alex Monk:
Put a link to the entity's canonical URI in the toolbox

https://gerrit.wikimedia.org/r/148376

Change 148376 merged by jenkins-bot:
Put a link to the entity's concept URI in the toolbox

https://gerrit.wikimedia.org/r/148376