Create content
Learn how to create data-driven content
Each document (container or item) can have content, i.e. a list of blocks which is shown in the content layout mode. Currently, the following content types are supported:
- XHTML
- A fragment of XHTML that is embedded onto the page
- Object
- RDF URI resources that get transcluded into the page. Built-in resource examples:
- Linked Data resource
- Any URI that resolves to RDF data
- View
- A paginated result of a SPARQL
SELECT
query (client-side "container") - Chart
- A result of a SPARQL query rendered as a chart
Content other than HTML content is called object. The HTML content is part of the document while resource content is simply embedded (transcluded) into the HTML page.
XHTML blocks
Add block
To create a new XHTML block, follow these steps:
- Make sure you're in the content layout mode
- At the bottom of the page, click the XHTML button
- Add content in the WYSIWYG editor
- Click the Save button to save the block
After this, a new XHTML block should be appended to the page, replacing the form.
Edit block
To edit an XHTML block, follow these steps:
- Move the mouse to the very top-right of the block element where an editing button should appear
- Make changes in the WYSIWYG editor that appears
- Click Save to save the block
To remove an XHTML block, follow these steps:
- Move the mouse to the very top-right of the block element where an editing button should appear
- Click the button (in the top-right of the block) to remove the block
To add a new XHTML block with the value <p>A paragraph</p>, replace owner_cert_password with the value of the corresponding secret and execute the following command:
add-xhtml-block.sh \ -b "https://localhost:4443/" \ -f ./ssl/owner/cert.pem \ -p "$owner_cert_password" \ --fragment "xhtml-block" \ --value "<div xmlns=\\\"http://www.w3.org/1999/xhtml\\\"><p>A paragraph</p></div>" \ "https://localhost:4443/concepts/example/"
Object blocks
Add block
To create a new object block, follow these steps:
- Make sure you're in the content layout mode
- At the bottom of the page, click the Object button
- Fill out values in the form that appears
- Value
- The URI of the object resource
- Click the Save button to save the block
After this, a new object block should be appended to the page, replacing the form.
Edit block
To edit an object block, follow these steps:
- Move the mouse to the very top-right of the block element where an editing button should appear
- Make changes in the editing form:
- Value
- The URI of the object resource
- Click Save at the bottom of the form to save the block
To remove an object block, follow these steps:
- Move the mouse to the very top-right of the block element where an editing button should appear
- Click the button (in the top-right of the block) to remove the block
To add a new object block with the value http://dbpedia.org/resource/Copenhagen, replace $owner_cert_password with the value of the corresponding secret and execute the following command:
add-object-block.sh \ -b "https://localhost:4443/" \ -f ./ssl/owner/cert.pem \ -p "$owner_cert_password" \ --fragment "object-block" \ --value "http://dbpedia.org/resource/Copenhagen" \ "https://localhost:4443/concepts/example/"