Changes
Jump to navigation
Jump to search
Line 18:
Line 18:
− +
Line 31:
Line 31:
− +
− +
no edit summary
AS %predicates
AS %predicates
WITH {SELECT ?node ?nodeRGB WHERE {
WITH {SELECT ?node ?nodeRGB WHERE {
{{#if {{{node_condition}}}|?node {{{node_condition}}}.||}}
{{#if: {{{node_condition}}}|?node {{{node_condition}}}.||}}
?node {{{predicate}}} ?predicateFilterValue.
?node {{{predicate}}} ?predicateFilterValue.
INCLUDE %predicateFilterValues.
INCLUDE %predicateFilterValues.
?subject ?predicate ?object.
?subject ?predicate ?object.
# This is filtering for each edge twice, potentially a huge waste: |E|*|V| instead of |V|
# This is filtering for each edge twice, potentially a huge waste: |E|*|V| instead of |V|
{{#if {{{node_condition}}}|?subject {{{node_condition}}}.||}}
{{#if: {{{node_condition}}}|?subject {{{node_condition}}}.||}}
{{#if {{{node_condition}}}|?object {{{node_condition}}}.||}}
{{#if: {{{node_condition}}}|?object {{{node_condition}}}.||}}
BIND(?predicateRGB as ?edgeRGB)
BIND(?predicateRGB as ?edgeRGB)
}
}