{% for _,_, license in chain(g.triples((targetres, SDO.license, None)),g.triples((res, SDO.license, None))) %}
{% if (license, SDO.name, None) in contextgraph %}
{% elif license.startswith("http") %}
{% else %}
{% endif %}
{% endfor %}
{% for _,_, res2 in chain(g.triples((targetres, SDO.softwareHelp, None)), g.triples((res, SDO.softwareHelp, None))) %}
{% if g.value(res2, SDO.name) and g.value(res2, SDO.url) %}
{% elif g.value(res2, SDO.url) %}
{% endif %}
{% endfor %}
{% for _,_, res2 in chain(g.triples((targetres, SDO.documentation, None)), g.triples((res, SDO.documentation, None))) %}
{% if g.value(res2, SDO.name) and g.value(res2, SDO.url) %}
{% elif g.value(res2, SDO.url) %}
{% endif %}
{% endfor %}
{% for title, res2 in chain(get_triples(g, targetres, CODEMETA.referencePublication), get_triples(g, res, CODEMETA.referencePublication)) %}
{% if res2 and g.value(res2, SDO.url) %}
{% else %}
{% endif %}
{% endfor %}
{% for title, res2 in chain(get_triples(g, targetres, SDO.citation),get_triples(g, res, SDO.citation)) %}
{% if res2 and g.value(res2, SDO.url) %}
{% else %}
{% endif %}
{% endfor %}
{% for label, res2 in get_triples(g, res, CODEMETA.funding, abcsort=True) %}
{% if res2 and g.value(res2, SDO.url) %}
{% else %}
{% endif %}
{% endfor %}
{% for label, res2 in get_triples(g, targetres, SDO.funder, abcsort=True) %}
{% if res2 and g.value(res2, SDO.url) %}
{% else %}
{% endif %}
{% endfor %}