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

query.demo.dbpediatest1.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!
#
# Return list of values found by service call 
#
prefix h: 

@report @detail @skip @trace  

select ?uri ?var ?val
(xt:get(?prov, "url")    as ?url) 
(xt:get(?prov, "server") as ?srv)
where {
service  {
    ?s h:name ?n
}

bind (strlang(?n, "fr") as ?name)

service  {
    ?uri rdfs:label ?name
}

# service report where ?uri member of result
bind (js:provenance(?uri)  as ?prov)

# other reports in ?prov
values ?cont {unnest(js:context(?prov))}

# result of service call
bind (xt:get(?cont, "result") as ?res)

# result as pairs of variable value bindings
values (?var ?val) { unnest(fun:list(?res))}

# select ?uri and ?name
filter (str(?var) = "?uri" || str(?var) = "?name")

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy