
query.prefix.rq Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of corese-gui Show documentation
Show all versions of corese-gui Show documentation
Corese is a Semantic Web Factory (triple store and SPARQL endpoint)
implementing RDF, RDFS, SPARQL 1.1 Query and Update, Shacl. STTL. LDScript.
The newest version!
prefix ex:
select *
where {
?x ?p ?y
filter mapany(us:test, ?x, st:prefix())
}
function us:test(?uri, ?def){
let ((?p, ?n) = ?def){
strstarts(?uri, ?n)
}
}
function us:check(){
let (?q = xt:query()){
for (?t in ?q){
let ((?s, ?p, ?o) = ?t){
if (isURI(?p) && not exists {?x ?p ?y}){
xt:display('Missing: ', ?t)}
}}}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy