package rdf_lwt

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

Lwt-based Sparql Protocol HTTP Binding.

Using the Rdf.Sparql_http.Make functor.

val base_headers : ?accept:string -> unit -> Cohttp.Header.t

base_headers () Gives the base headers used for bindings

val result_of_response : (content_type:string -> string -> Rdf.Sparql_protocol.out_message) -> (Cohttp.Response.t * Cohttp_lwt.Body.t) -> Rdf.Sparql_protocol.out_message Lwt.t

result_of_response f response f will be applied on the content-type and body string of the response. If the status is between 200 and 300 exclued, f is called, else Rdf.Sparql_protocol.Error is returned.

The following items are created with the Rdf.Sparql_http.Make functor. See the documentation of Rdf.Sparql_http.S.

val get : ?graph:Rdf.Graph.graph -> base:Iri.t -> ?accept:string -> Uri.t -> Rdf.Sparql_protocol.in_message -> result
val post : ?graph:Rdf.Graph.graph -> base:Iri.t -> ?accept:string -> Uri.t -> ?query_var:string -> Rdf.Sparql_protocol.in_message -> result
OCaml

Innovation. Community. Security.