Skip to content

Commit

Permalink
Missing RDF writer
Browse files Browse the repository at this point in the history
  • Loading branch information
oxixes committed Nov 20, 2023
1 parent c8ef147 commit 2ef617a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/wirecloud/commons/utils/template/writers/rdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,11 @@ def build_rdf_graph(template_info):
else:
raise Exception('Unsupported resource type: %s' % template_info['type'])

# Macversion
if not 'macversion' in template_info:
template_info['macversion'] = '1'
graph.add((resource_uri, WIRE['macVersion'], rdflib.Literal(template_info.get('macversion'))))

# Create basic info
provider = rdflib.BNode()
graph.add((provider, rdflib.RDF.type, GR['BusinessEntity']))
Expand Down

0 comments on commit 2ef617a

Please sign in to comment.