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

Make a legal change to a label to see that the validator approves it #4

Open
wants to merge 20 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
39 changes: 39 additions & 0 deletions .github/workflows/validate_rdf.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Validate vivo.owl

on:
pull_request:
paths:
- 'vivo.owl'

permissions:
pull-requests: write
contents: read

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

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

- name: Download Apache Jena
run: |
wget https://dlcdn.apache.org/jena/binaries/apache-jena-5.2.0.tar.gz -O apache-jena.tar.gz
tar -xzf apache-jena.tar.gz

- name: Validate RDF
run: |
$GITHUB_WORKSPACE/apache-jena-5.2.0/bin/riot --validate vivo.owl > $GITHUB_WORKSPACE/validation_report.txt || true
if [ ! -s $GITHUB_WORKSPACE/validation_report.txt ]; then
echo "No validation errors found." > $GITHUB_WORKSPACE/validation_report.txt
fi
cat $GITHUB_WORKSPACE/validation_report.txt

- 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: ${{ github.workspace }}/validation_report.txt
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion vivo.owl
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
xmlns:doap="http://usefulinc.com/ns/doap#">

<owl:Ontology rdf:about="http://vivoweb.org/ontology/core">
<rdfs:label xml:lang="en-US">VIVO Core Ontology</rdfs:label>
<rdfs:label xml:lang="en-US">This is a legal edit that the validator should appprove: 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>
Expand Down
Loading