AKSW / jekyll-rdf

📃 A Jekyll plugin to include RDF data in your static site or build a complete site for your RDF graph
http://aksw.org/Projects/JekyllRDF
Other
57 stars 10 forks source link

NoMethodError if a class is configured that does not appear in the source file #97

Closed Simaris closed 7 years ago

Simaris commented 7 years ago

if we change

...
jekyll_rdf:
  ...
  class_template_mappings:
    "http://pcai042.informatik.uni-leipzig.de/~dtp16#SimpsonPerson" : "simpsonPerson.html"
  ...

to

...
jekyll_rdf:
  ...
  class_template_mappings:
    "http://pcai042.informatik.uni-leipzig.de/~dtp16/#SimpsonPerson" : "simpsonPerson.html"
  ...

a NoMethodError accures since http://pcai042.informatik.uni-leipzig.de/~dtp16/#SimpsonPerson is not in our ttl

ghost commented 7 years ago

both of the code blocks appear same, what is the difference ?

Simaris commented 7 years ago

there is a / before # in http://pcai042.informatik.uni-leipzig.de/~dtp16/#SimpsonPerson

white-gecko commented 7 years ago

Mappings of RDF classes to templates should just be ignored, if the according class is not used in the provided model. Maybe there could be some info output, it jekyll is started with verbose parameter jekyll build --verbose