-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure test file generation is consistent
Previously, test files were generated in a variety of different ways, both manually and using bubo; it was often unclear why files were generated like this. Where it is possible to do, test files are now generated using bubo consistently. An upper level make file has been added for convenience, and a README file which documents the generation of these files. DataUnionOf constructs are now supported, and the erroneous test file that was hiding this breakage has been updated.
- Loading branch information
Showing
369 changed files
with
5,687 additions
and
2,760 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
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
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,14 @@ | ||
all: | ||
$(MAKE) -C bubo | ||
|
||
all-and-test: | ||
$(MAKE) -C bubo | ||
cargo test | ||
|
||
clean: $(MAKE) -C bubo clean | ||
|
||
force-clean: | ||
-rm owl-xml/*owx | ||
-rm owl-rdf/*owl | ||
-rm owl-ttl/*ttl | ||
-rm owl-functional/*ofn |
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,19 @@ | ||
These are a series of test files in various OWL syntaxes. | ||
|
||
The files in all the owl-* directories are auto-generated from the | ||
bubo directory using the Tawny Bubo | ||
(https://github.com/phillord/tawny-bubo) with associated .clj files | ||
defining the ontology. | ||
|
||
To regenerate all files use "make" in either this directory or the | ||
bubo directory. | ||
|
||
Autogenerated files are added to the git repository for simplicity. | ||
|
||
|
||
There are a number of additional files in the directory `manual` which have been | ||
generated in other ways. Most of these are by hand, when a test needs | ||
to be broken or where the OWL API will not generate the file. | ||
|
||
Finally, `family` and `family-other` are generated by | ||
https://github.com/phillord/owl-primer. |
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 |
---|---|---|
|
@@ -28,4 +28,3 @@ clean: | |
-rm $(TARGETS) | ||
|
||
.PHONY: all clean | ||
|
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,11 @@ | ||
(clojure.core/load-file "ontology.clj") | ||
|
||
(defaproperty a) | ||
|
||
(add-axiom | ||
o | ||
(.getOWLAnnotationPropertyDomainAxiom | ||
(owl-data-factory) | ||
a (iri "http://www.example.com/d"))) | ||
|
||
(save-all) |
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,7 @@ | ||
(cc/load-file "ontology.clj") | ||
|
||
(defoproperty t | ||
:characteristic [(annotate :transitive (label "Annotation on transitive"))]) | ||
|
||
|
||
(save-all) |
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,11 @@ | ||
(clojure.core/load-file "ontology.clj") | ||
|
||
(defaproperty a) | ||
|
||
(add-axiom | ||
o | ||
(.getOWLAnnotationPropertyRangeAxiom | ||
(owl-data-factory) | ||
a (iri "http://www.example.com/d"))) | ||
|
||
(save-all) |
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,8 @@ | ||
(cc/load-file "ontology.clj") | ||
|
||
|
||
(defclass A) | ||
(defindividual I :type A) | ||
|
||
|
||
(save-all) |
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,7 @@ | ||
(cc/load-file "ontology.clj") | ||
|
||
(defclass A | ||
:comment "A comment") | ||
|
||
|
||
(save-all) |
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,12 @@ | ||
(cc/load-file "ontology.clj") | ||
|
||
(defdproperty d) | ||
(defclass C | ||
:super | ||
(.getOWLDataExactCardinality | ||
(owl-data-factory) | ||
1 | ||
(#'tawny.owl/ensure-data-property d) | ||
(#'tawny.owl/ensure-data-range (iri "http://www.w3.org/2001/XMLSchema#integer")))) | ||
|
||
(save-all) |
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,9 @@ | ||
(clojure.core/load-file "ontology.clj") | ||
|
||
(defdproperty dp) | ||
|
||
|
||
(defclass C | ||
:haskey dp) | ||
|
||
(save-all) |
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,7 @@ | ||
(cc/load-file "ontology.clj") | ||
|
||
(defdproperty d) | ||
(defclass C | ||
:super (has-value d "A Literal")) | ||
|
||
(save-all) |
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,12 @@ | ||
(cc/load-file "ontology.clj") | ||
|
||
(defdproperty d) | ||
(defclass C | ||
:super | ||
(.getOWLDataMaxCardinality | ||
(owl-data-factory) | ||
1 | ||
(#'tawny.owl/ensure-data-property d) | ||
(#'tawny.owl/ensure-data-range (iri "http://www.w3.org/2001/XMLSchema#integer")))) | ||
|
||
(save-all) |
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,12 @@ | ||
(cc/load-file "ontology.clj") | ||
|
||
(defdproperty d) | ||
(defclass C | ||
:super | ||
(.getOWLDataMinCardinality | ||
(owl-data-factory) | ||
1 | ||
(#'tawny.owl/ensure-data-property d) | ||
(#'tawny.owl/ensure-data-range (iri "http://www.w3.org/2001/XMLSchema#integer")))) | ||
|
||
(save-all) |
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,7 @@ | ||
(cc/load-file "ontology.clj") | ||
|
||
(defdproperty d) | ||
(defclass C | ||
:super (only d (iri "http://www.w3.org/2001/XMLSchema#integer"))) | ||
|
||
(save-all) |
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,8 @@ | ||
(cc/load-file "ontology.clj") | ||
|
||
(defdproperty dp) | ||
|
||
(defindividual I | ||
:fact (fact dp "A literal")) | ||
|
||
(save-all) |
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,6 @@ | ||
(cc/load-file "ontology.clj") | ||
|
||
(defdproperty dp) | ||
(defdproperty dp1 :disjoint dp) | ||
|
||
(save-all) |
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,7 @@ | ||
(cc/load-file "ontology.clj") | ||
|
||
(defclass C) | ||
(defdproperty dp | ||
:domain C) | ||
|
||
(save-all) |
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,6 @@ | ||
(cc/load-file "ontology.clj") | ||
|
||
(defdproperty dp) | ||
(defdproperty dp1 :equivalent dp) | ||
|
||
(save-all) |
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,6 @@ | ||
(cc/load-file "ontology.clj") | ||
|
||
(defdproperty dp | ||
:characteristic :functional) | ||
|
||
(save-all) |
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,6 @@ | ||
(cc/load-file "ontology.clj") | ||
|
||
(defdproperty dp | ||
:range (iri "http://www.w3.org/2001/XMLSchema#real")) | ||
|
||
(save-all) |
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,6 @@ | ||
(cc/load-file "ontology.clj") | ||
|
||
(defdproperty dp) | ||
(defdproperty dp1 :super dp) | ||
|
||
(save-all) |
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,5 @@ | ||
(cc/load-file "ontology.clj") | ||
|
||
(defdproperty c) | ||
|
||
(save-all) |
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,7 @@ | ||
(cc/load-file "ontology.clj") | ||
|
||
(defdproperty d) | ||
(defclass C | ||
:super (some d (iri "http://www.w3.org/2001/XMLSchema#integer"))) | ||
|
||
(save-all) |
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,7 @@ | ||
(cc/load-file "ontology.clj") | ||
|
||
(defdproperty d) | ||
(defclass C | ||
:super (data-exactly 1 d)) | ||
|
||
(save-all) |
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,6 @@ | ||
(cc/load-file "ontology.clj") | ||
|
||
(defdatatype D | ||
:equivalent (iri "http://www.w3.org/2002/07/owl#real")) | ||
|
||
(save-all) |
Oops, something went wrong.