-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #485 from ucoProject/Release-1.0.0
Release 1.0.0
- Loading branch information
Showing
94 changed files
with
7,703 additions
and
2,722 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 @@ | ||
[submodule "dependencies/CASE-Utility-SHACL-Inheritance-Reviewer"] | ||
path = dependencies/CASE-Utility-SHACL-Inheritance-Reviewer | ||
url = https://github.com/casework/CASE-Utility-SHACL-Inheritance-Reviewer.git | ||
[submodule "dependencies/collections-ontology"] | ||
path = dependencies/collections-ontology | ||
url = https://github.com/collections-ontology/collections-ontology.git | ||
[submodule "dependencies/error"] | ||
path = dependencies/error | ||
url = https://github.com/SPAROntologies/error.git |
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
Submodule CASE-Utility-SHACL-Inheritance-Reviewer
updated
30 files
+7 −3 | .github/workflows/ci.yml | |
+2 −0 | .gitignore | |
+14 −0 | .pre-commit-config.yaml | |
+32 −33 | LICENSE.md | |
+27 −1 | Makefile | |
+5 −0 | README.md | |
+5 −0 | README.md.in | |
+124 −252 | case_shacl_inheritance_reviewer/__init__.py | |
+3 −9 | lib/Makefile | |
+1 −1 | lib/rdf-toolkit.jar.sha512 | |
+0 −35 | ontology/shacl-inheritance-review.ttl | |
+13 −5 | setup.cfg | |
+45 −8 | tests/Makefile | |
+47 −0 | tests/PASS_datatype_ontology.ttl | |
+0 −18 | tests/XFAIL_class_inheritance.ttl | |
+0 −17 | tests/XFAIL_class_ontology.ttl | |
+0 −85 | tests/XFAIL_datatype_inheritance.ttl | |
+0 −127 | tests/XFAIL_datatype_ontology.ttl | |
+18 −87 | tests/XFAIL_maxCount_inheritance.ttl | |
+6 −26 | tests/XFAIL_maxCount_ontology.ttl | |
+18 −87 | tests/XFAIL_minCount_inheritance.ttl | |
+6 −26 | tests/XFAIL_minCount_ontology.ttl | |
+0 −60 | tests/XFAIL_subprop_inheritance.ttl | |
+7 −51 | tests/XFAIL_subprop_ontology.ttl | |
+53 −0 | tests/ex-constraint-repetition.ttl | |
+0 −25 | tests/ex_ttl.py | |
+32 −0 | tests/kb-test-8.ttl | |
+18 −0 | tests/kb-triangle-4.ttl | |
+1 −0 | tests/requirements.txt | |
+153 −87 | tests/test_all.py |
Submodule collections-ontology
added at
619e7b
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,59 @@ | ||
#!/usr/bin/make -f | ||
|
||
# This software was developed at the National Institute of Standards | ||
# and Technology by employees of the Federal Government in the course | ||
# of their official duties. Pursuant to title 17 Section 105 of the | ||
# United States Code this software is not subject to copyright | ||
# protection and is in the public domain. NIST assumes no | ||
# responsibility whatsoever for its use by other parties, and makes | ||
# no guarantees, expressed or implied, about its quality, | ||
# reliability, or any other characteristic. | ||
# | ||
# We would appreciate acknowledgement if the software is used. | ||
|
||
# This Makefile is adapted from /src/review.mk. It is expected to be | ||
# short-lived, because at the time of this writing, there is a separate | ||
# proposal revising the CI process to no longer use Make for Turtle | ||
# normalization. | ||
# TODO https://github.com/ucoProject/UCO/issues/373 | ||
|
||
SHELL := /bin/bash | ||
|
||
top_srcdir := $(shell cd ../.. ; pwd) | ||
|
||
ttl_basenames := $(shell find *.ttl -type f | sort) | ||
|
||
# These are reference files, named with a leading dot. | ||
check_reference_basenames := $(foreach ttl_basename,$(ttl_basenames),.check-$(ttl_basename)) | ||
|
||
# These are recipe targets, not intended to be created files. | ||
check_targets := $(foreach ttl_basename,$(ttl_basenames),check-$(ttl_basename)) | ||
|
||
all: \ | ||
$(check_reference_basenames) | ||
|
||
.check-%.ttl: \ | ||
%.ttl \ | ||
$(top_srcdir)/.lib.done.log | ||
java -jar $(top_srcdir)/lib/rdf-toolkit.jar \ | ||
--inline-blank-nodes \ | ||
--source $< \ | ||
--source-format turtle \ | ||
--target $@_ \ | ||
--target-format turtle | ||
mv $@_ $@ | ||
|
||
check: \ | ||
$(check_targets) | ||
|
||
# Reminder: diff exits non-0 on finding any differences. | ||
# Reminder: The $^ automatic Make variable is the name of all recipe prerequisites. | ||
check-%.ttl: \ | ||
%.ttl \ | ||
.check-%.ttl | ||
diff $^ \ | ||
|| (echo "ERROR:ontology/co/Makefile:The local $< does not match the normalized version. If the above reported changes look fine, run 'cp .check-$< $<' while in the sub-folder ontology/co/ to get a file ready to commit to Git." >&2 ; exit 1) | ||
|
||
clean: | ||
@rm -f $(check_reference_basenames) | ||
|
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,159 @@ | ||
# imports: http://purl.org/co | ||
|
||
@prefix co: <http://purl.org/co/> . | ||
@prefix owl: <http://www.w3.org/2002/07/owl#> . | ||
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . | ||
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . | ||
@prefix sh: <http://www.w3.org/ns/shacl#> . | ||
@prefix uco-co: <https://ontology.unifiedcyberontology.org/co/> . | ||
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . | ||
|
||
<https://ontology.unifiedcyberontology.org/co> | ||
a owl:Ontology ; | ||
rdfs:label "uco-co"@en ; | ||
rdfs:comment "This ontology defines SHACL shapes to supplement the OWL 2 DL definitions in the Collections Ontology."@en ; | ||
owl:imports <http://purl.org/co> ; | ||
owl:ontologyIRI <https://ontology.unifiedcyberontology.org/co> ; | ||
owl:versionIRI uco-co:1.0.0 ; | ||
. | ||
|
||
co:ListItem | ||
rdfs:subClassOf co:Item ; | ||
. | ||
|
||
uco-co:List-shape | ||
a sh:NodeShape ; | ||
sh:property [ | ||
sh:class co:ListItem ; | ||
sh:path co:item ; | ||
] ; | ||
sh:targetClass co:List ; | ||
. | ||
|
||
uco-co:ListItem-shape | ||
a sh:NodeShape ; | ||
sh:property [ | ||
rdfs:comment "Adapted from restriction on co:ListItem."@en ; | ||
sh:maxCount "1"^^xsd:integer ; | ||
sh:path co:index ; | ||
] ; | ||
sh:targetClass co:ListItem ; | ||
. | ||
|
||
uco-co:firstItem-subjects-previousItem-shape | ||
a sh:PropertyShape ; | ||
sh:description "The first item in a list must not have a previous item."@en ; | ||
sh:maxCount "0"^^xsd:integer ; | ||
sh:path ( | ||
co:firstItem | ||
co:previousItem | ||
) ; | ||
sh:targetSubjectsOf co:firstItem ; | ||
. | ||
|
||
uco-co:firstItem-subjects-shape | ||
a sh:PropertyShape ; | ||
sh:class co:ListItem ; | ||
sh:maxCount "1"^^xsd:integer ; | ||
sh:nodeKind sh:BlankNodeOrIRI ; | ||
sh:path co:firstItem ; | ||
sh:targetSubjectsOf co:firstItem ; | ||
. | ||
|
||
uco-co:followedBy-subjects-shape | ||
a sh:PropertyShape ; | ||
sh:class co:Item ; | ||
sh:description "This shape encodes in SHACL that co:followedBy has range co:Item (induced via the propertyChainAxiom on co:item and superproperty relationship with co:nextItem)."@en ; | ||
sh:nodeKind sh:BlankNodeOrIRI ; | ||
sh:path co:followedBy ; | ||
sh:targetSubjectsOf co:followedBy ; | ||
. | ||
|
||
uco-co:index-subjects-shape | ||
a sh:PropertyShape ; | ||
sh:datatype xsd:positiveInteger ; | ||
sh:nodeKind sh:Literal ; | ||
sh:path co:index ; | ||
sh:targetSubjectsOf co:index ; | ||
. | ||
|
||
uco-co:item-subjects-shape | ||
a sh:PropertyShape ; | ||
sh:class co:Item ; | ||
sh:nodeKind sh:BlankNodeOrIRI ; | ||
sh:path co:item ; | ||
sh:targetSubjectsOf co:item ; | ||
. | ||
|
||
uco-co:itemContent-subjects-shape | ||
a sh:NodeShape ; | ||
sh:not [ | ||
a sh:PropertyShape ; | ||
sh:class co:Item ; | ||
sh:description "This shape encodes in SHACL that the range of co:itemContent is the complement of co:Item."@en ; | ||
sh:path co:itemContent ; | ||
] ; | ||
sh:property [ | ||
a sh:PropertyShape ; | ||
sh:description "This shape encodes in SHACL that co:itemContent is an OWL FunctionalProperty (giving the sh:maxCount constraint)."@en ; | ||
sh:maxCount "1"^^xsd:integer ; | ||
sh:nodeKind sh:BlankNodeOrIRI ; | ||
sh:path co:itemContent ; | ||
] ; | ||
sh:targetSubjectsOf co:itemContent ; | ||
. | ||
|
||
uco-co:lastItem-subjects-shape | ||
sh:class co:ListItem ; | ||
sh:maxCount "1"^^xsd:integer ; | ||
sh:nodeKind sh:BlankNodeOrIRI ; | ||
sh:path co:lastItem ; | ||
sh:targetSubjectsOf co:lastItem ; | ||
. | ||
|
||
uco-co:nextItem-subjects-shape | ||
a sh:PropertyShape ; | ||
sh:class co:Item ; | ||
sh:description "This shape encodes in SHACL that co:nextItem is a FunctionalProperty (giving the sh:maxCount constraint), and has range co:Item (induced via the propertyChainAxiom on co:item)."@en ; | ||
sh:maxCount "1"^^xsd:integer ; | ||
sh:nodeKind sh:BlankNodeOrIRI ; | ||
sh:path co:nextItem ; | ||
sh:targetSubjectsOf co:nextItem ; | ||
. | ||
|
||
uco-co:precededBy-subjects-shape | ||
a sh:PropertyShape ; | ||
sh:class co:Item ; | ||
sh:description "This shape encodes in SHACL that co:precededBy has range co:Item (induced via the propertyChainAxiom on co:item and superproperty relationship with co:previousItem)."@en ; | ||
sh:nodeKind sh:BlankNodeOrIRI ; | ||
sh:path co:precededBy ; | ||
sh:targetSubjectsOf co:precededBy ; | ||
. | ||
|
||
uco-co:previousItem-subjects-shape | ||
a sh:PropertyShape ; | ||
sh:class co:Item ; | ||
sh:description "This shape encodes in SHACL that co:previousItem is a FunctionalProperty (giving the sh:maxCount constraint), and has range co:Item (induced via the propertyChainAxiom on co:item)."@en ; | ||
sh:maxCount "1"^^xsd:integer ; | ||
sh:nodeKind sh:BlankNodeOrIRI ; | ||
sh:path co:previousItem ; | ||
sh:targetSubjectsOf co:previousItem ; | ||
. | ||
|
||
uco-co:size-subjects-shape | ||
a sh:PropertyShape ; | ||
sh:datatype xsd:nonNegativeInteger ; | ||
sh:maxCount "1"^^xsd:integer ; | ||
sh:nodeKind sh:Literal ; | ||
sh:path co:size ; | ||
sh:targetSubjectsOf co:size ; | ||
. | ||
|
||
[] | ||
a owl:Axiom ; | ||
rdfs:comment "This triple is repeated from the Collections Ontology."@en ; | ||
owl:AnnotatedProperty rdfs:subClassOf ; | ||
owl:AnnotatedSource co:ListItem ; | ||
owl:AnnotatedTarget co:Item ; | ||
. | ||
|
Oops, something went wrong.