Re: timeline view

5 views
Skip to first unread message

David Huynh

unread,
Jun 2, 2008, 11:00:30 AM6/2/08
to simile-...@googlegroups.com, cezar...@gmail.com
Discussion moved to simile-...@googlegroups.com for the reason
stated here
http://simile.mit.edu/mail/ReadMsg?listName=General&msgId=24861

Cezar Neaga wrote:
> hey,
>
> can you guys help me out with this.
> i developed a "peace & conflict timeline <http://www.pact.lk>" for the
> sri lankan ethnic conflict in wordpress 2.5.1
>
> i want to display the events in a timeline but the pressline plugin
> doesnt work in wp 2.5.1
Have you tried to contact the pressline developers?

> i have been looking at exhibit 2.0 to try and use this but i am not
> sure how i could convert the posts in this blog to a proper data file.
> basically i want all the posts to be displayed on the timeline
> according to the time of post
>
> if you can help me, thanks,
What format is the posts in? Can you get a JSON feed of the posts?

David

cezar

unread,
Jun 3, 2008, 6:12:44 AM6/3/08
to SIMILE Widgets
i dont know if you saw my reply on email. i just figured my way in
this group so i will reply here again.
"thank you for your reply.
yes i have contacted the pressline dev but nothing back so far.
i have tried to use babel to get a JSON feed out of the posts but to
no avail.

the posts on a wordpress blog are in a mysql database and there are
rss feeds that basically use xml (i think)
thanks anyway. i will keep bugging the pressline dev maybe he can sort
it.

i thought you guys were familiar with wordpress. :)
"
pressline uses about 10 lines of code to generate the xml file that
can then be used by simile's api.
at the same time pressline only offers a full display of the entire
list of posts.

i would be interested in further filtering being allowed based on
categories, tags, time periods breakdowns, etc.
regards,

C

sostler

unread,
Jun 9, 2008, 4:36:01 PM6/9/08
to SIMILE Widgets
Hi Cezar,

