| Cparle updated the task description. (Show Details) |
CHANGES TO TASK DESCRIPTION
The deepcat feature uses WDQS with elasticsearch, so we could base our approach on the deepcat code (see https://gerrit.wikimedia.org/r/#/c/405059/)
Option 2 seems (to me) to be more practically useful3
Store the data in a special data structure in elasticsearch. The deepcat feature uses WDQS with elasticsearchThis would take a bit of speccing-out, so we could base our approach on the deepcatand the we'd need to write specific code (see https://gerrit.wikimedia.org/r/#/c/405059/)for only this qualifier, which would be tricky
Note that there are currently **1025** items in wikidata that have a 'depicts' statement with a 'quantity' qualifier
...
I can think of 23 different options for implementing searching on quantity...
Use the Wikidata Query Service (WDQS) to run a SPARQL query (which allows operators like `>` and `<`), and then use the ids as a filter for an elasticsearch query - basically we'd ask WDQS for all pictures depicting 'cat' with quantity qualifier >1, then search elasticsearch for anything else we wanted to search for but only among the (max 1000) IDs we got from WDQS.The deepcat feature uses WDQS with elasticsearch, so we could base our approach on the deepcat code (see https://gerrit.wikimedia.org/r/#/c/405059/)
Option 2 seems (to me) to be more practically useful3
Store the data in a special data structure in elasticsearch. The deepcat feature uses WDQS with elasticsearchThis would take a bit of speccing-out, so we could base our approach on the deepcatand the we'd need to write specific code (see https://gerrit.wikimedia.org/r/#/c/405059/)for only this qualifier, which would be tricky
Note that there are currently **1025** items in wikidata that have a 'depicts' statement with a 'quantity' qualifier
TASK DETAIL
EMAIL PREFERENCES
To: Cparle
Cc: Aklapper, Ramsey-WMF, Cparle, Lahi, PDrouin-WMF, Gq86, E1presidente, SandraF_WMF, GoranSMilovanovic, QZanden, EBjune, Tramullas, Acer, V4switch, LawExplorer, Susannaanas, Wong128hk, Aschroet, Jane023, Wikidata-bugs, PKM, Base, matthiasmullie, aude, Ricordisamoa, Lydia_Pintscher, Fabrice_Florin, Raymond, Steinsplitter, Matanya, Mbch331
Cc: Aklapper, Ramsey-WMF, Cparle, Lahi, PDrouin-WMF, Gq86, E1presidente, SandraF_WMF, GoranSMilovanovic, QZanden, EBjune, Tramullas, Acer, V4switch, LawExplorer, Susannaanas, Wong128hk, Aschroet, Jane023, Wikidata-bugs, PKM, Base, matthiasmullie, aude, Ricordisamoa, Lydia_Pintscher, Fabrice_Florin, Raymond, Steinsplitter, Matanya, Mbch331
_______________________________________________ Wikidata-bugs mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs
