All Downloads are FREE. Search and download functionalities are using the official Maven repository.

query.prefix.rq Maven / Gradle / Ivy

Go to download

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