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

query.shacl.extension.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!
#
# Constraint extension defined as function
#
insert data {
    us:John foaf:knows us:Jack .

    us:ext a sh:NodeShape ;
    sh:targetSubjectsOf foaf:knows ;
    sh:property [
        sh:path foaf:knows ;
        xsh:function [ us:test("value") ] 
    ] .
}

@public 
function us:test(source, node, param) {
    xt:print("source:", st:turtle(source), "node:", st:turtle(node), "param:", param);
    true
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy