sttl.turtlehtml.template.value.save Maven / Gradle / Ivy
#
# Turtle Pretty Printer
# Olivier Corby, Wimmics Inria I3S, 2013
#
template st:value {
format {
"%s %s"
if (?p = rdf:type, "a", st:process(?p))
if (?refer, st:turtle(?y), if (isURI(?y) && ?y = rdf:nil, "()", st:process(?y)))
}
; separator = concat(" ;", st:nl())
}
where {
?in ?p ?y
bind (
isBlank(?y)
&& ( (st:isStart() && exists { ?x ?q ?y . filter(?in != ?x) })
|| exists { ?y ?q ?y }
|| ?in = ?y
)
as ?refer)
}
order by if (?p = rdf:type, 0, 1) ?p ?y
© 2015 - 2025 Weber Informatics LLC | Privacy Policy