From 660a8ea8f2912a7162a9fb41c7cce7c8478e882f Mon Sep 17 00:00:00 2001 From: shinobu Date: Tue, 11 Sep 2018 12:44:47 +0200 Subject: [PATCH] fix variable names, only issue left are the untested targetClass calls --- ShacShifter/JekyllRDFSerializer.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ShacShifter/JekyllRDFSerializer.py b/ShacShifter/JekyllRDFSerializer.py index 6d524a5..2c20ec5 100644 --- a/ShacShifter/JekyllRDFSerializer.py +++ b/ShacShifter/JekyllRDFSerializer.py @@ -9,7 +9,7 @@ class JekyllRDFSerializer: content = [] outputfile = '' - def __init__(self, shapes, outputfile): + def __init__(self, nodeShapes, outputfile): try: fp = open(outputfile, 'w') self.outputfile = outputfile @@ -20,12 +20,11 @@ def __init__(self, shapes, outputfile): self.content.append(''' \n''') - self.logger.debug(shapes) + self.logger.debug(nodeShapes) self.content.append('
\n') self.content.append("

{{ page.rdf.iri }}

\n") self.content.append("""{% assign type = page.rdf | rdf_property: "" %}\n""") - nodeShapes = shapes[0] for nodeShape in nodeShapes: self.nodeShapeEvaluation(nodeShapes[nodeShape], fp) self.content.append("""