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

sttl.spintc.template.projection.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.

There is a newer version: 4.6.1
Show newest version
#
# share with filter: triple bind values
#
prefix sp:  

template {
  ?suc 
}
where {
    
    ?q sp:resultVariables ?sel    
    ?sel rdf:rest*/rdf:first ?v
    ?v sp:varName ?n

    bind ( 
      exists { ?q sp:where/(! sp:void)+ ?b
      filter (st:call-template(st:bound, ?b, ?n)) }
    as ?bound) 
    
    bind (
      if (exists { ?v sp:expression ?e }, ! ?bound, ?bound)
    as ?suc)
    
    filter (st:visit(st:fail, ?v, ?suc))
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy