dataverse icon indicating copy to clipboard operation
dataverse copied to clipboard

Dataverse metrics bar at sub-dataverse level

Open philippconzett opened this issue 8 years ago • 6 comments

I was wondering if there is a way to get metrics on sub-dataverse level? The metrics bar is displayed in the main dataverse, and for each dataset, and as of 4.6 even on the datafile level. However, it does not show up in the different sub-dataverses, or did I miss something? Would it be possible to include metrics for sub-dataverses?

Best, Philipp, UiT The Arctic University of Norway

philippconzett avatar Dec 14 '16 15:12 philippconzett

@philippconzett thanks for opening this issue. As I mentioned at https://groups.google.com/d/msg/dataverse-community/3w9q7Vs1I94/WLM5GiYEDQAJ this is related to a request at https://help.hmdc.harvard.edu/Ticket/Display.html?id=239408 that is referenced in #3312.

I've since noticed that #1971 is related as well. Also there's a lot of discussion about metrics in general at #2729 but I like how this issue you just created is more focused. Please note that it's conceivable that the functionality you want could be added to https://github.com/IQSS/miniverse which powers http://dataverse.org/metrics

pdurbin avatar Dec 14 '16 15:12 pdurbin

@philippconzett @pdurbin:

For future reference, "download counts" are available via API at a sub-dataverse level. However, currently this endpoint is only open to superusers.

See API endpoint, including parameter descriptions: monthly file download counts

  • Relevant API parameters:
    • selected_dvs: specify single dataverse or list of dataverses
      • default: only show download counts directly within the selected dataverse(s)
      • related option include_child_dvs: include download counts of selected dataverses and their child dataverses

Note: If demand exists, the selection of "sub-dataverses" may be extended to other statistics

raprasad avatar Dec 14 '16 15:12 raprasad

@philippconzett you might be interested in the discussion here:

  • #3923

pdurbin avatar Jun 23 '17 12:06 pdurbin

Related to, duplicate of issue Dataverse - Views, Downloads, Citations, Shares #1808 and Track views for Dataverses and Datasets #1969.

mheppler avatar Apr 02 '18 15:04 mheppler

@philippconzett hi! Have you played with parentAlias in the Metric API?

"Specifies which Dataverse sub-collection the metric should be collected for" -- https://guides.dataverse.org/en/5.12/api/metrics.html#parentalias

In addition, there are some reporting tools that might help: https://guides.dataverse.org/en/5.12/admin/reporting-tools-and-queries.html

pdurbin avatar Oct 16 '22 00:10 pdurbin

Thanks for this heads-up, @pdurbin! Is the parentAlias a global setting, so if you set it to subdataverse1, the metrics for subdataverse1 will also be displayed on the root dataverse and all other possible subdataverses?

philippconzett avatar Oct 17 '22 04:10 philippconzett

@philippconzett parentAlias is not a global setting. It's a parameter you pass to the Metrics API to narrow the metrics returned.

To be honest, I'm not sure I understand your question. Here's the example from the docs I linked above:


Example: curl https://demo.dataverse.org/api/info/metrics/datasets/?parentAlias=abc would return the number of datasets in the Dataverse collection with alias 'abc' and in sub-collections within it.


Does that help?

Should we have a Zoom call or talk it out in chat? 😄

pdurbin avatar Nov 09 '22 20:11 pdurbin

Sorry for my late reply, @pdurbin. I mixed up API and GUI in my previous reply - sorry. My original request was about the metrics bar in the GUI, which I still think would be good to have also at sub-dataverse level.

To use the Harvard Dataverse as an example: I would like the metrics bar that is currently displayed on top of the front page of the root collection (highlighted with red):

image

to be available also at sub-dataverse level, e.g., here:

image

Thanks!

philippconzett avatar Jan 12 '23 07:01 philippconzett