aboutsummaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-03-22 21:35:59 +0100
committerDavid Robillard <d@drobilla.net>2020-04-10 19:46:04 +0200
commit55f8ee266cd705a5abfdaf80e96427dd84350240 (patch)
treea6feb57229c459402cc2800b531107149dbf9430 /wscript
parentadbb099856fd80445d7a6627460ce239c4bc902a (diff)
downloadlv2-55f8ee266cd705a5abfdaf80e96427dd84350240.tar.xz
Add more specific property types
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