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 {
?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|
?subject {{{node_condition}}}.
{{#if {{{node_condition}}}|?subject {{{node_condition}}}.||}}
?object {{{node_condition}}}.
{{#if {{{node_condition}}}|?object {{{node_condition}}}.||}}
BIND(?predicateRGB as ?edgeRGB)
BIND(?predicateRGB as ?edgeRGB)
}
}