User:Pmartinolli/UnderMyWatch

Les éléments Wikidata que je cultive et que je surveille. The Wikidata items I am cultivating and warding.

Outils

edit

Vérifier un item

edit
SELECT ?node ?property WHERE {?node ?property wd:Q3572699 }
Try it!

lister des éléments dont on a l'inventaire

edit
SELECT ?item ?itemLabel ?var ?varLabel  WHERE {
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
  VALUES ?item { wd:Q100605401  #liste des éléments
  ...
  wd:Q3289329 }  
  OPTIONAL { ?item wdt:P21 ?var. } 
}
Try it!

Count

edit
SELECT (COUNT(*) AS ?count) WHERE {  ?item wdt:P31 wd:Q5 .}
Try it!


Count all property Has Quality is used in all Literary Works

edit
SELECT  ?hasquality ?hasqualityLabel 
(COUNT(DISTINCT ?item) AS ?counting) 
WHERE {
  ?item p:P31/ps:P31/wdt:P279* wd:Q7725634 .   # instance of this class or of any of its sub-classes, sub-sub-classes...
  ?item wdt:P1552 ?hasquality .
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
} GROUP BY ?hasquality ?hasqualityLabel
  ORDER BY DESC(?counting)
Try it!

Input = List of DOI; Output = QID+label+desc

edit

Perfect to prepare reconciliation of Published in with OpenRefine.

SELECT ?item ?doi ?itemLabel ?itemDescription ?published_inLabel WHERE {
  VALUES ?doi { '10.1126/SCIENCE.156.3775.636' 
                '10.1145/358027.358042' }
  ?item wdt:P356 ?doi .
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
  OPTIONAL { ?item wdt:P1433 ?published_in. } 
}
Try it!

Lister tous les articles universitaires contenant un mot clé

edit

(ici gamification) dans le titre/label (by Matthias Winkelmann)

SELECT DISTINCT ?item ?label ?subject 
WHERE
{
  SERVICE wikibase:mwapi
  {
    bd:serviceParam wikibase:endpoint "www.wikidata.org";
                    wikibase:api "Generator";
                    mwapi:generator "search";
                    mwapi:gsrsearch "inlabel:gamification"@en;
                    mwapi:gsrlimit "max".
    ?item wikibase:apiOutputItem mwapi:title.
  }
  ?item rdfs:label ?label. FILTER( LANG(?label)="en" )
  #more restriction here 
  ?item wdt:P31 wd:Q13442814 .
  OPTIONAL { ?item wdt:P921 ?subject}
}
Try it!

Déjà fait en 2022 : predatory publishers, gamification, Wikidata, Harry Potter, ORCID, Jin Yong, Cthulhu, Lovecraft, MeSH, Zotero, Charles Darwin, concordance+script

En cours : thesaurus Q17152639 / plagiarism (! différent de cryptomnesia Q1790393) / bibliometric-s (method or topic), gerontology+geriatrics

Dédoublonner dans Calc (pour préparer le CSV pour QS) : Sélectionnez la colonne à dé-doublonner. Dans le menu, allez dans : Données > Filtre > Filtre standard. Dans « nom de champ » indiquer  » aucun ». Cliquez sur le bouton « Options ». Cochez uniquement la case « sans doublons ».

Filtrer selon un mot : Données > Plus de Filtres > Standard : contient / respecter la casse.

Institutions de la francophonie

edit

Quickstatement : P2650 (interested in), P2541 (operating area), P1269 (facet of), P1001 (apply to jur.), P921 (main subject), P101 (field of work) == Q1003588 (Francophonie)

Ex: Acfas = Q2867705

qid,P2650,P2541,P1269,P1001,P921,P101

Q2867705,Q1003588,Q1003588,Q1003588,Q1003588,Q1003588,Q1003588

Valeurs manquantes

edit
SELECT ?item ?itemLabel WHERE {
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
  ?item wdt:P31 wd:Q1643932.
  FILTER NOT EXISTS { ?item wdt:P577 ?val }
}
LIMIT 100
Try it!

Articles en français sans Published in :

