sttl.owl.init.rq Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of corese-core Show documentation
Show all versions of corese-core Show documentation
Corese is a Semantic Web Factory (triple store and SPARQL endpoint) implementing RDF, RDFS, SPARQL 1.1
Query and Update.
#
# defaut processing of a variable is
# st:turtle on URI
# st:apply-templates on Blank and Literal
# Literals are displayed by st:xsdLiteral (literalvalue.rq)
# otherwise must use st:turtle explicitely (e.g. cardinality.rq)
#
# Olivier Corby, Wimmics Inria I3S, 2014
#
template st:profile(?in) {
}
where {}
function st:process(?in) {
if (isURI(?in), st:protect(?in),
st:apply-templates(?in))
}
function st:protect(?in) {
let (?t = st:turtle(?in)){
if (coalesce(st:get(st:html), false) &&
strstarts(?t, "<")){
replace(?t, "<", "<")
}
else {
?t
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy