From b439ac096d4b61bc5522ec29e5fb8260463e06a9 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 5 Nov 2011 00:09:48 +0000 Subject: Fix invalid markup. --- lv2specgen/lv2specgen.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'lv2specgen') diff --git a/lv2specgen/lv2specgen.py b/lv2specgen/lv2specgen.py index 822f539..d81e500 100755 --- a/lv2specgen/lv2specgen.py +++ b/lv2specgen/lv2specgen.py @@ -299,36 +299,37 @@ def rdfsPropertyInfo(term, m): # Domain stuff domains = findStatements(m, term, rdfs.domain, None) domainsdoc = "" + first = True for d in domains: union = findOne(m, getObject(d), owl.unionOf, None) if union: uris = parseCollection(m, getObject(union)) - first = True for uri in uris: domainsdoc += getProperty(getTermLink(uri, term, rdfs.domain), first) add(classdomains, uri, term) - first = False else: if not isBlank(getObject(d)): - domainsdoc += getProperty(getTermLink(getObject(d), term, rdfs.domain)) + domainsdoc += getProperty(getTermLink(getObject(d), term, rdfs.domain), first) + first = False if (len(domainsdoc) > 0): doc += "Domain%s" % domainsdoc # Range stuff ranges = findStatements(m, term, rdfs.range, None) rangesdoc = "" + first = True for r in ranges: union = findOne(m, getObject(r), owl.unionOf, None) if union: uris = parseCollection(m, getObject(union)) - first = True for uri in uris: rangesdoc += getProperty(getTermLink(uri, term, rdfs.range), first) add(classranges, uri, term) first = False else: if not isBlank(getObject(r)): - rangesdoc += getProperty(getTermLink(getObject(r), term, rdfs.range)) + rangesdoc += getProperty(getTermLink(getObject(r), term, rdfs.range), first) + first = False if (len(rangesdoc) > 0): doc += "Range%s" % rangesdoc -- cgit v1.2.1