SELECT ?item ?itemLabel ?url WHERE {
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
  ?item wdt:P31 wd:Q13442814.  # scholarly article
  ?item wdt:P953 ?url.
  ?item wdt:P407 wd:Q150.      # en francais
  FILTER NOT EXISTS { ?item wdt:P1433 ?val }
  #FILTER(CONTAINS(LCASE(?itemDescription), "plosone"))
}
LIMIT 1000
Try it!

Articles en anglais sans Published in :

SELECT ?item ?url WHERE {
  ?item wdt:P31 wd:Q13442814.
  FILTER NOT EXISTS { ?item wdt:P1433 ?val }
  ?item wdt:P953 ?url.
  ?item wdt:P407 wd:Q1860.      # english
}
LIMIT 10000
Try it!

List all qualifiers

edit

For Nature of statement (P5102)

edit

Circonstances qualitatives sous-jacentes de cette déclaration (par ex. : officiel, controversé, hypothèse, etc.)

liste

For Sourcing circumstances (P1480)

edit

Qualité de la source de l'information.

liste

Report the items that match a group of Wikipedia pages

edit

By Andrew

SELECT ?item ?itemLabel ?_articleEN ?pagename where {
  values ?pagename { "Fish"@en "Chocolate"@en "Fish (disambiguation)"@en "Wikipedia:Notability"@en }
  ?_articleEN schema:about ?item. ?_articleEN schema:isPartOf <https://en.wikipedia.org/>.
  ?_articleEN schema:name ?pagename
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en,nl". }
}
Try it!

Tabletop role-playing games

edit
SELECT ?node ?property WHERE {{?node ?property wd:Q1643932} 
                              UNION {?node ?property wd:Q2164067} 
                              UNION {?node ?property wd:Q71631512}
                              UNION {?node ?property wd:Q4418079}
                              UNION {?node ?property wd:Q2608176}
                              UNION {?node ?property wd:Q54845077}
                              UNION {?node ?property wd:Q100271038}}
Try it!

Eileen Chang

edit
SELECT ?node ?property WHERE {?node ?property wd:Q197155}
Try it!

UdeM

edit
SELECT ?node ?property WHERE {?node ?property wd:Q392189}
Try it!


Financements de recherche (Canada)

edit
SELECT DISTINCT ?item ?itemLabel WHERE {
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
  {?item wdt:P31 wd:Q188823.} #scholarship 
  UNION
  {?item wdt:P31 wd:Q5509032} #funding body 
  ?item (wdt:P17|wdt:P1001)/wdt:P131* wd:Q16.
}
Try it!


Tous les éléments liés aux autodafés et destructions par le feu de livres

edit
SELECT ?node ?property WHERE {?node ?property wd:Q22702 }
Try it!


Sur le massacre de Nanjing

edit
SELECT ?node ?property WHERE {{?node ?property wd:Q192055} 
                              UNION {?node ?property wd:Q712826} 
                              UNION {?node ?property wd:Q111772550}
                              UNION {?node ?property wd:Q320680}
                              UNION {?node ?property wd:Q716283}
                              UNION {?node ?property wd:Q701180}
                              UNION {?node ?property wd:Q3138389}
                              UNION {?node ?property wd:Q16237488}
                              UNION {?node ?property wd:Q14386802}
                              UNION {?node ?property wd:Q6392164}
                              UNION {?node ?property wd:Q4774135}}
Try it!

Toutes les œuvres (et sous-classes) à propos de la famine (et thèmes associés)

edit
SELECT DISTINCT ?item ?itemLabel WHERE {
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
  ?item wdt:P31/wdt:P279* wd:Q17537576.
  VALUES ?starv { wd:Q853930 wd:Q168247 wd:Q165947 wd:Q2964234 wd:Q165058}
  ?item wdt:P921 ?starv.
}
Try it!

Documents sur la phylomémétique

edit
SELECT ?item ?itemLabel WHERE {
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
  ?item wdt:P921 wd:Q113406449.
}
Try it!


Alignement des données de Project Gutenberg

edit

Lister tous les identifiants présents (P2034)

SELECT * WHERE {
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
  OPTIONAL { ?item wdt:P2034 ?Project_Gutenberg_ebook_ID. }
}
Try it!


mixNMatch