diff options
-rw-r--r-- | core.lv2/lv2.ttl | 2 | ||||
-rwxr-xr-x | lv2specgen/lv2specgen.py | 7 |
2 files changed, 6 insertions, 3 deletions
diff --git a/core.lv2/lv2.ttl b/core.lv2/lv2.ttl index 50152c2..8d33877 100644 --- a/core.lv2/lv2.ttl +++ b/core.lv2/lv2.ttl @@ -495,7 +495,7 @@ lv2:Point a rdfs:Class , owl:Class ; owl:cardinality 1 ; rdfs:comment "A Point MUST have exactly one rdf:value." ; ] ; - rdfs:comment """ + lv2:documentation """ A Point describes an interesting value in a Port's range (much like a labeled <q>notch</q> on a physical knob). A Point has a string label and a value; the type of the value MUST be compatible with the type of the corresponding Port. diff --git a/lv2specgen/lv2specgen.py b/lv2specgen/lv2specgen.py index 97d50db..3b2ede3 100755 --- a/lv2specgen/lv2specgen.py +++ b/lv2specgen/lv2specgen.py @@ -590,7 +590,7 @@ def buildIndex(m, classlist, proplist, instalist=None): return tree azlist += class_tree(c) azlist += '</li>' - azlist = """%s</dd></ul>\n""" % azlist + azlist += '</ul></dd>\n' if (len(proplist) > 0): azlist += "<dt>Properties</dt><dd>" @@ -768,7 +768,10 @@ def getInstances(model, classes, properties): if inst not in instances and str(inst) != spec_url: instances.append(inst) for i in model.find_statements(RDF.Statement(None, rdf.type, None)): - if not i.subject.is_resource() or i.subject in classes or i.subject in instances: + if ((not i.subject.is_resource()) + or (i.subject in classes) + or (i.subject in instances) + or (i.subject in properties)): continue full_uri = str(i.subject.uri) if (full_uri.startswith(spec_ns_str)): |