Skip to content

Commit

Permalink
Update rdf-syntax-check.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
hauschke authored Sep 18, 2024
1 parent 06b611a commit 301e5f2
Showing 1 changed file with 10 additions and 33 deletions.
43 changes: 10 additions & 33 deletions .github/workflows/rdf-syntax-check.yml
Original file line number Diff line number Diff line change
@@ -1,45 +1,22 @@
name: Compare OWL Files
name: RDF Syntax Check

on:
push:
branches:
- main
pull_request:
branches:
- main
on: [push, pull_request]

jobs:
compare-files:
rdf-syntax-check:
runs-on: ubuntu-latest

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

- name: Set up Java
uses: actions/setup-java@v3
with:
java-version: '11' # or your preferred version

- name: Set up Maven
uses: actions/setup-maven@v3
with:
maven-version: '3.8.6' # or your preferred version

- name: Build with Maven
run: mvn install # This installs your dependencies and builds the project

- name: Run OwlAPI
run: mvn exec:java -Dexec.mainClass="com.example.YourMainClass" # Replace with your main class

- name: RDF syntax check
uses: AtomGraph/RDF-syntax-check@v1.0.5
with:
# Specify the Jena version you want to use; default is 4.7.0
jena-version: '4.7.0' # or another version if required

# Optionally specify a custom Apache distribution URL
asf-archive: 'https://archive.apache.org/dist/'
# The Jena version to set up; pin to a specific version if needed
jena-version: '4.7.0' # Default value, adjust as necessary
# The Apache distribution URL; use the default if no custom URL is needed
asf-archive: 'https://archive.apache.org/dist/apache-jena/'

- name: Compare files
run: diff original_file.owl new_file.owl # Replace with your diff command
# Optionally, specify additional configurations here if the action supports it

0 comments on commit 301e5f2

Please sign in to comment.