From 9b4d2917ce2e61ea3854670e80730dfed42c1e88 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 20 Oct 2011 20:21:53 +0000 Subject: Fix invalid markup in output. --- core.lv2/lv2.ttl | 2 +- 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 notch 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 += '' - azlist = """%s\n""" % azlist + azlist += '\n' if (len(proplist) > 0): azlist += "
Properties
" @@ -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)): -- cgit v1.2.1