WDscholia / scholia

Wikidata-based scholarly profiles
https://scholia.toolforge.org
Other
219 stars 78 forks source link

Allow for zooming between specific topic and general area #28

Open Daniel-Mietchen opened 7 years ago

Daniel-Mietchen commented 7 years ago

For instance, https://tools.wmflabs.org/scholia/topic/Q18123741 lists basically only papers directly annotated with P921=Q18123741, which is good, but it would be good to have an option (think https://tools.wmflabs.org/scholia/topic/Q18123741&zoom=+2 ) to aggregate results from some subclasses of infectious diseases as well. Conversely, it would be nice to be able to zoom out to diseases or medicine more generally.

fnielsen commented 7 years ago

Actually, it queries for a range of subclasses/facets/part of. You get "Africa // malaria // Plasmodium falciparum // Mortality" on Q18123741

This is the query:

  { ?work wdt:P921/wdt:P279* wd:Q18123741 . }
  union { ?work wdt:P921/wdt:P361+ wd:Q18123741 . }
  union { ?work wdt:P921/wdt:P1269+ wd:Q18123741 . }

Could it be made more general. Do you have examples of what is missing?

fnielsen commented 7 years ago

35feec442346cd7159b693ba5447cc168512bdf0 from some days ago is now pushed to production. It implements broader queries for "Authors publishing about the topic" and "Co-occurring topics" and "Venues publishing works about the topic".

Daniel-Mietchen commented 7 years ago

I actually saw that you're crawling along the tree a bit, but the "+" notation was new to me, so I did not understand much of it.

My point is that for a topic like biology, I would expect publications about subtopics like cell biology to show up and that the numbers in the "Authors publishing about the topic" and "Venues publishing works about the topic" sections should be higher for the topic than for subtopics.

I am under the impression that this has not always been the case, but for the examples I just checked, it all seems fine.

Nonetheless, I think it would indeed be nice if the zoom level could be specified in some more intuitive way than via SPARQL.

Daniel-Mietchen commented 5 years ago

What I had in mind with these zoom levels is roughly comparable to the re-arrangement of bubbles when zooming around on maps like the one at http://opendataday.org/ .

So the user would select some zoom level relative to the default, and this would (via JavaScript) adjust the SPARQL query accordingly via things like P279, P361 or P1269.

Daniel-Mietchen commented 3 years ago

Looks like the "more general class" / "more specific class" on Wikidata Walkabout is very close to what I was looking for here.

Attaching a screenshot for https://wikidatawalkabout.org/?c=Q43229&f.P2388=Q1255921 .

Screen Shot 2020-09-23 at 10 11 22

They are using classes, while I would like to see something more adapted to scholarly topics, e.g. branches of physics. I am aware that our ontology there is messy, but that will need to be improved anyway at some point, and it would be nice if Scholia could leverage that.

Daniel-Mietchen commented 2 years ago

A term that might be useful here is "scale-free linking".