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

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

The newest version!
#
# Turtle Pretty Printer
# Olivier Corby, Wimmics Inria I3S, 2013
#
template st:start {
  st:prolog("@prefix")
  group { 
    st:apply-templates(?x)
    ; separator = "\n\n"
  }
}
where {
  select distinct ?x where { 
    ?x ?p ?y     
    filter ( 
      isURI(?x) 
      || not exists { ?z ?q ?x }
      || (isBlank(?x) 
	  && (exists { ?a ?q ?x . ?b ?r ?x . filter(?a != ?b) }
	   || exists { ?x ?q ?x }
	  ))
    )
  } order by ?x
}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy