Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upEstablish a mechanism to track wiki pages that do not have Template:Scholia but should #781
Comments
Daniel-Mietchen
added
outreach
Template:Scholia
labels
Jul 6, 2019
Daniel-Mietchen
added this to To do
in Meta
via automation
Jul 6, 2019
Daniel-Mietchen
added this to To do
in 6. Improving documentation of corpus, code, queries, workflows, examples and related resources, as well as limits of Scholia
via automation
Jul 6, 2019
Daniel-Mietchen
added this to To do
in 8. integrate access to Scholia into Wikipedia articles and elsewhere
via automation
Jul 6, 2019
Daniel-Mietchen
added this to the Wikimania 2019 Hackathon milestone
Jul 6, 2019
This comment has been minimized.
This comment has been minimized.
I have some Listeria pages that can help in the process: |
This comment has been minimized.
This comment has been minimized.
Here is a query that looks for items that have both an ORCID and an English Wikipedia article and then checks whether that article has a Scholia template: SELECT DISTINCT ?item #?itemLabel
?article ?bool
WHERE {
?item wdt:P496 ?orcid.
{
?article schema:about ?item .
?article schema:inLanguage "en" .
FILTER (SUBSTR(str(?article), 1, 25) = "https://en.wikipedia.org/")
}
OPTIONAL {
SELECT ?item ?pageid ?ns WHERE {
SERVICE wikibase:mwapi {
bd:serviceParam wikibase:endpoint "en.wikipedia.org" .
bd:serviceParam wikibase:api "Generator" .
bd:serviceParam mwapi:generator "search" .
bd:serviceParam mwapi:gsrsearch "hastemplate:Scholia" .
bd:serviceParam mwapi:gsrlimit "max" .
?item wikibase:apiOutputItem mwapi:item .
?pageid wikibase:apiOutput "@pageid" .
?ns wikibase:apiOutput "@ns" .
}
} LIMIT 150
}
BIND( IF(BOUND(?article), IF(BOUND(?ns), "yes" , "no" ) , "no" ) AS ?bool).
# SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
} |
This comment has been minimized.
This comment has been minimized.
A first Listeria list based on the above query is now up at https://www.wikidata.org/wiki/Wikidata:WikiProject_Scholia/Listeria/author/English_Wikipedia_article_candidates_for_Scholia_template . |
This comment has been minimized.
This comment has been minimized.
pigsonthewing
commented
Aug 14, 2019
A simpler solution would be to add the Scholia link to {{Authority control}} (or equivalnet in other projects), such that it only displays if an ORCID/ Researcher ID/ Semantic Scholar, etc., value is present. |
Daniel-Mietchen commentedJul 6, 2019
e.g. an author item linked to many of the corresponding publication items and with a Wikipedia page that does not use the template.
This should complement #460 and #768.