template.turtlehtml.rul Maven / Gradle / Ivy
"
group {
if (bound(?pr), "", "")
"a "
if (bound(?pr), "", "")
if (?refer, st:turtle(?c), ?c)
if (bound(?pr), st:call-template(st:provenance, ?pr), "")
; separator = concat(" ;", st:nl())
}
""
if (?rest, concat(" ;", st:nl()), "")
}
where {
values ?p { rdf:type }
?in ?p ?c
bind (kg:provenance(?p) as ?pr)
bind(
exists { ?in ?q ?v . filter (?q != rdf:type) }
as ?rest)
bind(isBlank(?c) && exists { ?x ?q ?c . filter(?in != ?x) }
as ?refer)
}
]]>
"""
st:call-template-with(st:pperror, st:start, ?in)
""""""
}
where {
}
]]>
"""
st:call-template(st:ibox, ?in)
""
}
where {
}
]]>
", "")
?p " "
if (bound(?pr), "", "")
if (?refer, st:turtle(?y),
if (isURI(?y) && ?y = rdf:nil, "()", ?y))
if (bound(?pr), st:call-template(st:provenance, ?pr), "")
; separator = concat(" ;", st:nl())
}
where {
?in ?p ?y
bind (kg:provenance(?p) as ?pr)
filter(?p not in (rdf:type))
bind(
isBlank(?y)
&& ( (st:isStart() && exists { ?x ?q ?y . filter(?in != ?x) })
|| exists { ?y ?q ?y }
|| ?in = ?y
)
as ?refer)
}
order by ?p ?y
]]>
"
}
where {
bind ( replace(str(?pr), "\n", "\\\\n") as ?b )
}
]]>
",
st:apply-templates(?in), ""),
if (strstarts(st:turtle(?in), "<"), replace(st:turtle(?in), "<", "<"), st:turtle(?in))
)
}
function st:default(?in) {
st:turtle(?in)
}
]]>
", "")
?in
if (st:visited(?in), "", "")
ibox {
st:nl()
st:call-template(st:type, ?in)
st:call-template(st:value, ?in)
}
" ."
}
where {
?in ?p ?y
filter(isUri(?in))
}
limit 1
]]>
© 2015 - 2025 Weber Informatics LLC | Privacy Policy