LinkedEarth / pylipd

Development repository for Python LiPD utilities
https://pylipd.readthedocs.io/en/latest/
Apache License 2.0
2 stars 0 forks source link

load_remote_datasets should append rather than writing over. #27

Closed khider closed 1 year ago

khider commented 1 year ago

To reproduce:

L = LiPD()
data = ['https://lipdverse.org/data/TjhHrDv0LQ4aazHolZkR/1_0_0//Ocn-WEqPacific.Stott.2007.lpd',
       '/Users/deborahkhider/Documents/GitHub/PyleoTutorials/data/Ocn-Palmyra.Nurhati.2011.lpd']
L.load(data)

L.set_endpoint("https://linkedearth.graphdb.mint.isi.edu/repositories/LiPDVerse2")
L.load_remote_datasets("MD98_2181.Stott.2007")
varunratnakar commented 1 year ago

Fixed in https://github.com/LinkedEarth/pylipd/commit/d5d2f7a04b65b27bf2efa8efb9d50cccb365e834

Note: lipd.query() will by default only query local graph.. To query remote endpoint, pass remote=True