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

query.demo.federateconstructwimmics.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!
#
# Equivalent to wget
# method = post|get
# format = xml|json  rdfxml|jsonld|turtle
# sparql query & update
#
@log 
@report

select *
(coalesce(fun:report("message"), fun:report("info"), fun:report("error"))   as ?mes) 
(fun:report("size")   as ?size) 
(fun:report("server") as ?s) 
(fun:report("time")   as ?time)
(fun:report("date")   as ?date)
where {

values ?uri {
    
    
    
    
    
}

values ?method {"post" "get" }
values ?format {"rdfxml" "jsonld" "turtle"} 

bind (uri(xt:format("%s?method=%s&format=%s&mode=trace;show;local", ?uri, ?method, ?format)) as ?url)

bind (xt:format("@federate <%s> construct {?s ?p ?o} where {?s ?p ?o} limit 1", ?url) as ?query)

bind (xt:sparql(?query) as ?res)
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy