[Wikidata-bugs] [Maniphest] T266960: investigate sharing of query builder queries via URL [timebox: 4h]

2021-01-27 Thread Lydia_Pintscher
Lydia_Pintscher closed subtask T271820: (MS 5) Implement Serialization for 
Query-Builder URL sharing as Resolved.

TASK DETAIL
  https://phabricator.wikimedia.org/T266960

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: guergana.tzatchkova, Lydia_Pintscher
Cc: Jan_Dittrich, Ladsgroup, Addshore, Aklapper, Lydia_Pintscher, Akuckartz, 
Nandana, Lahi, Gq86, GoranSMilovanovic, QZanden, LawExplorer, _jensen, 
rosalieper, Scott_WUaS, Wikidata-bugs, aude, Mbch331
___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] T266960: investigate sharing of query builder queries via URL [timebox: 4h]

2021-01-13 Thread Lydia_Pintscher
Lydia_Pintscher closed this task as "Resolved".

TASK DETAIL
  https://phabricator.wikimedia.org/T266960

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: guergana.tzatchkova, Lydia_Pintscher
Cc: Jan_Dittrich, Ladsgroup, Addshore, Aklapper, Lydia_Pintscher, Akuckartz, 
Nandana, Lahi, Gq86, GoranSMilovanovic, QZanden, LawExplorer, _jensen, 
rosalieper, Scott_WUaS, Wikidata-bugs, aude, Mbch331
___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] T266960: investigate sharing of query builder queries via URL [timebox: 4h]

2021-01-06 Thread Lydia_Pintscher
Lydia_Pintscher moved this task from Wikidata Query Builder - sprint 5 to 
Wikidata Query Builder - sprint 6 on the Wikidata Query Builder board.
Lydia_Pintscher edited projects, added Wikidata Query Builder (Wikidata Query 
Builder - sprint 6); removed Wikidata Query Builder (Wikidata Query Builder - 
sprint 5).

TASK DETAIL
  https://phabricator.wikimedia.org/T266960

WORKBOARD
  https://phabricator.wikimedia.org/project/board/4990/

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: guergana.tzatchkova, Lydia_Pintscher
Cc: Jan_Dittrich, Ladsgroup, Addshore, Aklapper, Lydia_Pintscher, Akuckartz, 
Nandana, Lahi, Gq86, GoranSMilovanovic, QZanden, LawExplorer, _jensen, 
rosalieper, Scott_WUaS, Wikidata-bugs, aude, Mbch331, Manishsamota
___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] T266960: investigate sharing of query builder queries via URL [timebox: 4h]

2020-12-03 Thread Ladsgroup
Ladsgroup added a comment.


  Okay then, I think this investigation is done :)

TASK DETAIL
  https://phabricator.wikimedia.org/T266960

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: guergana.tzatchkova, Ladsgroup
Cc: Jan_Dittrich, Ladsgroup, Addshore, Aklapper, Lydia_Pintscher, Manishsamota, 
Akuckartz, Nandana, Lahi, Gq86, GoranSMilovanovic, QZanden, LawExplorer, 
_jensen, rosalieper, Scott_WUaS, Wikidata-bugs, aude, Mbch331
___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] T266960: investigate sharing of query builder queries via URL [timebox: 4h]

2020-12-01 Thread Jan_Dittrich
Jan_Dittrich added a comment.


  Just a reminder from user research: Participants love a sharing option; the 
problem with storing state in URLs is that the data that the URL can carry was, 
at least for some the handwritten requests, rather limited and people started 
to code-golf their queries.
  
  @Ladsgroup: Vue state is a magic-ified javascript objects as far as I am 
concerned so one can probably URL-encode, URL-decode, JSON-parse and then use 
them in Vue (maybe in some hook or so, not sure exactly where). (The answer is 
clearer for vue3 since they split the reactivity from the main lib and here 
your objects and arrays are reactivized by getting the return of  ref(yourdata) 
or reactive(yourdata))

TASK DETAIL
  https://phabricator.wikimedia.org/T266960

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: guergana.tzatchkova, Jan_Dittrich
Cc: Jan_Dittrich, Ladsgroup, Addshore, Aklapper, Lydia_Pintscher, Manishsamota, 
Akuckartz, Nandana, Lahi, Gq86, GoranSMilovanovic, QZanden, LawExplorer, 
_jensen, rosalieper, Scott_WUaS, Wikidata-bugs, aude, Mbch331
___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] T266960: investigate sharing of query builder queries via URL [timebox: 4h]

2020-12-01 Thread guergana.tzatchkova
guergana.tzatchkova added a comment.


  In T266960#6656740 , 
