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

render_path is empty for resource, which is not page.rdf #85

Closed white-gecko closed 7 years ago

white-gecko commented 7 years ago

The property render_path of an RdfResource is empty, if it is not the page.rdf resource.

MWE:

graph:

<http://example.org/Resource> <http://example.org/rel> <http://example.org/RelatedResource> .
<http://example.org/RelatedResource> <http://example.org/rel> <http://example.org/RelatedResource> .

template:

{% assign rel = page.rdf | rdf_property: '<http://example.org/rel>' %}
{{ rel.render_path }}

actual: nothing

expected:

http://example.org/RelatedResource
white-gecko commented 7 years ago

Please also add a test for this

Simaris commented 7 years ago

it is somewhat intended behaviour since resources that are not used as page resources are not rendered. render_path is also somewhat redundant since page_url and render_path are currently nearly the same.

white-gecko commented 7 years ago

The difference between page_url and render_path is also depicted in #94 .

white-gecko commented 7 years ago

Closed by #101