Skip to content

Commit

Permalink
Merge branch 'master' into bug/syntax-error
Browse files Browse the repository at this point in the history
  • Loading branch information
hauschke authored Jan 10, 2025
2 parents 67990c1 + 7060460 commit f7e8cb7
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 21 deletions.
35 changes: 15 additions & 20 deletions .github/workflows/validate_rdf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,46 +3,41 @@ name: Validate vivo.owl
on:
pull_request:
paths:
- 'vivo.owl' # Trigger only when vivo.owl is changed
workflow_dispatch: # Allow manual triggering
- 'vivo.owl'
workflow_dispatch:

permissions:
pull-requests: write
contents: read

jobs:
validate-rdf:
runs-on: ubuntu-latest

steps:
# Checkout the repository
- name: Checkout code
uses: actions/checkout@v3

# Download Apache Jena
- name: Download Apache Jena
run: |
wget https://dlcdn.apache.org/jena/binaries/apache-jena-5.2.0.tar.gz -O apache-jena.tar.gz
ls -la apache-jena.tar.gz
# Extract Apache Jena
- name: Extract Apache Jena
run: |
tar -xzf apache-jena.tar.gz
ls -la apache-jena-5.2.0/bin
# Add Apache Jena to PATH
- name: Add Apache Jena to PATH
- name: Validate RDF
run: |
export PATH=$GITHUB_WORKSPACE/apache-jena-5.2.0/bin:$PATH
echo "Updated PATH: $PATH"
$GITHUB_WORKSPACE/apache-jena-5.2.0/bin/riot --validate vivo.owl > $GITHUB_WORKSPACE/validation_report.txt || true
cat $GITHUB_WORKSPACE/validation_report.txt
# Validate vivo.owl
- name: Validate RDF
- name: Ensure Validation Report Exists
run: |
$GITHUB_WORKSPACE/apache-jena-5.2.0/bin/riot --validate vivo.owl > validation_report.txt || true
cat validation_report.txt
if [ ! -f $GITHUB_WORKSPACE/validation_report.txt ]; then
echo "Validation report not generated. Exiting."
exit 1
fi
# Post validation report to PR
- name: Post validation report to PR
if: github.event_name == 'pull_request'
uses: marocchino/sticky-pull-request-comment@v2
with:
header: Validation Report for vivo.owl
path: validation_report.txt
path: ${{ github.workspace }}/validation_report.txt
5 changes: 4 additions & 1 deletion vivo.owl
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,15 @@
xmlns:doap="http://usefulinc.com/ns/doap#">

<owl:Ontology rdf:about="http://vivoweb.org/ontology/core">

<rdfs:label I am breaking this to test the validator action xml:lang="en-US">VIVO Core Ontology</rdfs:label>
<rdfs:label xml:lang="en-US">VIVO Core Ontology</rdfs:label>
<owl:versionInfo>1.8.0</owl:versionInfo>
<terms:license rdf:resource="https://spdx.org/licenses/Unlicense.html"/>
<terms:description xml:lang="en">The VIVO Ontology is used to represent the expertise of people engaged in the creation, transmission, and preservation of knowledge and creative works. The VIVO ontology (hereafter referred to as “the ontology”) represents expertise by describing the activities and accomplishments of people in terms of their relationships to particular artifacts of the work, resources they use, institutions that employ them, and other indicators. The ontology is independent of knowledge or creative domain. The ontology supports the identification, evaluation, and impact assessment of individual people and groups of people, as well as identification and reuse of the works of the people.</terms:description>
<doap:repository rdf:resource="https://github.com/vivo-ontologies/vivo-ontology"/>
<doap:bug-database rdf:resource="https://github.com/vivo-ontologies/vivo-ontology/issues"/>
<terms:creator rdf:resource="VIVO Ontology Interest Group"/>
<terms:creator xml:lang="en">VIVO Ontology Interest Group</terms:creator>
<vann:preferredNamespacePrefix>vivo</vann:preferredNamespacePrefix>
</owl:Ontology>

Expand Down

0 comments on commit f7e8cb7

Please # to comment.