diff options
-rwxr-xr-x | lv2specgen/lv2specgen.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/lv2specgen/lv2specgen.py b/lv2specgen/lv2specgen.py index 13422d2..822f539 100755 --- a/lv2specgen/lv2specgen.py +++ b/lv2specgen/lv2specgen.py @@ -658,8 +658,16 @@ def buildIndex(m, classlist, proplist, instalist=None): for c in classlist: if c in shown: continue - if findOne(m, c, rdfs.subClassOf, None): + + # Skip classes that are subclasses of classes defined in this spec + local_subclass = False + for p in findStatements(m, c, rdfs.subClassOf, None): + parent = str(p[2]) + if parent[0:len(spec_ns_str)] == spec_ns_str: + local_subclass = True + if local_subclass: continue + shown[c] = True name = termName(m, c) if name.startswith(spec_ns_str): |