
query.functionalproperty.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!
select * where {
?x a us:Test
bind (us:surface(?x) as ?s)
}
function us:surface(?x) {
let ((?w, ?l) = select * where { ?x us:width ?w ; us:length ?l }){
?w * ?l
}
}
function xt:produce(?q){
let ((?s, ?p, ?o) = ?q){
if (?p = rdf:type){ xt:list(xt:triple(us:obj, rdf:type, us:Test))}
else if (?p = us:width){ xt:list(xt:triple(us:obj, us:width, 2)) }
else { xt:list(xt:triple(us:obj, us:length, 3)) }
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy