Update references to shema-fields.csv

This commit is contained in:
Alan Orth 2021-12-20 12:04:11 +02:00
parent 78c3d62b71
commit baf534efd5
Signed by: alanorth
GPG Key ID: 0FB860CC9C45B1B9
5 changed files with 6 additions and 6 deletions

View File

@ -22,7 +22,7 @@ jobs:
run: poetry install
- name: Generate Hugo content
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
uses: peaceiris/actions-hugo@v2
- name: Build Hugo site

View File

@ -24,7 +24,7 @@ $ pip install -r requirements.txt
Then run the utility scripts to parse the schema:
```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

View File

@ -143,7 +143,7 @@
{{ $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>
<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>

View File

@ -20,7 +20,7 @@ def make_core():
iseal = URIRef(NS)
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.fillna("", inplace=True)

View File

@ -138,7 +138,7 @@ def parseSchema(schema_df):
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(
"--clean",
@ -154,7 +154,7 @@ parser.add_argument(
parser.add_argument(
"-i",
"--input-file",
help="Path to schema fields file (schema-fields.csv).",
help="Path to schema fields file (ie, iseal-core.csv).",
required=True,
type=argparse.FileType("r"),
)