Skip to content

Commit

Permalink
fix variable names, only issue left are the untested targetClass calls
Browse files Browse the repository at this point in the history
  • Loading branch information
shinobu committed Sep 11, 2018
1 parent fb8803b commit 660a8ea
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions ShacShifter/JekyllRDFSerializer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -20,12 +20,11 @@ def __init__(self, shapes, outputfile):
self.content.append('''<html><head>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.2/css/bootstrap.min.css">
</head><body>\n''')
self.logger.debug(shapes)
self.logger.debug(nodeShapes)
self.content.append('<div class ="container">\n')
self.content.append("<h2>{{ page.rdf.iri }}</h2>\n")
self.content.append("""{% assign type = page.rdf | rdf_property: "<http://www.w3.org/1999/02/22-rdf-syntax-ns#type>" %}\n""")

nodeShapes = shapes[0]
for nodeShape in nodeShapes:
self.nodeShapeEvaluation(nodeShapes[nodeShape], fp)
self.content.append("""</div><div>
Expand Down

0 comments on commit 660a8ea

Please sign in to comment.