What I am trying to do is use exhibit on a data set where the item
labels have periods in them.  So, let's say I have JSON data like:

{
       items: [
           {   label:              "John Doe",
               type:               "Person",
               "Employee.Age":                36,
               "Employee.Likes":              "Mary Smith",
               "Employee.Colors":   [ "blue", "yellow" ]
           }
      ]
}

Now I want to display one of the fields in Exhibit like "Employee.Age".
If I try something like
<div ex:role="exhibit-view"
       ex:viewClass="Exhibit.TabularView"
       ex:columns=".label, .Employee.Age">
</div>

It will choke on Employee.Age due to the period.  I tried .Employee\.Age
but that did not work either, so I'm wondering how to escape the period
so that exhibit does not try to parse it.

Thanks,

Corwin



-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Gabriel Durazo
Sent: Monday, August 06, 2007 12:25 PM
To: General List
Subject: Re: Escaping characters in Exhibit

As an initial guess, Javascript objects can have property id's with  
periods in them, as long as the whole thing has quotes around it. So,  
I suppose you could try "Employees.Salary". If that doesn't work, I  
can look through the code and see. What exactly are you trying to do  
that's having an issue because of the dots?

~Gabe


On Aug 6, 2007, at 11:21 AM, Corwin Joy wrote:

> I'm using Exhibit as a reporting tool versus SPARQL queries and am so
> far liking it a lot.  I do have a question, however. Some of my column
> names contain a period (".") .  So, e.g. I have column names like
> Employees.Salary  .  Is there a way to escape the "." character so  
> that
> exhibit can handle this kind of column name?  I tried looking through
> the docs and mailing list but did not see anything on this.
>
> Thanks for any help,
>
> Corwin
>
>
>
> _______________________________________________
> General mailing list
> [email protected]
> http://simile.mit.edu/mailman/listinfo/general

_______________________________________________
General mailing list
[email protected]
http://simile.mit.edu/mailman/listinfo/general

_______________________________________________
General mailing list
[email protected]
http://simile.mit.edu/mailman/listinfo/general

Reply via email to