diff options
author | David Robillard <d@drobilla.net> | 2020-03-22 21:35:59 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-04-10 19:46:04 +0200 |
commit | 55f8ee266cd705a5abfdaf80e96427dd84350240 (patch) | |
tree | a6feb57229c459402cc2800b531107149dbf9430 /wscript | |
parent | adbb099856fd80445d7a6627460ce239c4bc902a (diff) | |
download | lv2-55f8ee266cd705a5abfdaf80e96427dd84350240.tar.xz |
Add more specific property types
Diffstat (limited to 'wscript')
-rw-r--r-- | wscript | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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 |