From 55f8ee266cd705a5abfdaf80e96427dd84350240 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 22 Mar 2020 21:35:59 +0100 Subject: Add more specific property types --- wscript | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'wscript') 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 -- cgit v1.2.1