-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Basic setup for testing SHACL. * Basic SHACL test. * Explicitly typed every Node as obo:CDAO_0000140. * Command line options to check for version number and help. * Python script that invokes Java program for testing. * Install Java 8 and use Maven in Travis for CI testing * For now, need to compile uber-JAR locally, then upload it for testing. See #14.
- Loading branch information
Showing
15 changed files
with
3,259 additions
and
8 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,3 +1,9 @@ | ||
# Mac files | ||
.DS_Store | ||
|
||
# IDE files | ||
.project | ||
|
||
# Byte-compiled / optimized / DLL files | ||
__pycache__/ | ||
*.py[cod] | ||
|
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,13 +1,19 @@ | ||
# Our primary language is Python. | ||
language: python | ||
python: | ||
- "2.7" | ||
# command to install dependencies | ||
# | ||
# unfortunately needs to be custom because updating setuptools from within | ||
# requirements.txt fails to be seen by the html5lib installation, and the | ||
# version pre-installed on Travis is too low. | ||
|
||
# We need Java 8 for SHACL testing. | ||
addons: | ||
apt: | ||
packages: | ||
- oracle-java8-set-default | ||
|
||
# Install pip requirements. | ||
install: | ||
- "pip install -U setuptools" | ||
- "pip install -r requirements.txt" | ||
# command to run tests | ||
- pip install --upgrade pip | ||
- pip install -r requirements.txt | ||
- pip install pytest | ||
|
||
# Run the py.test suite. | ||
script: py.test tests |
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
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
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 |
---|---|---|
@@ -0,0 +1,37 @@ | ||
@prefix ex: <http://phyloref.org/example/test_shacl.ttl#> . | ||
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . | ||
@prefix sh: <http://www.w3.org/ns/shacl#> . | ||
@prefix obo: <http://purl.obolibrary.org/obo/> . | ||
@prefix phyloref: <http://phyloinformatics.net/phyloref.owl#> . | ||
@prefix dash: <http://datashapes.org/dash#> . | ||
@prefix rdf: <http://www.w3.org/2002/07/owl#> . | ||
|
||
# | ||
# ex:Node | ||
# A node in a phylogeny. | ||
# | ||
|
||
ex:Node a sh:Shape; | ||
# Matches all nodes. | ||
sh:targetClass obo:CDAO_0000140; | ||
|
||
# Every node must either have: | ||
sh:or ( | ||
[ | ||
# 1. A CDAO:hasChild relationship with another node. | ||
sh:property [ | ||
sh:predicate obo:CDAO_0000149; | ||
sh:class obo:CDAO_0000140; | ||
sh:minCount 1; | ||
]; | ||
] | ||
[ | ||
# 2. A phyloref:has_Sibling relationship with another node. | ||
sh:property [ | ||
sh:predicate phyloref:has_Sibling; | ||
sh:class obo:CDAO_0000140; | ||
sh:minCount 1; | ||
]; | ||
] | ||
); | ||
. |
Oops, something went wrong.