template.rdfxml.rul 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.
template st:resourcetype(?in, ?t) {
format {
us:format(if (?bnode, ft:tagbn.html, ft:tag.html))
st:turtle(?t, true)
st:linkuri(?in)
box { st:call-template(st:property, ?in, ?t) }
}
}
where {
bind (isBlank(?in) as ?bnode)
}
]]>
%s" str(?uri) str(?title)
}
}
where {
}
]]>
template st:start(?in) {
format {
us:format(ft:head.html)
ibox { st:call-template(st:prefix) }
str(?body)
}
}
where {
bind(
if (bound(?in), st:call-template(st:main, ?in), st:call-template(st:main))
as ?body )
}
]]>
RDF/XML
%s
"""
us:clean(st:call-template(st:start))
}
}
where {
bind (st:set(st:html, true) as ?b)
}
]]>
template st:listtriple(?x, ?p, ?y) {
format {
us:format(ft:property.html)
st:turtle(?p, true)
box { st:call-template(st:listrec, ?y) }
}
}
where {
}
]]>
template st:resourceref(?in) {
format {
us:format(if (?bnode, ft:resourcerefbn.html, ft:resourceref.html))
st:linkuri(?in)
}
}
where {
bind (isBlank(?in) as ?bnode)
}
]]>
template st:collection(?x, ?p, ?y) {
format {
us:format(ft:collection.html)
st:turtle(?p, true)
box { st:call-template(st:list, ?y) }
}
}
where {
}
]]>
%s
"""
us:clean(st:call-template(st:start, ?in))
}
}
where {
bind (st:set(st:html, true) as ?b)
bind (st:set(st:focus, false) as ?foc)
}
]]>
© 2015 - 2025 Weber Informatics LLC | Privacy Policy