content,
<div xmlns="http://www.w3.org/1999/xhtml"
xmlns:kid="http://purl.org/kid/ns#">
<?python
FOAF = redfoot.namespace("http://xmlns.com/foaf/0.1/")
DOAP = redfoot.namespace("http://usefulinc.com/ns/doap#")
project = URIRef("%s#" % request.host)
people = []
seen = set()
for property in [DOAP.maintainer, DOAP.developer, DOAP.documenter, DOAP.translator, DOAP.tester, DOAP.helper]:
for person in redfoot.objects(project, property):
if person not in seen:
seen.add(person)
label = redfoot.label(person) or person
relationships = set()
for relationship in redfoot.predicates(project, person):
relationships.add(redfoot.label(relationship))
people.append((label, person, relationships))
people.sort()
?>
<ul>
<li kid:for="label, person, relationships in people">
<a href="${redfoot.value(person, FOAF.homepage)}">${label}</a>,
${redfoot.value(person, FOAF.nick, any=True)},
(${", ".join(relationships)})
</li>
</ul>
</div>
Comments regarding http://redfoot.net/3.0/doap/contributors_content
Login to submit a comment.