forked from vivo-ontologies/vivo-ontology
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
10 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |