DEPRECATION WARNING

This documentation is not using the current rendering mechanism and is probably outdated. The extension maintainer should switch to the new system. Details on how to use the rendering mechanism can be found here.

EXT: Semantic Templates

Created:2010-02-18T17:33:18
Changed:2011-05-13T15:45:38
Classification:nr_semantic_templates
Description:The keywords help with categorizing and tagging of the manuals. You can combine two or more keywords and add additional keywords yourself. Please use at least one keyword from both lists. If your manual is NOT in english, see next tab "language" ---- forEditors (use this for editors / german "Redakteure") forAdmins (use this for Administrators) forDevelopers (use this for Developers) forBeginners (manuals covering TYPO3 basics) forIntermediates (manuals going into more depth) forAdvanced (covering the most advanced TYPO3 topics) see more: http://wiki.typo3.org/doc_template#tags ----
Keywords:semantic web, templates, forEditors, forAdmins
Author:Christian Weiske
Email:christian.weiske@netresearch.de
Info 4:
Language:en

img-1 img-2 EXT: Semantic Templates - nr_semantic_templates

EXT: Semantic Templates

Extension Key: nr_semantic_templates

Language: en

Keywords: semantic web, templates, forEditors, forAdmins

Copyright 2010-2011, Christian Weiske, <christian.weiske@netresearch.de>

This document is published under the Open Content License

available from http://www.opencontent.org/opl.shtml

The content of this document is related to TYPO3

- a GNU/GPL CMS/Framework available from www.typo3.org

Table of Contents

EXT: Semantic Templates 1

`Introduction 3 <#__RefHeading__597_725726808>`_

What does it do? 3

Screenshots 3

`Users manual 6 <#__RefHeading__603_725726808>`_

Using a different LESS installation 6

Caching 7

`Links 8 <#__RefHeading__619_725726808>`_

Introduction

What does it do?

The “ Semantic Templates ” extension displays HTML templates from a ` LESS <http://less-st.sourceforge.net/>`_ installation in TYPO3 pages.

LESS is a web application to create HTML templates and fill them with data from the semantic web (linked data: RDF, RDFa; and SPARQL query results).

You can use it to display data from i.e. the Wikipedia on your TYPO3 page. Your page updates automatically when the data in Wikipedia change, and with LESS you have a central place to manage the layout of your template. Other people can improve your templates or add new ones, ready for you to use.

Apart from Wikipedia, you can make use of any data that are available as Linked Data (RDF/RDFa) or via SPARQL queries. FOAF profiles of people are a good example for RDF data.

Screenshots

img-3 Abbildung 1: Facts from the "Berlin" Wikipedia page on a TYPO3 page

img-4 Abbildung 2: Editing a semantic template in the TYPO3 backend

img-5 Abbildung 3: The LESS installation's website

img-6 Abbildung 4: Editing a template in LESS

Users manual

“Semantic Templates” is a simple frontend plugin that you can insert anywhere on a page.

In the standard “page” tool, create a new content element

Select “Plugins”

Click on “Semantic Template”

Now the content element is inserted on the page and can be configured.

Visit your LESS installation to get an overview about the available templates. By default, the extension uses http://less.aksw.org/ so have a look at it.

Either pick a template you like or create a new one

In the plugin settings, choose your selected template

Enter the data URI. If you selected the city fact box , try http://dbpedia.org/resource/Berlin or http://dbpedia.org/resource/London

Save and preview your page

If you experience problems, check the “Enable debug output” box and you will get information that hopefully help you solving the issue.

Using a different LESS installation

By default, Semantic Templates uses the official LESS demo installation at http://less.aksw.org/

For performance or privacy reasons, you can also obtain the LESS source code from sourceforge and install it on your own servers.

The LESS URL of each semantic template plugin on a page can be configured on the “Basic settings” tab:

img-7 Abbildung 5: Plugin configuration: Basic settings

Since changing that every single time is time consuming, you may define a system wide LESS URL in the extension configuration (via the extension manager):

img-8 Abbildung 6: System wide extension configuration

Caching

Rendered templates are cached for one day on the local server.

If you are logged into the backend or use the no_cache=1URL parameter, the cache is not used.