Description added at predicate level too

pull/76/head
Alexandre Dulaunoy 2017-10-25 15:24:45 +02:00
parent b1426ef306
commit 1207b123f7
No known key found for this signature in database
GPG Key ID: 09E2CD4944E6CBCD
1 changed files with 2 additions and 0 deletions

View File

@ -119,6 +119,8 @@ for taxonomy in taxonomies:
for predicate in t['predicates']: for predicate in t['predicates']:
if args.a: if args.a:
doc = asciidoc(content=predicate['value'], adoc=doc, t='predicate') doc = asciidoc(content=predicate['value'], adoc=doc, t='predicate')
if predicate.get('description'):
doc = asciidoc(content=machineTag(namespace=namespace, predicate=predicate['description']), adoc=doc, t='description')
if t.get('values') is None: if t.get('values') is None:
if args.a: if args.a:
doc = asciidoc(content=machineTag(namespace=namespace, predicate=predicate['value']), adoc=doc) doc = asciidoc(content=machineTag(namespace=namespace, predicate=predicate['value']), adoc=doc)