Hi Florian, Have you checked out Exhibit tutorial? http://simile.mit.edu/wiki/Exhibit/Getting_Started_Tutorial
Section Lenses should answer your question. I guess you need to augment your template with the following: <span ex:content=".count"></span> X <span ex:content=".typ"></span> Alexey On Tue, Jul 20, 2010 at 12:33 AM, Florian Brönnimann <[email protected]> wrote: > Hello, > Let's say I have a list of orders, which contain a list of item types > and count. For example: > Order A: > Type: Pen > Count: 2 > Type: Eraser > Count: 1 > Order B: > ... > > I would do a query like this to obtain the list of orders (SPARQL > syntax): > SELECT ?label ?typ ?count > WHERE { > // Select all orders and their label > ?order rdf:type my:Order; > rdfs:label ?label. > > // Plus all OrderRecord's associated to this order > // Order 1 ---> * OrderRecord > // With OrderRecord being (type, count) > ?orec rdf:type my:OrderRecord; > my:orOrder ?order; > my:orItemType ?typ; > my:orItemCount ?count. > } > > Now I get several records with the same label; in the following > example, I'd have: > { "label": "Order A", "typ": "Pen", "count": "2" }, > { "label": "Order A", "typ": "Eraser", "count": "1"}, > { "label": "Order B", ... }, > > Exhibit does group these records. Nice, but now if I put for example > this (in a row template under a tabular view): > <span ex:content=".typ"></span> > It will display "Pen and Eraser" for the first record. I would like to > customize this output, and display it for example as a table, or like > this: "2x Pen, 1x Eraser". Is it possible? I think I missed a > concept... > Thanks in advance for your help, > Florian > > -- > You received this message because you are subscribed to the Google Groups > "SIMILE Widgets" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/simile-widgets?hl=en. > > -- You received this message because you are subscribed to the Google Groups "SIMILE Widgets" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/simile-widgets?hl=en.
