aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-10-20 20:21:53 +0000
committerDavid Robillard <d@drobilla.net>2011-10-20 20:21:53 +0000
commit9b4d2917ce2e61ea3854670e80730dfed42c1e88 (patch)
treed886dc6e6136577c5cde8f0f5b5aad84d2648971
parentf02b28e44f0b275b8d43268715618302aad02378 (diff)
downloadlv2-9b4d2917ce2e61ea3854670e80730dfed42c1e88.tar.xz
Fix invalid markup in output.
-rw-r--r--core.lv2/lv2.ttl2
-rwxr-xr-xlv2specgen/lv2specgen.py7
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)):