ioos / mbon-docs

MBON portal documentation
https://ioos.github.io/mbon-docs/
Other
0 stars 5 forks source link

use pyobis to calculate the number of citations of MBON data #45

Closed MathewBiddle closed 3 months ago

MathewBiddle commented 9 months ago

This notebook is a good start https://ioos.github.io/ioos_code_lab/content/code_gallery/data_access_notebooks/2022-11-23_pyobis_example.html

I think citations will come from GBIF, unless OBIS brings those into the available records.

MathewBiddle commented 3 months ago

It would be cool if we could breakdown the MBON datasets by collection methods (eDNA, SCUBA, Passive Acoustic, Animal Tracking, etc..)

I think we would need to parse abstracts from the OBIS API response https://api.obis.org/v3/dataset?instituteid=23070

Unless there is another place we can gather collecting method information from the API?

MathewBiddle commented 3 months ago

gist: https://gist.github.com/MathewBiddle/7a029c679fb816f613bed20600cea8e6

import pandas as pd
import pyobis

institution_id = 23070

query = pyobis.dataset.search(instituteid=institution_id)

df = pd.DataFrame(query.execute())

df_meta = pd.DataFrame.from_records(df["results"])

for line in df_meta['abstract']:
  print(line,'\n--\n')

What I've summarized so far (manually by reading each abstract). Observing methods include:

MathewBiddle commented 3 months ago

image

MathewBiddle commented 3 months ago

closed with https://github.com/ioos/ioos_metrics/pull/84