From 301e5f2c7afe9152ce245af9a072f5652d30ff1a Mon Sep 17 00:00:00 2001 From: Christian Hauschke Date: Wed, 18 Sep 2024 17:38:07 +0200 Subject: [PATCH] Update rdf-syntax-check.yml --- .github/workflows/rdf-syntax-check.yml | 43 ++++++-------------------- 1 file changed, 10 insertions(+), 33 deletions(-) diff --git a/.github/workflows/rdf-syntax-check.yml b/.github/workflows/rdf-syntax-check.yml index 0194550..4a68fb6 100644 --- a/.github/workflows/rdf-syntax-check.yml +++ b/.github/workflows/rdf-syntax-check.yml @@ -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