Skip to content

update 223p.ttl

update 223p.ttl #85

name: Build and Run NPM Package
on:
push:
branches:
- main
workflow_dispatch:
permissions:
contents: write
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
build-and-run:
runs-on: ubuntu-latest
steps:
- name: Checkout Remote Repository
uses: actions/checkout@v3
- name: Clone RDF toolkit
run: git clone https://github.com/ektrah/rdf-toolkit
- name: Set up Node.js
uses: actions/setup-node@v3
- name: Install Dependencies
working-directory: rdf-toolkit
run: |
npm ci
- name: Build NPM Package
working-directory: rdf-toolkit
run: |
npm run build
npm i @rdf-toolkit/cli
- name: Copy ontologies
run: cp ontologies/*.ttl rdf-toolkit/explorer/vocab
- name: Copy config file
run: cp rdfconfig.json rdf-toolkit/explorer/
- name: Build site
working-directory: rdf-toolkit/explorer
run: |
npx rdf add file "http://data.ashrae.org/standard223#" vocab/223p.ttl
npx rdf add file "https://brickschema.org/schema/Brick#" vocab/Brick.ttl
npx rdf add file "http://qudt.org/2.1/schema/shacl/qudt" vocab/SCHEMA_QUDT_NoOWL-v2.1.ttl
npx rdf add file "http://qudt.org/2.1/vocab/unit" vocab/VOCAB_QUDT-UNITS-ALL-v2.1.ttl
npx rdf add file "http://qudt.org/2.1/vocab/quantitykind" vocab/VOCAB_QUDT-QUANTITY-KINDS-ALL-v2.1.ttl
npx rdf add file "http://www.w3.org/ns/shacl#" vocab/shacl.ttl
npx rdf add file "https://brickschema.org/schema/Brick/ref" vocab/ref-schema.ttl
npx rdf make site
- name: Commit Built Files
run: |
rm -rf html.explorer
mv rdf-toolkit/explorer/public html.explorer
git config user.name "GitHub Action"
git config user.email "[email protected]"
git add html.explorer
git diff --quiet --exit-code || git commit -m "Commit built files" && git push
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: 'html.explorer/'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2