[Wikidata-bugs] [Maniphest] [Commented On] T99899: [Story] Allow looking up Entities by external identifiers.
thiemowmde added a comment. Thanks for the merge, @Jarekt. I believe we can do this. Our current plan is to create an inverse index from all "external-id" values to the entity ID they appear in. Note that not even "external-id" values are technically limited to be unique, so this index must consider duplicates. Considering this, I believe we can add all "string" properties to the same index and not run into any problems (as long as all queries on this index always include a specific property ID). This would solve the "Commons category" task. Querying by sitelink is a different task and should be discussed separately.TASK DETAILhttps://phabricator.wikimedia.org/T99899EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: thiemowmdeCc: hoo, Jarekt, Multichill, Acer, Liuxinyu970226, Agabi10, -jem-, thiemowmde, Magnus, Jane023, Spage, Smalyshev, Bene, Ricordisamoa, Addshore, jeremyb, Aklapper, daniel, D3r1ck01, Izno, Wikidata-bugs, aude, Mbch331___ Wikidata-bugs mailing list Wikidata-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs
[Wikidata-bugs] [Maniphest] [Commented On] T99899: [Story] Allow looking up Entities by external identifiers.
Magnus added a comment. Update: resolver now uses SPARQL instead of WDQ. Also, quick prefix system added (resolving property from English name fragment via SPARQL). https://tools.wmflabs.org/wikidata-todo/resolver.php TASK DETAIL https://phabricator.wikimedia.org/T99899 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Magnus Cc: -jem-, thiemowmde, Magnus, Jane023, Spage, Smalyshev, Bene, Ricordisamoa, Addshore, jeremyb, Aklapper, daniel, D3r1ck01, Izno, Wikidata-bugs, aude, Mbch331 ___ Wikidata-bugs mailing list Wikidata-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs
[Wikidata-bugs] [Maniphest] [Commented On] T99899: [Story] Allow looking up Entities by external identifiers.
thiemowmde added a subscriber: thiemowmde. thiemowmde added a comment. Can we also hardcode some standard, quasi-standard and widely used prefixes, e.g. searching for "isbn:1234567890123"? TASK DETAIL https://phabricator.wikimedia.org/T99899 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: thiemowmde Cc: thiemowmde, Magnus, Jane023, Spage, Smalyshev, Bene, Ricordisamoa, Addshore, jeremyb, Aklapper, daniel, Wikidata-bugs, aude, Mbch331 ___ Wikidata-bugs mailing list Wikidata-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs
[Wikidata-bugs] [Maniphest] [Commented On] T99899: [Story] Allow looking up Entities by external identifiers.
Magnus added a subscriber: Magnus. Magnus added a comment. https://tools.wmflabs.org/wikidata-todo/resolver.php TASK DETAIL https://phabricator.wikimedia.org/T99899 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Magnus Cc: Magnus, Jane023, Spage, Smalyshev, Bene, Ricordisamoa, Addshore, jeremyb, Aklapper, daniel, Wikidata-bugs, aude, Mbch331 ___ Wikidata-bugs mailing list Wikidata-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs
[Wikidata-bugs] [Maniphest] [Commented On] T99899: [Story] Allow looking up Entities by external identifiers.
daniel added a comment. One option to implement this would be via integration with Cirrus. This was roughly outlined during a discussion with Stas, Jan, and David. Here is an excerpt from my notes from that session: Property Search and SiteLink Search Goal: allow searches for property values, e.g. `property:P212:978-2-07-027437-6`. Similarly, allow searches for sitelinks, e.g. `sitelink:enwiki:Foo`. Outline: - one field for property, one field for sitelink - populated with key value pairs as concatenated strings, e.g. `P212:978-2-07-027437-6` or `enwiki:Foo`. - only consider exact matches Needs: - an extension point for parsing the special syntax from the search box input - an extension point for defining the relevant fields - an extension point for feeding data to the relevant fields upon save / re-index TASK DETAIL https://phabricator.wikimedia.org/T99899 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: daniel Cc: Jane023, Spage, Smalyshev, Bene, Ricordisamoa, Addshore, jeremyb, Aklapper, daniel, Wikidata-bugs, aude, Mbch331 ___ Wikidata-bugs mailing list Wikidata-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs