Skip to content

Commit c862b79

Browse files
committed
portals cleanup; GH-Action on mac
1 parent 1ae7885 commit c862b79

File tree

4 files changed

+44
-35
lines changed

4 files changed

+44
-35
lines changed

.github/workflows/render_book.yml

+11-11
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ on:
99
jobs:
1010
build-deploy:
1111
name: Render & publish Quarto book
12-
# runs-on: macOS-latest
13-
runs-on: ubuntu-latest
12+
runs-on: macOS-latest
13+
# runs-on: ubuntu-latest
1414
permissions:
1515
contents: write
1616
steps:
@@ -19,20 +19,20 @@ jobs:
1919

2020
- name: Install Quarto
2121
uses: quarto-dev/quarto-actions/setup@v2
22-
# with:
23-
# tinytex: true # for pdf but buggy on finding version
22+
with:
23+
tinytex: true # for pdf but buggy on finding version
2424

25-
# - name: Install chromium for Quarto
26-
# # for rendering Mermaid diagrams to pdf: https://quarto.org/docs/authoring/diagrams.html#chrome-install
27-
# run: quarto install chromium
25+
- name: Install chromium for Quarto
26+
# for rendering Mermaid diagrams to pdf: https://quarto.org/docs/authoring/diagrams.html#chrome-install
27+
run: quarto install chromium
2828

29-
- name: Install TinyTeX
30-
uses: r-lib/actions/setup-tinytex@v2
29+
# - name: Install TinyTeX
30+
# uses: r-lib/actions/setup-tinytex@v2
3131

3232
- name: Install librsvg
3333
# convert svg to png for pdf
34-
# run: brew install librsvg
35-
run: sudo apt-get install librsvg2-bin # librsvg2-dev
34+
run: brew install librsvg
35+
# run: sudo apt-get install librsvg2-bin # librsvg2-dev
3636

3737
# - name: Install qpdf
3838
# # to prevent R install from failing

diagrams/portals_flow.mmd

+7-7
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ graph TD
44

55
subgraph calcofi[CalCOFI.io]
66
db[(database)]:::database
7-
web[calcofi.org]:::website
7+
web[CalCOFI.org]:::website
88
api[APIs]:::api
99
lib[library]:::code
1010
app[apps]:::code
@@ -35,12 +35,12 @@ graph TD
3535
portals --> datagov
3636

3737
%% Custom styles
38-
classDef source fill:#E0E7FF,stroke:#6366F1,stroke-width:2px
39-
classDef database fill:#FEF3C7,stroke:#D97706,stroke-width:2px
40-
classDef website fill:#F3E8FF,stroke:#9333EA,stroke-width:2px
41-
classDef api fill:#E0E7FF,stroke:#6366F1,stroke-width:2px
42-
classDef code fill:#DBEAFE,stroke:#3B82F6,stroke-width:2px
43-
classDef portal fill:#F0FDF4,stroke:#22C55E,stroke-width:2px
38+
classDef source fill:#E0E7FF,stroke:#6366F1,stroke-width:2px
39+
classDef database fill:#FEF3C7,stroke:#D97706,stroke-width:2px
40+
classDef website fill:#F3E8FF,stroke:#9333EA,stroke-width:2px
41+
classDef api fill:#E0E7FF,stroke:#6366F1,stroke-width:2px
42+
classDef code fill:#DBEAFE,stroke:#3B82F6,stroke-width:2px
43+
classDef portal fill:#F0FDF4,stroke:#22C55E,stroke-width:2px
4444
classDef metaportal fill:#FEF2F2,stroke:#DC2626,stroke-width:2px
4545

4646
%% Style subgraphs

diagrams/portals_metadata.mmd

+16-12
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,31 @@
11
graph LR
2-
subgraph inputs[Data & Metadata]
2+
subgraph dataset[Dataset]
33
data([data.csv]):::source
44
eml[metadata.eml]:::database
55
end
66

7-
subgraph portals[Data Portals]
7+
subgraph portals[Portals]
88
edi[EDI]:::portal
99
erddap[ERDDAP]:::portal
1010
obis[OBIS]:::portal
1111
ncei[NCEI]:::portal
1212
end
1313

