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

query.shacl.funpath.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!
#
# Path extension defined as function
#
insert data {
    us:Jack foaf:age "20" .
    
    us:test a sh:NodeShape ;
    sh:targetSubjectsOf foaf:age ;
    sh:path (foaf:age [xsh:function [ us:cast(xsd:integer)]]) ;
    sh:datatype xsd:integer .
}

@public 
function us:cast(source, node, param) {
    let ((fun) = param) {
        xt:print("cast:", st:turtle(node), funcall(fun, node));
        xt:list(funcall(fun, node))
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy