Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

W3id iris #5

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 25 additions & 16 deletions .github/workflows/cd_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# Grant action the permissions it needs
permissions:
contents: write

jobs:
build:
runs-on: ubuntu-latest
Expand All @@ -35,26 +39,31 @@ jobs:
- name: Copy json-ld context
run: cp -r context build/.

- name: Generate squashed ontology
run: ontoconvert -saw
-c 'http://www.w3.org/2004/02/skos/core#prefLabel-->http://www.w3.org/2000/01/rdf-schema#label'
-c 'elucidation-->http://www.w3.org/2000/01/rdf-schema#comment'
-c 'definition-->http://www.w3.org/2000/01/rdf-schema#comment'
oteio.ttl build/oteio.ttl
#-c 'comment-->http://www.w3.org/2000/01/rdf-schema#comment'

- name: Generate inferred ontology
run: ontoconvert -saw --reasoner=HermiT
-c 'http://www.w3.org/2004/02/skos/core#prefLabel-->http://www.w3.org/2000/01/rdf-schema#label'
-c 'elucidation-->http://www.w3.org/2000/01/rdf-schema#comment'
-c 'definition-->http://www.w3.org/2000/01/rdf-schema#comment'
oteio.ttl build/oteio-inferred.ttl
#-c 'comment-->http://www.w3.org/2000/01/rdf-schema#comment'
#- name: Generate squashed ontology
# run: ontoconvert -saw
# -c 'http://www.w3.org/2004/02/skos/core#prefLabel-->http://www.w3.org/2000/01/rdf-schema#label'
# -c 'elucidation-->http://www.w3.org/2000/01/rdf-schema#comment'
# -c 'definition-->http://www.w3.org/2000/01/rdf-schema#comment'
# oteio.ttl build/oteio.ttl
# #-c 'comment-->http://www.w3.org/2000/01/rdf-schema#comment'

#- name: Generate inferred ontology
# run: ontoconvert -saw --reasoner=HermiT
# -c 'http://www.w3.org/2004/02/skos/core#prefLabel-->http://www.w3.org/2000/01/rdf-schema#label'
# -c 'elucidation-->http://www.w3.org/2000/01/rdf-schema#comment'
# -c 'definition-->http://www.w3.org/2000/01/rdf-schema#comment'
# oteio.ttl build/oteio-inferred.ttl
# #-c 'comment-->http://www.w3.org/2000/01/rdf-schema#comment'

- name: Generate documentation
run: pylode -i build/oteio-inferred.ttl -o build/oteio.html -p ontdoc
#run: pylode -i build/oteio-inferred.ttl -o build/oteio.html -p ontdoc
run: |
pylode -i pipeline.ttl -o build/oteio.html -p ontdoc

- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: build # The folder the action should deploy.
branch: gh-pages
git-config-name: "OTEIO CD_publish Github Action"
git-config-email: team40@sintef.no
6 changes: 3 additions & 3 deletions catalog-v001.xml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<catalog prefer="public" xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog">
<group id="Folder Repository, directory=, recursive=true, Auto-Update=false, version=2" prefer="public" xml:base="">
<uri name="http://emmo.info/oteio/0.3.0" uri="./oteio.ttl"/>
<uri name="http://emmo.info/oteio/0.3.0/pipeline" uri="./pipeline.ttl"/>
<uri name="http://emmo.info/oteio/0.3.0/oteapi" uri="./oteapi.ttl"/>
<uri name="https://w3id.org/emmo/domain/oteio/0.4.0" uri="./oteio.ttl"/>
<uri name="https://w3id.org/emmo/domain/oteio/0.4.0/pipeline" uri="./pipeline.ttl"/>
<uri name="https://w3id.org/emmo/domain/oteio/0.4.0/oteapi" uri="./oteapi.ttl"/>
</group>
</catalog>
69 changes: 35 additions & 34 deletions context/context.json
Original file line number Diff line number Diff line change
@@ -1,41 +1,42 @@
{
"@version": 1.1,
"@context": {
"@version": 1.1,

"rdf": "http://www.w3.org/1999/02/22-rdf-syntax-ns#",
"dcterms": "http://purl.org/dc/terms/",
"dcat": "http://www.w3.org/ns/dcat#",
"oteio": "https://w3id.org/emmo/domain/oteio#",
"rdf": "http://www.w3.org/1999/02/22-rdf-syntax-ns#",
"dcterms": "http://purl.org/dc/terms/",
"dcat": "http://www.w3.org/ns/dcat#",
"oteio": "https://w3id.org/emmo/domain/oteio#",

"resources": "@nest",
"configuration": {
"@id": "oteio:configuration",
"@type": "@json"
},
"resources": "@nest",
"configuration": {
"@id": "oteio:configuration",
"@type": "@json"
},

"dataresource": {
"@id": "oteio:dataresource",
"@type": "oteio:DataResource",
"@nest": "resources"
},
"downloadURL": "dcat:downloadURL",
"mediaType": "dcat:mediaType",
"license": "dcterms:license",
"dataresource": {
"@id": "oteio:dataresource",
"@type": "oteio:DataResource",
"@nest": "resources"
},
"downloadURL": "dcat:downloadURL",
"mediaType": "dcat:mediaType",
"license": "dcterms:license",

"parse": {
"@id": "oteio:parse",
"@type": "oteio:Parse",
"@nest": "resources"
},
"parserType": "oteio:parserType",
"datamodel": "oteio:datamodel",

"mapping": {
"@id": "oteio:mapping",
"@type": "oteio:Mapping",
"@nest": "resources"
},
"mappingType": "oteio:mappingType",
"prefixes": "oteio:prefixes",
"triples": "oteio:triples",
"parse": {
"@id": "oteio:parse",
"@type": "oteio:Parse",
"@nest": "resources"
},
"parserType": "oteio:parserType",
"datamodel": "oteio:datamodel",

"mapping": {
"@id": "oteio:mapping",
"@type": "oteio:Mapping",
"@nest": "resources"
},
"mappingType": "oteio:mappingType",
"prefixes": "oteio:prefixes",
"triples": "oteio:triples"
}
}
Loading