@Ladsgroup wrote:
  
  > Thanks for this. Quick question, is there an easy way to store/retrieve Vue 
state in URL? Like a library that serialize and unserialize it. That would 
simplify the work a lot.
  
  @Ladsgroup please check: https://phabricator.wikimedia.org/T266960#6651782 , 
the part after the code.

TASK DETAIL
  https://phabricator.wikimedia.org/T266960

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: guergana.tzatchkova
Cc: Ladsgroup, Addshore, Aklapper, Lydia_Pintscher, Manishsamota, Akuckartz, 
Nandana, Lahi, Gq86, GoranSMilovanovic, QZanden, LawExplorer, _jensen, 
rosalieper, Scott_WUaS, Wikidata-bugs, aude, Mbch331
___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] T266960: investigate sharing of query builder queries via URL [timebox: 4h]

2020-11-30 Thread Ladsgroup
Ladsgroup added a comment.


  Thanks for this. Quick question, is there an easy way to store/retrieve Vue 
state in URL? Like a library that serialize and unserialize it. That would 
simplify the work a lot.

TASK DETAIL
  https://phabricator.wikimedia.org/T266960

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: guergana.tzatchkova, Ladsgroup
Cc: Ladsgroup, Addshore, Aklapper, Lydia_Pintscher, Manishsamota, Akuckartz, 
Nandana, Lahi, Gq86, GoranSMilovanovic, QZanden, LawExplorer, _jensen, 
rosalieper, Scott_WUaS, Wikidata-bugs, aude, Mbch331
___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] T266960: investigate sharing of query builder queries via URL [timebox: 4h]

2020-11-30 Thread guergana.tzatchkova
guergana.tzatchkova added a comment.


  Findings:
  
  Both analyzed projects generate a query representation in a query object that 
has (at least) these attributes `variables`, `triples`, `services`, `limit`.

TASK DETAIL
  https://phabricator.wikimedia.org/T266960

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: guergana.tzatchkova
Cc: Addshore, Aklapper, Lydia_Pintscher, Manishsamota, Akuckartz, Nandana, 
Lahi, Gq86, GoranSMilovanovic, QZanden, LawExplorer, _jensen, rosalieper, 
Scott_WUaS, Wikidata-bugs, aude, Mbch331
___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] T266960: investigate sharing of query builder queries via URL [timebox: 4h]

2020-11-30 Thread guergana.tzatchkova
guergana.tzatchkova added a comment.


  The Query Service uses the QueryHelper implementation to generate the GUI of 
the Query.
  
  + QueryHelper
  
  The functions `setQuery` and `getQuery` create the Query from the Visual 
Editor and vice versa.
  
  There is a method to get the i18n labels and put them inside of a span.
  
  The `draw` function creates the elements from the query:
  
  Triples: It extracts the triples and creates a table row for each triple. 
  Limit: there is a getLimitSection
  Variable: there is an isVariable method
  
  + SparqlQuery
  
  is used to separate the query into objects for easier processing of the 
query, some relevant methods are:
  
  getTriples: returns an array with all the triples (only has cases `bgp`, 
`optional` and `union`. 
  findSubqueries: selfexplanatory
  addTriple: adds a triple to the query
  getTripleVariables
  getBoundVariables
  getServices
  getComment: will we use this one? (for comments written in the query. start 
with #)
  
  + QueryTemplate
  
  This codes generates templates if the template code is given as part of the 
query in a comment.
  
  Example:
  
  This query
  
#TEMPLATE={"template":"Presidents of ?country and their 
spouses","variables":{"?country":{"query":" SELECT ?id WHERE { ?id wdt:P31 
wd:Q6256 . }"} } }

SELECT ?p ?pLabel ?ppicture ?w ?wLabel ?wpicture WHERE {
  BIND(wd:Q30 AS ?country)
  ?country (p:P6/ps:P6) ?p.
  ?p wdt:P26 ?w.
  OPTIONAL {
?p wdt:P18 ?ppicture.
?w wdt:P18 ?wpicture.
  }
  SERVICE wikibase:label { bd:serviceParam wikibase:language 
"[AUTO_LANGUAGE],en". }
}
  
  Generates this template:
  
#TEMPLATE={"template":"Presidents of ?country and their 
spouses","variables":{"?country":{"query":" SELECT ?id WHERE { ?id wdt:P31 
wd:Q6256 . }"} } }

SELECT ?p ?pLabel ?ppicture ?w ?wLabel ?wpicture WHERE {
  BIND(wd:Q30 AS ?country)
  ?country (p:P6/ps:P6) ?p.
  ?p wdt:P26 ?w.
  OPTIONAL {
?p wdt:P18 ?ppicture.
?w wdt:P18 ?wpicture.
  }
  SERVICE wikibase:label { bd:serviceParam wikibase:language 
"[AUTO_LANGUAGE],en". }
}
  
  and looks like this: F33929258: image.png 


TASK DETAIL
  https://phabricator.wikimedia.org/T266960

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: guergana.tzatchkova
Cc: Addshore, Aklapper, Lydia_Pintscher, Manishsamota, Akuckartz, Nandana, 
Lahi, Gq86, GoranSMilovanovic, QZanden, LawExplorer, _jensen, rosalieper, 
Scott_WUaS, Wikidata-bugs, aude, Mbch331
___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] T266960: investigate sharing of query builder queries via URL [timebox: 4h]

2020-11-26 Thread guergana.tzatchkova
guergana.tzatchkova added a comment.


  In the Query Service , some of the examples have 
a somewhat incomplete visual representation. Example of rock band names that 
start with the letter M 

  
  Investigation not finished. TODO: check the Query Service's implementation.

TASK DETAIL
  https://phabricator.wikimedia.org/T266960

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: guergana.tzatchkova
Cc: Addshore, Aklapper, Lydia_Pintscher, Akuckartz, Nandana, Lahi, Gq86, 
GoranSMilovanovic, QZanden, LawExplorer, _jensen, rosalieper, Scott_WUaS, 
Wikidata-bugs, aude, Mbch331
___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] T266960: investigate sharing of query builder queries via URL [timebox: 4h]

