{%- if include.iri -%} {%- capture iri -%}<{{include.iri}}>{%- endcapture -%} {% comment %} iri:"{{iri | escape }}" {% endcomment %} {%- assign linksResource = iri | rdf_get -%}

Linked Resources

{%- capture query -%} SELECT ?predicate ?object WHERE { <{{linksResource}}> ?predicate ?object . FILTER isIRI(?object) } {%- endcapture -%} {% comment %}
{{ query | escape}}
{% endcomment %} {% assign resultset = page.rdf | sparql_query: query %}

Resources linking here

{%- capture query -%} SELECT ?subject ?predicate WHERE { ?subject ?predicate <{{linksResource}}> . FILTER isIRI(?subject) } {%- endcapture -%} {% comment %}
{{ query | escape}}
{% endcomment %} {% assign resultset = page.rdf | sparql_query: query %}

Resources using this as predicate

{%- capture query -%} SELECT ?subject WHERE { ?subject <{{linksResource}}> ?predicate . FILTER isIRI(?subject) } {%- endcapture -%} {% comment %}
{{ query | escape}}
{% endcomment %} {% assign resultset = page.rdf | sparql_query: query %} {%- endif -%}