sttl.datashape.path.uniquelang.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.
prefix sh:
template sh:uniqueLang (?shape, ?sh, ?vis, ?s, ?p, ?l, ?o){
let (?suc = false, ?b = st:report(sh:uniqueLang, ?sh, ?shape, ?s, ?p, ?lang, ?suc, ?vis)){
sh:safe(?shape, ?sh, ?suc)
}
}
where {
select ?shape ?s ?p ?lang (count(?val) as ?c)
where {
values ?val { unnest(sh:path(?shape, ?s, ?p)) }
bind (lang(?val) as ?lang)
filter (bound(?lang) && ?lang != "")
}
group by ?lang
having (?c > 1)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy