[Wikidata-bugs] [Maniphest] [Edited] T194245: Implement searching of 'depicts' on commons with the 'quantity' qualifier

2018-05-14 Thread Cparle
Cparle updated the task description. (Show Details) CHANGES TO TASK DESCRIPTION...Example from wikidata https://www.wikidata.org/wiki/Q1195035 (see depicts > human > quantity, etc) We want users to be able to include quantities in their searches - for example to find images depicting >10 people

[Wikidata-bugs] [Maniphest] [Edited] T194245: Implement searching of 'depicts' on commons with the 'quantity' qualifier

2018-05-11 Thread Cparle
Cparle updated the task description. (Show Details) CHANGES TO TASK DESCRIPTION...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

[Wikidata-bugs] [Maniphest] [Edited] T194245: Implement searching of 'depicts' on commons with the 'quantity' qualifier

2018-05-11 Thread Cparle
Cparle updated the task description. (Show Details) CHANGES TO TASK DESCRIPTION...Note that there are currently **1025** items in wikidata that have a 'depicts' statement with a 'quantity' qualifier out of a total of ~70k items with depicts statements (~0.2%~1.5%)TASK

[Wikidata-bugs] [Maniphest] [Edited] T194245: Implement searching of 'depicts' on commons with the 'quantity' qualifier

2018-05-11 Thread Cparle
Cparle updated the task description. (Show Details) CHANGES TO TASK DESCRIPTION...Note that there are currently **1025** items in wikidata that have a 'depicts' statement with a 'quantity' qualifier out of a total of ~70k items with depicts statements (~0.2%)TASK

[Wikidata-bugs] [Maniphest] [Edited] T194245: Implement searching of 'depicts' on commons with the 'quantity' qualifier

2018-05-10 Thread Cparle
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/) This option depends on T194401 - Note that there are

[Wikidata-bugs] [Maniphest] [Edited] T194245: Implement searching of 'depicts' on commons with the 'quantity' qualifier

2018-05-10 Thread Cparle
Cparle updated the task description. (Show Details) CHANGES TO TASK DESCRIPTION...Store the data in a special data structure in elasticsearch. This would take a bit of speccing-out, and the we'd need to write specific code for only this qualifiern individual numeric field in elasticsearch, which

[Wikidata-bugs] [Maniphest] [Edited] T194245: Implement searching of 'depicts' on commons with the 'quantity' qualifier

2018-05-10 Thread Cparle
Cparle updated the task description. (Show Details) CHANGES TO TASK DESCRIPTION...Store the data in a special data structure in elasticsearch. This would take a bit of speccing-out, and the we'd need to write specific code for only this qualifier, which would be tricky ... also elasticsearch is

[Wikidata-bugs] [Maniphest] [Edited] T194245: Implement searching of 'depicts' on commons with the 'quantity' qualifier

2018-05-10 Thread Cparle
Cparle updated the task description. (Show Details) CHANGES TO TASK DESCRIPTION...Option 23 UsStore the Wikidata Query Service (WDQS) to run a SPARQL query (which allows operators like `>` and `<`)in a special data structure in elasticsearch. This would take a bit of speccing-out, and then use the

[Wikidata-bugs] [Maniphest] [Edited] T194245: Implement searching of 'depicts' on commons with the 'quantity' qualifier

2018-05-10 Thread Cparle
Cparle updated the task description. (Show Details) CHANGES TO TASK DESCRIPTION...Option 32 Store the data in a special data structure in elasticsearch. This would take a bit of speccing-out, and the we'd need to write specific code for only this qualifier, which would be tricky...TASK

[Wikidata-bugs] [Maniphest] [Edited] T194245: Implement searching of 'depicts' on commons with the 'quantity' qualifier

2018-05-09 Thread Cparle
Cparle updated the task description. (Show Details) CHANGES TO TASK DESCRIPTION...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

[Wikidata-bugs] [Maniphest] [Edited] T194245: Implement searching of 'depicts' on commons with the 'quantity' qualifier

2018-05-09 Thread Cparle
Cparle updated the task description. (Show Details) CHANGES TO TASK DESCRIPTION...Note that there are currently **1219** depicts statements in wikidata**1025** items in wikidata that have a 'depicts' statement with a 'quantity' qualifierTASK DETAILhttps://phabricator.wikimedia.org/T194245EMAIL

[Wikidata-bugs] [Maniphest] [Edited] T194245: Implement searching of 'depicts' on commons with the 'quantity' qualifier

2018-05-09 Thread Cparle
Cparle updated the task description. (Show Details) CHANGES TO TASK DESCRIPTION...Option 2 seems (to me) to be more practically useful. 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/) Note that

[Wikidata-bugs] [Maniphest] [Edited] T194245: Implement searching of 'depicts' on commons with the 'quantity' qualifier

2018-05-09 Thread Cparle
Cparle updated the task description. (Show Details) CHANGES TO TASK DESCRIPTION...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