Page MenuHomePhabricator

Create wdqs-main and wdqs-scholarly specific test queries
Closed, ResolvedPublic2 Estimated Story Points

Description

Many of the test queries used in pre-graph-split wdqs won't be relevant on scholarly or (possibly) main. We should audit the existing test queries and come up with specific examples for each graph split type.

A query for testing wdqs-main:

select ?paper ?type {
  VALUES (?author) {(wd:Q1042470)} 
  SERVICE wdsubgraph:scholarly_articles {
    ?paper wdt:P50 ?author ;
           wdt:P31 ?type
  }
} LIMIT 10

A query for testing wdqs-scholarly

select ?paper ?type ?firstname ?lastname {
  VALUES (?author) {(wd:Q1042470)}
  ?paper wdt:P50 ?author ;
         wdt:P31 ?type
  SERVICE wdsubgraph:wikidata_main {
    ?author wdt:P735 ?firstname ;
            wdt:P734 ?lastname
  }
} LIMIT 10

Details

Related Changes in Gerrit:

Event Timeline

Gehel renamed this task from Create wdqs-main and wdqs-scholarly specific example queries to Create wdqs-main and wdqs-scholarly specific test queries.Sep 2 2024, 3:29 PM
Gehel updated the task description. (Show Details)
Gehel set the point value for this task to 2.Sep 2 2024, 3:33 PM

Change #1073737 had a related patch set uploaded (by DCausse; author: DCausse):

[wikidata/query/rdf@master] Add tests query for split graph hosts

https://gerrit.wikimedia.org/r/1073737

Change #1073737 merged by jenkins-bot:

[wikidata/query/rdf@master] Add tests query for split graph hosts

https://gerrit.wikimedia.org/r/1073737