Public
Edited
Aug 10, 2024
Insert cell
md`# Quads with a View`
Insert cell
md`
One may have noticed recently, that the controls in our query editor have changed ever so slightly.
In particular, the entries in the query list have an additional icon: a link.

${sparqlImage}

If you follow the link, it presents the results from the query on a new page.
In some regards, this is the same as the result pane in the editor window, but
it offers at least two advantages.
First, each column can be rearranged to be in ascending or descending order.
Second, the view is available for each query stored for a repository independent of the query editor.
As the menu to the right indicates,

${viewImage}

in addition to the HTML presentation, a request to the respective typed resource yields
the results as a document in the expected encoding. for example

http://dydra.com/jhacker/foaf/all.srj

yields
\`\`\`
{
"head": {
"vars": [
"s",
"p",
"o"
]
},
"results": {
"bindings": [
{
"s": {
"type": "uri",
"value": "http:\/\/datagraph.org\/jhacker\/#self"
},
"p": {
"type": "uri",
"value": "http:\/\/www.w3.org\/1999\/02\/22-rdf-syntax-ns#type"
},
"o": {
"type": "uri",
"value": "http:\/\/xmlns.com\/foaf\/0.1\/Person"
}
},
{
"s": {
"type": "uri",
"value": "http:\/\/datagraph.org\/jhacker\/#self"
},
"p": {
"type": "uri",
"value": "http:\/\/xmlns.com\/foaf\/0.1\/mbox"
},
"o": {
"type": "uri",
"value": "mailto:jhacker@example.org"
}
},
...
]
}
}
\`\`\`
`
Insert cell
sparqlImage = FileAttachment("all-sparql.png").image()

Insert cell
viewImage = FileAttachment("all-view.png").image()
Insert cell
import {catalog} from "@lomoramic/blog-catalog"
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more