query-539df8518a0671182cc10fbfbfc8709e

rq turtle/ttl

]reply[13:59, 26 May 2017 (UTC)) talk (Whidou--]reply[06:15, 27 May 2017 (UTC)) talk (Edgars2007Note, that your query doesn't find all ?artist (only with the best rank); at least, it shouldn't. --Before starting to work on this task (if it will be approved), please collect few more descriptions in dictionary. Add the Romanian description, please: "{}"album de :"ro" XXN15:20, 28 May 2017 (UTC)]reply[]reply[15:20, 28 May 2017 (UTC), XXN. [1]; seems that the bot is not able yet to handle such situations(Q113189)Let's Dance There exists albums with multiple performers, e.g.: two edits, and they could be much more. IMO, it is important to not clutter the item history with 10-20 consecutive edits doing the same thing.hereWhen itearating through items could you do all needed verifications and then to add all descriptions in a single edit? I noticed accordingly: WhidouBot: Thank you for your suggestions. I took them into account and upgraded XXN, Edgars2007@Romanian and Japanese descriptions are now included. All descriptions are added in a single edit. are now skipped.(P175)performer with multiple (Q482994)album Here is what the new queries look like:

Use at

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX schema: <http://schema.org/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT DISTINCT ?album ?artist WHERE
{
  {
    SELECT ?album ( COUNT(DISTINCT ?artist ) as ?nArtists ) WHERE
    {
        ?album wdt:P31 wd:Q482994 .
        ?album wdt:P175 ?artist .

        MINUS
        {
            ?album schema:description ?description .
            FILTER( LANG( ?description ) = "fr" ) .
        }
    }
    GROUP BY ?album
    HAVING(?nArtists = 1)
  }

  ?album wdt:P175 ?artist .
  ?artist rdfs:label ?artistLabel .
  FILTER( LANG( ?artistLabel ) = "fr" ) .
}
LIMIT 100

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v3("?album"):::projected v4("?artist"):::projected v1("?artistLabel") v5("?description") v6("?nArtists") c4(["wd:Q482994"]):::iri f0[["?artistLabel = 'fr'"]] f0 --> v1 f1[["?nArtists = '1^^xsd:integer'"]] f1 --> v6 v3 --"wdt:P31"--> c4 v3 --"wdt:P175"--> v4 subgraph minus2["MINUS"] style minus2 stroke-width:6px,fill:pink,stroke:red; f3[["?description = 'fr'"]] f3 --> v5 v3 --"schema:description"--> v5 end bind5[/"count(?artist)"/] v4 --o bind5 bind5 --as--o v6 v3 --"wdt:P175"--> v4 v4 --"rdfs:label"--> v1