Advertisement
Guest User

Untitled

a guest
May 27th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SPARQL 0.39 KB | None | 0 0
  1. PREFIX g: <http://www.semanticweb.org/anato/ontologies/2017/7/untitled-ontology-186#>
  2. SELECT DISTINCT *
  3. WHERE {
  4.      ?p1 (g:hasGoodRel|^g:hasGoodRel)|(g:hasBadRel|^g:hasBadRel) ?p2.
  5.      ?p2 (g:hasGoodRel|^g:hasGoodRel)|(g:hasBadRel|^g:hasBadRel) ?p3.
  6.      ?p3 (g:hasGoodRel|^g:hasGoodRel)|(g:hasBadRel|^g:hasBadRel) ?p1
  7.  
  8.      FILTER(STR(?p1) < STR(?p2) && STR(?p2) < STR(?p3))            
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement