daily pastebin goal
71%
SHARE
TWEET

Untitled

a guest Jul 8th, 2018 92 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. PREFIX  vg:   <http://example.org/vg/>
  2. PREFIX  rdf:  <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
  3.  
  4. SELECT DISTINCT ?path_A ?pathSeq_A ?path_B ?pathSeq_B {
  5.     {
  6.     SELECT  (?path AS ?path_A) (GROUP_CONCAT(?sequence ; SEPARATOR='') AS ?pathSeq_A)
  7.     WHERE
  8.       { ?step  vg:path    ?path ;
  9.                vg:node    ?node ;
  10.                vg:rank    ?rank .
  11.         ?node  rdf:value  ?sequence
  12.       }
  13.     GROUP BY ?path
  14.     ORDER BY ASC(MAX(?rank))
  15.     }
  16.    
  17.     {
  18.     SELECT (?path AS ?path_B) (GROUP_CONCAT(?sequence ; SEPARATOR='') AS ?pathSeq_B)
  19.     WHERE
  20.       { ?step  vg:path    ?path ;
  21.                vg:node    ?node ;
  22.                vg:rank    ?rank .
  23.         ?node  rdf:value  ?sequence
  24.       }
  25.     GROUP BY ?path
  26.     ORDER BY ASC(MAX(?rank))
  27.  
  28.     }
  29. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top