+
LinkedDataHub blocks in the editor
+
+
This page runs the editor with the LinkedDataHub blocks
+ extension: blocks defined purely in RDF — queries, charts, referenced
+ resources — embedded wherever an ordinary XHTML block can go. Each one is
+ stored as a few RDFa attributes; the rendering below is fetched and drawn on
+ the fly (content-negotiated from this server) and is never saved with the
+ page. Check Source in the toolbar to see the storage form,
+ or Extract RDF for the triples.
+
+
A chart block
+
A ldh:ResultSetChart pointing at a SPARQL query document:
+
+
+
+
+ country
+ population
+
+
+
Blocks nest per the content model
+
Anywhere a block element is allowed, an object block is allowed — here an
+ ldh:Object embedding a resource inside a list item:
+
+ - Author of the analytical engine notes:
+
+
+
+
+ - Ordinary list items edit as usual around it.
+
+
+
Try it: press / in an empty paragraph and pick "Block…", or
+ use the ▦ toolbar button. Select a block with the arrow keys, delete it with
+ Backspace, undo with Ctrl/Cmd+Z — it behaves as one atomic unit.
+
+
+
diff --git a/demo/queries/population/index.rdf b/demo/queries/population/index.rdf
new file mode 100644
index 0000000..457fd8e
--- /dev/null
+++ b/demo/queries/population/index.rdf
@@ -0,0 +1,19 @@
+
+