A TableAppearance is one of the two default appearances of the LDT. A table appearance will be used any time the dataset is the result of a SELECT query and no appearance is explicitely defined with the representation.

Table appearance

By default, for every variable in the SELECT query, a column will be presented. The name of the column will be the same as the name of the variable.

Some variable-names are considered “special”:

Tweaking the appearance

The column title and some other properties can be controled by a elmo:fragment property. The following properties can be definied:

Example

This example shows a Table appearance as a part of some representation.

@prefix elmo: <http://bp4mc2.org/elmo/def#>.
@prefix xhtml: <http://www.w3.org/1999/xhtml/vocab#>.
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>.
@prefix stage: <http://localhost:8080/stage#>. 
stage:TableAppearance a elmo:Part;
	elmo:appearance elmo:TableAppearance;
	elmo:fragment [
		elmo:applies-to "concept";
		rdfs:label "Concept";
	];
	elmo:fragment [
		elmo:applies-to "definition";
		rdfs:label "Definition"@en;
		rdfs:label "Definitie"@nl;
	];
	elmo:fragment [
		elmo:applies-to "versions";
		rdfs:label "Versions";
		rdf:value "Show versions";
		xhtml:link "/query/versions";
	];
	elmo:fragment [
		elmo:applies-to "graph";
		elmo:appearance elmo:HiddenAppearance;
		elmo:name "graph";
	];
	elmo:query '''
		SELECT ?concept ?concept_label (?concept as ?versions) ?definition
		WHERE {
			GRAPH ?graph {
				?concept rdf:type skos:Concept.
				?concept rdfs:label ?concept_label.
				OPTIONAL {
					?concept skos:definition ?definition
				}
			}
		}
	''';
.