
query.shacl.funpath.rq Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of corese-gui Show documentation
Show all versions of corese-gui Show documentation
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