Search⌘ K
AI Features

Query the Local RDF Service: Minor Query Forms

Explore how to perform minor SPARQL queries such as ASK and DESCRIBE on a local RDF service. Understand how the ASK query returns a boolean result while DESCRIBE provides detailed descriptions of resources. This lesson helps you gain practical skills in querying RDF graphs within Elixir.

We'll cover the following...

ASK

Let’s have a look at the ASK query form.

XML
iex> IO.puts (ask_q = read_query("lib/ask.rq").data)
iex> result = ask_q |> sparql!
iex> result.results

Line 1: We use a simple ASK query that tests a graph with the graph pattern it supplies. We save this query string as the ...