Try something like this
{ label: "Tea in London",
type: "Pricing",
city: "London",
product: "Tea",
price: 5
},
{ label: "Coffee In New York",
type: "Pricing",
city: "New York",
product: "Coffee",
price: 3
},
...
David
Rahul Nabar wrote:
> Hi,
>
> I had another very basic Question; I'm not too conversant with the RDF
> format, so here goes. Lets say I was creating a model for cities and
> what it costs(in Dollars) for a set of items in each one. I have data
> of the sort:
>
> London:Tea:5
> NewYork:Coffe:3
> NewYork:Tea:4
> NewYork:Burger:4
>
> etc.
>
> Now I tried a .js file of the sort below. I'm not sure whether I have
> the best format under the RDF framework. I mean it renders in Exhibit
> but I only can sort etc. on the "cities". eg. NY has three different
> food stuffs and they just get flattened as a list in the
> Table/ExhibitTable/Tile views. Or maybe I need to tweak the html code
> I used from the examples? I wasn't sure which side: I mean change my
> data structure or the html display snippets........
>
> Any better sugesstions?
>
> Thanks!
>
> -Rahul
>
>
> ********************************************
> {
> types: {
> "City": {
> pluralLabel: "Cities"
> }
> },
> properties: {
> "Cost": {
> valueType: "number"
> }
> },
> items: [
> { label: "London",
> type: "City",
> Food: "Tea",
> Cost: "5"
> },
> { label: "NewYork",
> type: "City",
> Food: "Coffe",
> Cost: "3"
> },
> { label: "NewYork",
> type: "City",
> Food: "Tea",
> Cost: "4"
> },
> { label: "NewYork",
> type: "City",
> Food: "Burger",
> Cost: "4"
> },
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> General mailing list
> [email protected]
> http://simile.mit.edu/mailman/listinfo/general
>
_______________________________________________
General mailing list
[email protected]
http://simile.mit.edu/mailman/listinfo/general