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

Jekyll-RDF not useable on default page #73

Closed FTeichmann closed 7 years ago

FTeichmann commented 7 years ago

Using this configuration, I have trouble displaying anything from the graph on the default (landing) page.

Even obviously malformed SPARQL like below results in no error and no output at all.

        {% capture query %}
        SELECT ?position WHERE{
            this is no correct SPARQL!
        }
        {% endcapture %}
        {% assign resultset = page.rdf | sparql_query: query %}
        {% for result in resultset %}
        {{ result.test }}
        {% endfor %}

Normal liquid syntax can be used and is evaluated as expected.

white-gecko commented 7 years ago

Actually RDF is usable. The issue is, that no page.rdf was present because the respective resource was not present in the RDF-Model so it was not rendered using Jekyll-RDF.