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

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

#
# Turtle Pretty Printer
# Olivier Corby, Wimmics Inria I3S, 2013
#
template {
  if (?refer, concat(st:turtle(?in), " "), "[")
  
  ibox {
	st:call-template(st:value, ?in)
  } 
      
  if (?refer, "", "]")
}
where {
  ?in ?p ?y   
  filter isBlank(?in)
  bind (st:joker() as ?e)
  filter (! xt:exists(?in, rdf:first, ?e) )
     
  bind (
    st:get(st:reference, true)
    ||
    #(st:get(st:allgraph, true) && exists { ?a ?q ?in . ?b ?r ?in  filter(?a != ?b) })
    (st:get(st:allgraph, true) && xt:mindegree(?in, 1, 2))
	|| xt:exists(?in, ?e, ?in) 
    
  as ?refer)
  
  bind (st:cset(st:bnode, ?in, true) as ?bn)
  
}
limit 1




© 2015 - 2025 Weber Informatics LLC | Privacy Policy