2020-11-26 Thread guergana.tzatchkova
guergana.tzatchkova added a comment.


  Jakob's Query Builder  shares the 
visual representation of the query in an encoded json. Example of query for 
female mayors 
.
  
  The URL has a query parameter assigned to a json object, the object looks 
like this:
  
{
"statements": {
  "item": {
"item_s_0": {
  "property": {
"id":"P31/wdt:P279*",
"label":"instance of"},
"value":{"id":"Q515",
"label":"city"}
   },
"item_s_1":{
  "property":{
"id":"P6","label":"head of government"},
"value":{
  "object":"item_s_1",
  "id":"X1",
  "label":
  "any item matching..."}
}
 },
 "item_s_1":{
"item_s_1_s_0":{
"property":{
"id":"P21",
"label":"sex or gender"
  },
  "value":{
 "id":"Q6581072",
 "label":"female"
}
  }
}
 },
 "qualifiers":{},
"select":{
"item":{
  "id":true,
  "label":true,
  "properties": [
   {  
"id":"P1082",
 "label":"population"
}
]}},
"limit":""}
  
  The relevant parts of the code where the url is being generated and parsed 
are here: initializeFromUrl 
 method 
and generateShareUrl 
.

TASK DETAIL
  https://phabricator.wikimedia.org/T266960

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: guergana.tzatchkova
Cc: Addshore, Aklapper, Lydia_Pintscher, Akuckartz, Nandana, Lahi, Gq86, 
GoranSMilovanovic, QZanden, LawExplorer, _jensen, rosalieper, Scott_WUaS, 
Wikidata-bugs, aude, Mbch331
___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] T266960: investigate sharing of query builder queries via URL [timebox: 4h]

2020-11-26 Thread Lydia_Pintscher
Lydia_Pintscher added a comment.


  @Addshore it's mainly about how to encode the visual query in the URL so it 
can be shared for example for bug reporting

TASK DETAIL
  https://phabricator.wikimedia.org/T266960

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: guergana.tzatchkova, Lydia_Pintscher
Cc: Addshore, Aklapper, Lydia_Pintscher, Akuckartz, Nandana, Lahi, Gq86, 
GoranSMilovanovic, QZanden, LawExplorer, _jensen, rosalieper, Scott_WUaS, 
Wikidata-bugs, aude, Mbch331
___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] T266960: investigate sharing of query builder queries via URL [timebox: 4h]

2020-11-26 Thread Addshore
Addshore added a comment.


  Came up in the nav summit slightly, I thought the topic was mainly short urls 
but seemingly its just about the urls in the address bar? ;)
  I'll put some links here anyway!
  
  In terms of short URLs:
  
  - We have a URL shortener and the query service is explictly listed as one of 
the things it can be used with 
https://meta.wikimedia.org/wiki/Wikimedia_URL_Shortener#List_of_supported_sites
  - This is powered via an action API endpoint 
https://www.wikidata.org/w/api.php?action=help=shortenurl
  - Already used by the WDQS UI seemingly :)

TASK DETAIL
  https://phabricator.wikimedia.org/T266960

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: guergana.tzatchkova, Addshore
Cc: Addshore, Aklapper, Lydia_Pintscher, Akuckartz, Nandana, Lahi, Gq86, 
GoranSMilovanovic, QZanden, LawExplorer, _jensen, rosalieper, Scott_WUaS, 
Wikidata-bugs, aude, Mbch331
___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] T266960: investigate sharing of query builder queries via URL [timebox: 4h]

2020-11-26 Thread guergana.tzatchkova
guergana.tzatchkova claimed this task.

TASK DETAIL
  https://phabricator.wikimedia.org/T266960

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: guergana.tzatchkova
Cc: Aklapper, Lydia_Pintscher, Akuckartz, Nandana, Lahi, Gq86, 
GoranSMilovanovic, QZanden, LawExplorer, _jensen, rosalieper, Scott_WUaS, 
Wikidata-bugs, aude, Mbch331
___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] T266960: investigate sharing of query builder queries via URL [timebox: 4h]

2020-11-25 Thread Lydia_Pintscher
Lydia_Pintscher moved this task from Ready to pick up to Wikidata Query Builder 
- sprint 5 on the Wikidata Query Builder board.
Lydia_Pintscher edited projects, added Wikidata Query Builder (Wikidata Query 
Builder - sprint 5); removed Wikidata Query Builder.

TASK DETAIL
  https://phabricator.wikimedia.org/T266960

WORKBOARD
  https://phabricator.wikimedia.org/project/board/4990/

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Lydia_Pintscher
Cc: Aklapper, Lydia_Pintscher, Akuckartz, Nandana, Lahi, Gq86, 
GoranSMilovanovic, QZanden, LawExplorer, _jensen, rosalieper, Scott_WUaS, 
Wikidata-bugs, aude, Mbch331
___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] T266960: investigate sharing of query builder queries via URL [timebox: 4h]

2020-11-20 Thread Lydia_Pintscher
Lydia_Pintscher renamed this task from "investigate sharing of query builder 
queries via URL" to "investigate sharing of query builder queries via URL 
[timebox: 4h]".

TASK DETAIL
  https://phabricator.wikimedia.org/T266960

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Lydia_Pintscher
Cc: Aklapper, Lydia_Pintscher, Akuckartz, Nandana, Lahi, Gq86, 
GoranSMilovanovic, QZanden, LawExplorer, _jensen, rosalieper, Scott_WUaS, 
Wikidata-bugs, aude, Mbch331
___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] T266960: investigate sharing of query builder queries via URL

2020-11-02 Thread DannyS712
DannyS712 removed a parent task: T267016: Plan for november meeting with 
Göteborgs museer.

TASK DETAIL
  https://phabricator.wikimedia.org/T266960

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: DannyS712
Cc: Aklapper, Lydia_Pintscher, Akuckartz, Nandana, Lahi, Gq86, 
GoranSMilovanovic, QZanden, LawExplorer, _jensen, rosalieper, Scott_WUaS, 
Wikidata-bugs, aude, Mbch331
___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] T266960: investigate sharing of query builder queries via URL

2020-11-02 Thread Hermann
Hermann added a parent task: T267016: Plan for november meeting with Göteborgs 
museer.

TASK DETAIL
  https://phabricator.wikimedia.org/T266960

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Hermann
Cc: Aklapper, Lydia_Pintscher, Akuckartz, Nandana, Lahi, Gq86, 
GoranSMilovanovic, QZanden, LawExplorer, _jensen, rosalieper, Scott_WUaS, 
Wikidata-bugs, aude, Mbch331
___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] T266960: investigate sharing of query builder queries via URL

2020-11-01 Thread Lydia_Pintscher
Lydia_Pintscher created this task.
Lydia_Pintscher added projects: Wikidata Query Builder, Wikidata.
Restricted Application added a subscriber: Aklapper.

TASK DESCRIPTION
  **Problem:**
  People share queries a lot. In the Query Service we enable this ba encoding 
the query in the URL. We need to have something similar for the Query Builder 
where we can encode specific visual queries in the URL. We need to figure out 
how to do this.
  
  **Existing things worth looking at:**
  
  - Wikidata Query Service
  - Jakob's query builder
  
  **Acceptance criteria:**
  
  [ ] we understand the way forward for sharing visual queries via URL
  [ ] we have tickets describing the next steps

TASK DETAIL
  https://phabricator.wikimedia.org/T266960

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Lydia_Pintscher
Cc: Aklapper, Lydia_Pintscher, Akuckartz, Nandana, Lahi, Gq86, 
GoranSMilovanovic, QZanden, LawExplorer, _jensen, rosalieper, Scott_WUaS, 
Wikidata-bugs, aude, Mbch331
___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs