Page MenuHomePhabricator

Lexeme-Lexeme backlink function
Open, Needs TriagePublicFeature

Description

Feature summary :
I think we need a built-in Wikifunctions function that gives us the lexemes (references) that link to a lexeme. Similar to how Z6830 gives us the LIDs that link to a QID.

Use case(s):
I'm trying to make a composition for Z32822 that uses Lexeme data. Test Z38852 is a challenging example. Starting from Q35 we can get to L252308 or L34527 using Z6830, but I need L252311 which rightly doesn't link to the original item, it links to L252308 but we have no way of getting lexeme backlinks.

Benefits:
Even the immediate function of interest will become fairly important (at the moment we get things like "Douglas Adams is an Englishman author.") But a general Lexeme-Lexeme backlink function will surely be generally useful in navigating L-space.

Event Timeline

Jdforrester-WMF subscribed.

Note: Z6830 calls a bespoke API call that was built for us.

L252311 doesn't seem to have any modelling at all on it that would programmatically tell a Function that it's the adjectival form of L34527, just that L32721 is a homograph. What would we be actually querying for?

Yes, I'm probably asking for another bespoke API. I understand this will take work, but if we want to be all about lexemes, we really will need this capability.

L34527 is a tangent here, don't worry about that one. (Even if you think that's where L252311 should point to, we have the same issue: the modelling would be on the destination lexeme L252311, so we need a "backlink".)

The example path we have already modelled and I'd like to be able to query is Q35 to L252308 to L252311.

The first step is already achieved with Z6830 (Q35, P:5137, English) and subsequent filtering = L252308.

The second step could be achieved similarly using Z_new_built-in Find lexemes for a lexeme ( L252308, P:8471, language-not-required?) = [L252311]. Bingo!