mirror of
https://github.com/ISEAL-Community/iseal-core.git
synced 2024-11-22 06:45:02 +01:00
Update references to shema-fields.csv
This commit is contained in:
parent
78c3d62b71
commit
baf534efd5
2
.github/workflows/pages.yml
vendored
2
.github/workflows/pages.yml
vendored
@ -22,7 +22,7 @@ jobs:
|
|||||||
run: poetry install
|
run: poetry install
|
||||||
- name: Generate Hugo content
|
- name: Generate Hugo content
|
||||||
run: |
|
run: |
|
||||||
poetry run ./util/generate-hugo-content.py -i ./data/schema-fields.csv --clean -d
|
poetry run ./util/generate-hugo-content.py -i ./data/iseal-core.csv --clean -d
|
||||||
- name: Setup Hugo
|
- name: Setup Hugo
|
||||||
uses: peaceiris/actions-hugo@v2
|
uses: peaceiris/actions-hugo@v2
|
||||||
- name: Build Hugo site
|
- name: Build Hugo site
|
||||||
|
@ -24,7 +24,7 @@ $ pip install -r requirements.txt
|
|||||||
Then run the utility scripts to parse the schema:
|
Then run the utility scripts to parse the schema:
|
||||||
|
|
||||||
```console
|
```console
|
||||||
$ ./util/generate-hugo-content.py -i ./data/schema-fields.csv --clean -d
|
$ ./util/generate-hugo-content.py -i ./data/iseal-core.csv --clean -d
|
||||||
```
|
```
|
||||||
|
|
||||||
## Node.js Setup
|
## Node.js Setup
|
||||||
|
@ -143,7 +143,7 @@
|
|||||||
{{ $fileSpreadsheetIcon := resources.Get "icons/file-earmark-spreadsheet.svg" | resources.Fingerprint }}
|
{{ $fileSpreadsheetIcon := resources.Get "icons/file-earmark-spreadsheet.svg" | resources.Fingerprint }}
|
||||||
<h3><img class="icon me-1" src="{{ $fileSpreadsheetIcon.Permalink }}" alt="File icon with earmark"/>CSV</h3>
|
<h3><img class="icon me-1" src="{{ $fileSpreadsheetIcon.Permalink }}" alt="File icon with earmark"/>CSV</h3>
|
||||||
<p>Comma-separated Values (CSV). Use this format when you just need a quick and easy offline reference.</p>
|
<p>Comma-separated Values (CSV). Use this format when you just need a quick and easy offline reference.</p>
|
||||||
<a href="https://raw.githubusercontent.com/alanorth/iseal-schema/main/data/schema-fields.csv" class="btn btn-primary">Download</a>
|
<a href="https://raw.githubusercontent.com/alanorth/iseal-schema/main/data/iseal-core.csv" class="btn btn-primary">Download</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -20,7 +20,7 @@ def make_core():
|
|||||||
iseal = URIRef(NS)
|
iseal = URIRef(NS)
|
||||||
g.add((iseal, RDF.type, OWL.Ontology))
|
g.add((iseal, RDF.type, OWL.Ontology))
|
||||||
|
|
||||||
df = pd.read_csv("../data/schema-fields.csv")
|
df = pd.read_csv("../data/iseal-core.csv")
|
||||||
df.dropna(how="all", axis=1)
|
df.dropna(how="all", axis=1)
|
||||||
df.fillna("", inplace=True)
|
df.fillna("", inplace=True)
|
||||||
|
|
||||||
|
@ -138,7 +138,7 @@ def parseSchema(schema_df):
|
|||||||
|
|
||||||
|
|
||||||
parser = argparse.ArgumentParser(
|
parser = argparse.ArgumentParser(
|
||||||
description="Parse an ISEAL schema Excel file to produce documentation about metadata requirements."
|
description="Parse an ISEAL schema CSV file to produce documentation about metadata requirements."
|
||||||
)
|
)
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
"--clean",
|
"--clean",
|
||||||
@ -154,7 +154,7 @@ parser.add_argument(
|
|||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
"-i",
|
"-i",
|
||||||
"--input-file",
|
"--input-file",
|
||||||
help="Path to schema fields file (schema-fields.csv).",
|
help="Path to schema fields file (ie, iseal-core.csv).",
|
||||||
required=True,
|
required=True,
|
||||||
type=argparse.FileType("r"),
|
type=argparse.FileType("r"),
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user