Skip to content
Please note that GitHub no longer supports your web browser.

We recommend upgrading to the latest Google Chrome or Firefox.

Learn more
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 · 6 comments

Comments

@Daniel-Mietchen
Copy link
Collaborator

@Daniel-Mietchen Daniel-Mietchen 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

@Daniel-Mietchen Daniel-Mietchen 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

@Daniel-Mietchen Daniel-Mietchen 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

@Daniel-Mietchen Daniel-Mietchen commented Aug 14, 2019

@pigsonthewing

This comment has been minimized.

Copy link

@pigsonthewing 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

This comment has been minimized.

Copy link
Collaborator Author

@Daniel-Mietchen Daniel-Mietchen commented Nov 12, 2019

Here is a different query where I have sliced the corpus not by ORCID but by whether these folks got an award and have published in a specific journal:

SELECT DISTINCT ?item ?itemLabel ?article ?rgb WHERE {
  ?item wdt:P31 wd:Q5 .
 ?item wdt:P166 ?award .
 ?paper wdt:P50 ?item ;
        wdt:P1433 wd:Q5533480 .
 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 1000
 }
    
  #OPTIONAL 
  {
      ?article schema:about ?item .
      ?article schema:inLanguage "en" .
      FILTER (SUBSTR(str(?article), 1, 25) = "https://en.wikipedia.org/")
  }

  BIND( IF(BOUND(?article),   IF(BOUND(?ns), "y" , "n" )  ,  "z"   )  AS ?rgb).  
  
  SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
}
@Daniel-Mietchen

This comment has been minimized.

Copy link
Collaborator Author

@Daniel-Mietchen Daniel-Mietchen commented Nov 12, 2019

Eventually, we should perhaps use something more generic like ShEx to determine whether a given Scholia profile meets some specified quality criteria.

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