Exhibit: Connected collections

39 views
Skip to first unread message

nicolasvl

unread,
Apr 22, 2008, 1:05:23 PM4/22/08
to SIMILE Widgets
Hi,

I'm trying to work out how to use connected collections (similar to
the Tate example : http://people.csail.mit.edu/dfhuynh/misc/tate/tate-collection.html).

Basically, I trying to build an exhibit of a DOAP document
(Description of a Project), where I have the following structure of
nodes:

Project(s) -> Version(s) -> Feature(s)

(The Feature is not part of the DOAP, I'm extending it to maintain a
record of individual fixes and new features)

Following the Tate example, no problem in building the collection
roles:

<div ex:role="collection"
ex:itemTypes="Project"
id="c3d"></div>
<div ex:role="collection"
ex:itemTypes="Version"
ex:baseCollectionID="c3d"
ex:expression=".release"
ex:restrictBaseCollection="true"
id="c3d-version"></div>
<div ex:role="collection"
ex:itemTypes="Feature"
ex:baseCollectionID="c3d-version"
ex:expression=".features"
ex:restrictBaseCollection="true"
id="c3d-feature"></div>

I can also add individual views for each type of nodes:

<div ex:role="view"
ex:label="Versions"
ex:viewClass="Tile"
ex:collectionID="c3d-version"
ex:showAll="true">

</div>
<div ex:role="view"
ex:label="Features"
ex:collectionID="c3d-feature"
ex:viewClass="Tile"
ex:showAll="true">

But what I am also trying to get is a view that will combine the
(filtered) items for BOTH the Versions and Features. The idea is to
get all of them in a timeline.
If I define a collection like this:
<div ex:role="collection"
ex:itemTypes="Project,Version,Feature"
id="c3d-combine"></div>
I end up with all items unfiltered by the facets.

I tried several variations but to no avail. Any hint about how to
acvhieve a combined view?

Nicolas

nicolasvl

unread,
Apr 22, 2008, 1:30:51 PM4/22/08
to SIMILE Widgets
BTW, you can have a look at a demo here : http://www.calques3d.org/timeline.html

David Huynh

unread,
Apr 22, 2008, 9:54:55 PM4/22/08
to simile-...@googlegroups.com
Nicolas,

Try defining this collection

<div ex:role="collection"
ex:baseCollectionID="c3d-feature"
ex:expression="union(value, !features)"
id="c3d-version-feature"></div>


In the expression, "value" will compute to the set of features (from
c3d-feature) and "!features" will compute to the set of those features'
versions.

David

nicolasvl

unread,
Apr 23, 2008, 5:36:59 AM4/23/08
to SIMILE Widgets
Yes!

I tried different use of the union function, even tried my own
redefinition but didn't think about using a backward hop.
I need to have a look at the documentation again.

Thanks for your help (and more questions to come :-)

Nicolas
Reply all
Reply to author
Forward
0 new messages