It looks like Wordpress supports outputting an RDF feed as XML
(http://codex.wordpress.org/Customizing_Feeds), which Exhibit can
import via the 'rdf+xml' type. (Exhibit uses Babel to understand the
feed -- see http://simile.mit.edu/babel/ for more info.) Definitely
give that a shot; if that doesn't work, then if you'd like to link to
an example Wordpress RSS feed, we can see what would be required to
import it into Exhibit. Some kind soul on the list might have
experience doing something similar :)

> i would be interested in further filtering being allowed
> based on categories, tags, time periods breakdowns, etc.

This sounds like what Exhibit's facets are made for, so I hope you can
get this working!

Scott

cezar

unread,
Jun 10, 2008, 7:12:49 AM6/10/08
to SIMILE Widgets
hey,

thanks for still looking into this. i thought the post/issue died
prematurely.
well i know wordpress outputs data through rdf feed but it seems that
exhibit cant do the import.
i get this error: unqualified attribute 'version' not allowed [line 7,
column 3]

the blog that i want to use exhibit for is http://www.pact.lk and its
a "peace & conflict timeline" of events that shaped the civil war in
sri lanka.
its on WP 2.5.1 which exports rss feed on "http://www.pact.lk/feed"

if there are any good souls out there it would be great. all i need is
a way to generate the data file for exhibit automatically.
thanks,

Cezar

On Jun 10, 1:36 am, sostler <sbost...@gmail.com> wrote:
> Hi Cezar,
>
> It looks like Wordpress supports outputting an RDF feed as XML
> (http://codex.wordpress.org/Customizing_Feeds), which Exhibit can
> import via the 'rdf+xml' type. (Exhibit uses Babel to understand the
> feed -- seehttp://simile.mit.edu/babel/for more info.) Definitely

Christopher

unread,
Jun 10, 2008, 1:56:37 PM6/10/08
to SIMILE Widgets
> i want to display the events in a timeline but the pressline plugin
> doesnt work in wp 2.5.1

It does work, I have it up and running on a test server - and once I
have 5 minutes to customise the output it will be live on my blog.
A couple of things that might trip you up...

Make sure you copy the files to: /wp-content/plugins/pressline
If you just dump the content of the whole zip file you will end up
with: /wp-content/plugins/pressline/pressline - which is not good.

After I followed the rest of the instructions in the readme file I got
an error when I viewed the page due to
if (is_page('PressLine')) in the pressline.php file - I think the
easiest thing to do is enter the page id so for me it was if
(is_page('320'))
Any problems and this page on the WordPress Codex might be useful:
http://codex.wordpress.org/Conditional_Tags

The only other thing I can see that might cause a hiccup is
$_site_url = get_option('siteurl'); particularly if you have
installed WordPress in a directory of its own.

Hope this helps
C


On Jun 10, 12:12 pm, cezar <cezar.ne...@gmail.com> wrote:
> hey,
>
> thanks for still looking into this. i thought the post/issue died
> prematurely.
> well i know wordpress outputs data through rdf feed but it seems that
> exhibit cant do the import.
> i get this error: unqualified attribute 'version' not allowed [line 7,
> column 3]
>
> the blog that i want to use exhibit for ishttp://www.pact.lkand its
> a "peace & conflict timeline" of events that shaped the civil war in
> sri lanka.
> its on WP 2.5.1 which exports rss feed on "http://www.pact.lk/feed"
>
> if there are any good souls out there it would be great. all i need is
> a way to generate the data file for exhibit automatically.
> thanks,
>
> Cezar
>
> On Jun 10, 1:36 am, sostler <sbost...@gmail.com> wrote:
>
> > Hi Cezar,
>
> > It looks like Wordpress supports outputting an RDF feed as XML
> > (http://codex.wordpress.org/Customizing_Feeds), which Exhibit can
> > import via the 'rdf+xml' type. (Exhibit uses Babel to understand the
> > feed -- seehttp://simile.mit.edu/babel/formore info.) Definitely

cezar

unread,
Jun 11, 2008, 8:06:58 AM6/11/08
to SIMILE Widgets
you are a lucky one then. :)

the plugin was where it is supposed to be.
i changed to the id of the page as you suggested but that didnt solve
the problem.
the get_option('siteurl') is not causing problems. i even tried
hardcoding the url. same issue.
www.pact.lk/pressline is my live version and i have a local version on
my machine.

the weird thing is:

on my local machine the plugin manages to create the xml file. but
after that this error comes: Caught exception: TypeError: xml is null
the xml file looks fine. looks like this:
<data>
<event date="Jun 06 2008 05:52:18 +0000"
title="6 June 2008"
link="http://localhost:8888/pact/2008/06/06/6-june-2008/">
A bomb explosion on a passenger bus in Moratuwa, near Colombo kills at
least 21 people and wounds 47 others. </event>
<event date="May 29 2008 04:54:00 +0000"
title="26 May 2008"
link="http://localhost:8888/pact/2008/05/29/26-may-2008/">
A bomb blast on a train in Dehiwela kills 9 civilians and injures 70;
the military blame the LTTE for carrying out the bombing.</event>
<event date="May 29 2008 05:34:43 +0000"
title="23 May 2008"
link="http://localhost:8888/pact/2008/05/29/23-may-2008-2/">
The LTTE claim that a claymore attack on a van in LTTE controlled
territory killed 16 civilians, including 5 children. The LTTE blames
the Deep Penetration Unit of the Sri Lankan army; the military deny
any involvement.</event>
</data>

which drives me crazy cause i even tried to use babel to convert it to
JSOP and i didnt succeed although in their examples they also use the
same xml structure.

on my live machine it doesnt even create the xml file which is weird
since permissions are 777 recursive. i get this: Failed to load data
xml from http://www.pact.lk/wp-content/plugins/pressline/_presslinedata.php
Not Found.

the file i swear is there :)

i uploaded the xml created on my local machine and still same issue.

can you send me your version of the plugin? maybe the one available on
the depository is not working.
thanks for any advice you may give me. :)
cezar.neaga [at] gmail.com

thanks a lot,
C

On Jun 10, 10:56 pm, Christopher <christopherwedd...@googlemail.com>
wrote:
> > > feed -- seehttp://simile.mit.edu/babel/formoreinfo.) Definitely
Reply all
Reply to author
Forward
0 new messages