Just a quick clarification: by "two periods" I didn't mean you should
insert ".." anywhere, but that one period should be placed before each
of the two instances of "authors" in the ex:orders attribute. (I'm not
suggesting this clarification will bring success.)

jk

On Sep 16, 4:39 pm, Michael Fitzgerald <[email protected]> wrote:
> JK -
>
> Many thanks for your assistance. Using two periods anywhere just gives
> "bad order expression".
>
> The things I have managed to get to sort properly are indeed the
> one-placename things like .title and .date. Nodes cause problems.
>
> I translated the rdf into json and I think I have determined that the
> sorting is being done by the label of the *next-higher* node. Is there
> something I am supposed to be doing differently to get it all the way
> to the end?
>
> For example, if I say ex:orders=".surname" it stops at "authors" and
> sorts on the label of that. In the "sorted by" spot it says surname
> but can someone confirm that sorting by a multi-node expression is
> possible?
>
> Is there something I should be defining somewhere?
>
> A little 3-item exhibit 
> here:http://lrdudc.wrlc.org/jazz/collections/just_three-js.html
>
> Its 3-item json here:http://lrdudc.wrlc.org/jazz/collections/just_three.js
>
> Mike
>
>
>
> On Thu, Sep 16, 2010 at 1:42 PM, Arithmeticus <[email protected]> wrote:
> > Hi Mike,
>
> > Under ex:orders, try inserting the two periods that should precede
> > "authors". If that doesn't work, back up and see if the sort function
> > will work on *any* of the fields, especially the one-placename ones.
>
> > My thanks, too, to David for pointing out the XML importer page.
> > Although it's not clearly written, it may help me reconsider a few
> > problems I'm encountering.
>
> > jk
>
> > On Sep 15, 12:44 pm, Michael Fitzgerald <[email protected]> wrote:
> >> Hmm - never had any problems getting the exhibit to display here (and
> >> it still works for me right now). It does everything it should:
> >> faceting, etc. It just doesn't sort.
>
> >> Given RDF data of the form that Zotero spits out:
>
> >>     <bib:Book rdf:about="urn:isbn:9780826515322">
> >>         <dc:date>2006</dc:date>
> >>         <dc:identifier>ISBN 9780826515322</dc:identifier>
> >>         <dc:publisher>
> >>             <foaf:Organization>
> >>                <foaf:name>Vanderbilt University Press</foaf:name>
> >>             </foaf:Organization>
> >>         </dc:publisher>
> >>         <dc:title>A Shot In The Dark</dc:title>
> >>         <bib:authors>
> >>             <rdf:Seq>
> >>                 <rdf:li>
> >>                     <foaf:Person>
> >>                         <foaf:givenname>Martin</foaf:givenname>
> >>                         <foaf:surname>Hawkins</foaf:surname>
> >>                     </foaf:Person>
> >>                 </rdf:li>
> >>             </rdf:Seq>
> >>         </bib:authors>
> >>         <z:itemType>book</z:itemType>
> >>     </bib:Book>
>
> >> Should this do the job?
>
> >> <div ex:role="collection" ex:itemTypes="Book"></div>
> >>         <div ex:role="view" ex:orders="authors.surname, authors.givenname"
> >> ex:directions="ascending, ascending" ex:showAll="true"</div>
>
> >> The answer has to be no, since it doesn't..... But why?
>
> >> Right now, the xml reader seems to introduce new complexity, but if
> >> that's the only way to solve the problem, I'll have to deal with that.
> >> Frustrating that the live example on the wiki which is about books
> >> doesn't work.
>
> >> Mike
>
> >> On Wed, Sep 15, 2010 at 11:41 AM, David Karger <[email protected]> wrote:
> >> >  Mike, when I try to examine the exhibit I get a "failed to load js file"
> >> > error---it's having trouble reading the results returned from babel.
>
> >> > in case it simplifies your pipeline, you might consider using the 
> >> > build-in
> >> > xml reader now part of trunk.simile-widgets.org .  You should be able to 
> >> > set
> >> > it to parse your rdf-xml:
> >> >http://www.simile-widgets.org/wiki/Exhibit/XML_Importer
>
> >> > On 9/15/2010 9:53 AM, Michael Fitzgerald wrote:
>
> >> >> I'm working on a simple book collection exhibit based on an RDF export
> >> >> from Zotero. The problem I'm encountering is in getting the items to
> >> >> sort alphabetically by author name. I've figured out how to get the
> >> >> first name and last name to display in the lens and I've figured out
> >> >> how to get last name to appear as a facet (would love to have that be
> >> >> "last, first" combined instead, if that's possible). But when trying
> >> >> to use those identical terms (authors.surname and authors.givenname)
> >> >> in ex:orders, I get what just seems to be random order. I suspect it
> >> >> might have something to do with nodes and is probably an easy fix. Any
> >> >> assistance gratefully received.
>
> >> >> Exhibit here:
>
> >> >>http://lrdudc.wrlc.org/jazz/collections/stokes-books-rdf.html
>
> >> >> RDF data here:
>
> >> >>http://lrdudc.wrlc.org/jazz/collections/stokes-books.rdf
>
> >> >> Thanks -
>
> >> >> Mike
>
> >> > --
> >> > 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 
> > athttp://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.

Reply via email to