next up previous contents
Next: Select result size Up: Header Previous: Sort   Contents

Select display

The display clause enables to tune the pretty-printer that generates RDF/XML markup.

By default the RDF pretty-printer generates embedded RDF/XML markup for embedded resources. It also is possible to pretty print embedded resources by reference with the rdf:resource syntax using the display flat statement.

select display flat where

By default, Corese displays the target type of resources, not the type given in the query. It is possible to display the query type of each target resource.

select display asquery where

By default Corese does not return blank node ID, unless necessary. It is possible to request that blank node ID be returned by using the clause below. In this case, Corese generate a blank node ID that can be reused in another query to retrieve the blank node.

select display blank where

It is possible to generate a table of the results using the display table clause. A column is generated for each selected variable and each result (possibly a set of grouped solutions) is assigned a row. The following clauses apply to the table rows : group, sort, distinct.

select ?name ?date ?title
group ?person 
display table 
where
?person c:author ?doc
?person c:name ?name
?doc c:date ?date
?doc c:title ?title

When there is group (see below) with two arguments, it is possible to return result as a table with the grouped arguments as entries. Each cell of the table contains result corresponding to a pair of values for the two joined arguments.

select group ?x group ?y display table where
?x ?p ?y

Limit the number of elementary statements to be displayed (number of resources plus number of properties ) :

select display 100 where


next up previous contents
Next: Select result size Up: Header Previous: Sort   Contents
Olivier Corby 2005-07-01