XHTML blocks

Blocks that embed XHTML markup as an RDF literal

XHTML block is simply a fragment of XHTML, stored as a canonical XML literal in the RDF document. It can be edited using a WYSIWYG editor.

RDF serialization

@prefix ldh: <https://w3id.org/atomgraph/linkeddatahub#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .

<https://localhost:4443/concepts/example/#xhtml-block>
    a       ldh:XHTML ;
    rdf:value "<div xmlns=\"http://www.w3.org/1999/xhtml\">\n<p>A paragraph</p>\n</div>"^^rdf:XMLLiteral .

Management

User interface

Content blocks can only be managed when the Content layout mode is active.

Action Description
Create Click the XHTML button at the bottom of the page (in content mode). Create the XHTML content in the WYSIWYG editor. Click Save.
Update Click the button in the top-right corner of the block (it will only appear when you move the mouse close to that corner). Change the XHTML content in the WYSIWYG editor. Click Save.
Delete Click the button in the top-right corner of the block (it will only appear when you move the mouse close to that corner). Click the button to delete the block.

Command line interface

Action CLI script
Create add-xhtml-block.sh
Update
Delete