All Downloads are FREE. Search and download functionalities are using the official Maven repository.

sttl.turtle.main.rq Maven / Gradle / Ivy

#
# Turtle Pretty Printer
# Olivier Corby, Wimmics Inria I3S, 2013
#
template st:main { 
    st:apply-templates(?x)  " ."
    ; separator = "\n\n"
}
where {
  select distinct ?x where { 
    bind (st:focus() as ?x)
    bind (st:joker() as ?z)
    bind (st:joker() as ?q)
    ?x ?p ?y  
    #filter (isURI(?x) || not exists { ?z ?q ?x })   
    filter (isURI(?x) || ! xt:exists(?z, ?q, ?x))          
  } 
  order by if (isURI(?x), 0, 1) ?x
}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy