aboutsummaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
Diffstat (limited to 'wscript')
-rw-r--r--wscript9
1 files changed, 9 insertions, 0 deletions
diff --git a/wscript b/wscript
index fa45db5..20d958d 100644
--- a/wscript
+++ b/wscript
@@ -510,6 +510,15 @@ def test_vocabularies(check, specs, files):
check(lambda: str(documentation).endswith('\n\n'),
name = "%s documentation ends with blank line" % subject)
+ # Check that all properties are either datatype or object properties
+ for r in sorted(model.triples([None, rdf.type, rdf.Property])):
+ subject = r[0]
+
+ check(lambda: ((owl.DatatypeProperty in model.objects(subject, rdf.type)) or
+ (owl.ObjectProperty in model.objects(subject, rdf.type)) or
+ (owl.AnnotationProperty in model.objects(subject, rdf.type))),
+ name = "%s is a Datatype/Object/Annotation property" % subject)
+
def test(tst):
import tempfile