Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Establish a mechanism to track wiki pages that do not have Template:Scholia but should #781

Open
Daniel-Mietchen opened this issue Jul 6, 2019 · 4 comments

Comments

@Daniel-Mietchen
Copy link
Collaborator

commented Jul 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.

@Daniel-Mietchen

This comment has been minimized.

Copy link
Collaborator Author

commented Jul 15, 2019

I have some Listeria pages that can help in the process:
https://www.wikidata.org/wiki/User:Daniel_Mietchen/Scholia/Examples

@Daniel-Mietchen

This comment has been minimized.

Copy link
Collaborator Author

commented Aug 14, 2019

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". }
}
@Daniel-Mietchen

This comment has been minimized.

Copy link
Collaborator Author

commented Aug 14, 2019

@pigsonthewing

This comment has been minimized.

Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.