Changes

Jump to navigation Jump to search
no edit summary
Line 18: Line 18:  
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.
Line 31: Line 31:  
     ?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)
 
   }
 
   }
Anonymous user

Navigation menu