Skip to content

Commit

Permalink
Add support for Pangaea datasets
Browse files Browse the repository at this point in the history
  • Loading branch information
J535D165 committed Aug 24, 2023
1 parent b5cf8ae commit df3c867
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
3 changes: 2 additions & 1 deletion datahugger/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
from datahugger.services import HuggingFaceDataset
from datahugger.services import MendeleyDataset
from datahugger.services import OSFDataset
from datahugger.services import PangaeaDataset
from datahugger.services import ZenodoDataset
from datahugger.utils import _is_doi
from datahugger.utils import _is_url
Expand Down Expand Up @@ -53,7 +54,7 @@
"get.iedadata.org": DataOneDataset,
"usap-dc.org": DataOneDataset,
"iys.hakai.org": DataOneDataset,
"doi.pangaea.de": DataOneDataset,
"doi.pangaea.de": PangaeaDataset,
"rvdata.us": DataOneDataset,
"sead-published.ncsa.illinois.edu": DataOneDataset,
# DataVerse repositories (extracted from re3data)
Expand Down
6 changes: 6 additions & 0 deletions datahugger/services.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,12 @@ def files(self):
return self._files


class PangaeaDataset(DataOneDataset):
"""Downloader for PangaeaDataset repository."""

REGEXP_ID = r"doi\.pangaea\.de/(.*)"


class DSpaceDataset(DatasetDownloader, DatasetResult):
"""Downloader for DSpaceDataset repositories."""

Expand Down

0 comments on commit df3c867

Please sign in to comment.