sttl.json.propertyvalue.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.
template st:propertyvalue(?x, ?p) {
'"'
if (?p = rdf:type,
'@type',
st:turtle(?p, true))
'": '
if (?mult, "[", "")
group {
if (?p = rdf:type,
st:turtle(str(?y)),
st:apply-templates-with(st:jsonterm, ?y))
; separator = ", "
}
if (?mult, "]", "")
}
where {
{select ?x ?p (count(*) as ?c) where { ?x ?p ?y }}
bind (?c > 1 as ?mult)
?x ?p ?y
}
order by ?y
© 2015 - 2025 Weber Informatics LLC | Privacy Policy