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

Image on academic tree #2519

Open
fnielsen opened this issue Jun 17, 2024 · 0 comments
Open

Image on academic tree #2519

fnielsen opened this issue Jun 17, 2024 · 0 comments
Labels
enhancement some suggestions to improve Scholia

Comments

@fnielsen
Copy link
Collaborator

Is your feature request related to a problem? Please describe.
More informative academic tree

Describe the solution you'd like

#defaultView:Graph
PREFIX target: <http://www.wikidata.org/entity/Q20980928>


SELECT DISTINCT ?student ?studentLabel ?image ?supervisor ?supervisorLabel 
WITH {
  SELECT DISTINCT
    ?student
  WHERE {
    { target: (wdt:P184 | ^wdt:P185)* ?student }
    UNION
    { ?student (wdt:P184 | ^wdt:P185)* target: }
  }
} AS %students
WITH {
  SELECT DISTINCT
    ?student
  WHERE {
    { target: (wdt:P184 | ^wdt:P185)* ?supervisor }
    UNION
    { ?supervisor (wdt:P184 | ^wdt:P185)* target: }
  }
} AS %supervisors
WHERE {
  INCLUDE %students
  INCLUDE %supervisors
  ?student (wdt:P184 | ^wdt:P185) ?supervisor
  OPTIONAL { ?student wdt:P18 ?image . }
  
  SERVICE wikibase:label { bd:serviceParam wikibase:language "en,da,sv,jp,zh,ru,fr,de" .  } 
}

Describe alternatives you've considered

Additional context
The suggested SPARQL removes the GAS query.

@fnielsen fnielsen added the enhancement some suggestions to improve Scholia label Jun 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement some suggestions to improve Scholia
Projects
None yet
Development

No branches or pull requests

1 participant