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

template.dsmain.rul Maven / Gradle / Ivy






 

template st:start(?shapeGraph) {
    ?g
}
where {
  bind (coalesce(?shapeGraph, st:get(st:shape), st:shape) as ?shape)
  bind (coalesce(st:get(st:function), sh:shacl) as ?fun)
  bind (funcall(?fun, ?shape) as ?g)
}
]]>





 

template st:main(?shape, ?name, ?s, ?sh) {
    ?g
}
where {
  bind (
    sh:shacl(?shape, 
        apply(?name, if (bound(?sh), xt:list(?shape, ?s, ?sh), xt:list(?shape, ?s))) )
    as ?g) 
}
]]>





 
prefix fun:   
prefix java:   
prefix doc:  

# @compile   @path 

# @import 

@import    

template st:profile {} where {}


@skip
function st:aggregate(out) {
  st:agg_and(out)
}

@skip
function st:default(term){
    true
}

@skip
function st:defaultNamed(term){
    true
}

#
# Template optimizer
# Results of graph ?shape { ?sh sh:property ?cst } are cached in table: ?sh -> Mappings
# Next evaluations are retrieved from cache: 40% faster
#
function st:optimize(shape, sh){
    true
}







]]>








© 2015 - 2025 Weber Informatics LLC | Privacy Policy