14-
data --> eml
15-
eml --> edi
16-
eml --> erddap
17-
eml --> obis
18-
eml --> ncei
14+
subgraph metaportals[Meta-Portals]
15+
odis[ODIS]:::metaportal
16+
datagov[data.gov]:::metaportal
17+
end
18+
19+
dataset --> portals
20+
eml -->|json-ld| metaportals
1921

2022
%% Custom styles
21-
classDef source fill:#E0E7FF,stroke:#6366F1,stroke-width:2px
22-
classDef database fill:#FEF3C7,stroke:#D97706,stroke-width:2px
23-
classDef portal fill:#F0FDF4,stroke:#22C55E,stroke-width:2px
23+
classDef source fill:#E0E7FF,stroke:#6366F1,stroke-width:2px
24+
classDef database fill:#FEF3C7,stroke:#D97706,stroke-width:2px
25+
classDef portal fill:#F0FDF4,stroke:#22C55E,stroke-width:2px
26+
classDef metaportal fill:#FEF2F2,stroke:#DC2626,stroke-width:2px
2427

2528
%% Style subgraphs
26-
style inputs fill:#F8FAFC,stroke:#CBD5E1,stroke-width:2px
27-
style portals fill:#F8FAFC,stroke:#CBD5E1,stroke-width:2px
29+
style dataset fill:#F8FAFC,stroke:#CBD5E1,stroke-width:2px
30+
style portals fill:#F8FAFC,stroke:#CBD5E1,stroke-width:2px
31+
style metaportals fill:#F8FAFC,stroke:#CBD5E1,stroke-width:2px

portals.qmd

+10-5
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,8 @@ read_csv(portals_csv, show_col_types = F) |>
6868
```
6969

7070

71-
### EDI (Environmental Data Initiative)
71+
### EDI
72+
**Environmental Data Initiative**
7273

7374
- Complete dataset archives using DataOne software and EML metadata
7475
- DOIs issued for all datasets ensuring citability
@@ -80,7 +81,8 @@ read_csv(portals_csv, show_col_types = F) |>
8081
- [EDIrepository.org](https://edirepository.org)
8182
- CalCOFI datasets: [EDI query "CalCOFI"](http://portal.edirepository.org:80/nis/simpleSearch?defType=edismax&q=CalCOFI&fq=-scope:ecotrends&fq=-scope:lter-landsat*&fl=id,packageid,title,author,organization,pubdate,coordinates&debug=false)
8283

83-
### NCEI (National Centers for Environmental Information)
84+
### NCEI
85+
**National Centers for Environmental Information**
8486

8587
- Long-term archival of oceanographic data
8688
- DOIs issued for dataset submissions
@@ -92,7 +94,8 @@ read_csv(portals_csv, show_col_types = F) |>
9294
- [NCEI Ocean Archive](https://www.ncei.noaa.gov/products/ocean-archive)
9395
- CalCOFI datasets: [NCEI search "CalCOFI"](https://www.ncei.noaa.gov/access/search/index?q=CalCOFI)
9496

95-
### OBIS (Ocean Biodiversity Information System)
97+
### OBIS
98+
**Ocean Biodiversity Information System**
9699

97100
- Specialized in marine biodiversity data
98101
- Standardized using DarwinCore fields
@@ -104,7 +107,8 @@ read_csv(portals_csv, show_col_types = F) |>
104107
- [OBIS.org](https://obis.org)
105108
- CalCOFI datasets: [obis.org/dataset](https://obis.org/datasets) + "calcofi" Keyword
106109

107-
### ERDDAP (Environmental Research Division Data Access Program)
110+
### ERDDAP
111+
**Environmental Research Division Data Access Program**
108112

109113
- Tabular and gridded data server
110114
- Advanced subsetting by space, time, and parameters
@@ -146,7 +150,8 @@ This standardized metadata enables automated data transformation and ingestion i
146150

147151
The JSON-LD metadata in the Portal dataset web pages get indexed by [Google Dataset Search](https://datasetsearch.research.google.com/search?query=calcofi) through schema.org metadata. This ensures that CalCOFI data is discoverable through Google search and other search engines.
148152

149-
### ODIS (Ocean Data Information System)
153+
### ODIS
154+
**Ocean Data Information System**
150155

151156
ODIS uses the same technology as Google Dataset Search (schema.org, JSON-LD), but focuses on ocean data. CalCOFI curates a sitemap of authoritative datasets to server to [ODIS.org](https://odis.org)
152157

0 commit comments

Comments
 (0)