|
List Info
Thread: Optimus — microformats parser
|
|
| Optimus — microformats parser |

|
2007-09-18 23:52:00 |
Hello everyone,
Inspired by Brian's X2V[1] and Drew's presentation "Can
Your Website
be Your API?"[2] I wrote µf parser that transforms any
microformatted
web page to XML or JSON. It could be used as an API to any
web site
with microformats. I hope now we could see some µf based
mashups.
Characteristics at glance:
Supported formats: hCalendar, hCard, hAtom, hResume,
hReview,
xFolkentry, adr, geo, xfn, votelinks, rel-nofollow,
rel-tag,
rel-license
Output formats: XML, JSON, JSON-P
URL: http://microforma
tique.com/optimus/
Query parameters: uri — URI of the resource
format — output format ("xml" or
"json", default is "xml") [optional]
function — name of call back function for JSON
[optional]
filter — space separated names of microformats
(default is "vevent vcard hfeed hresume hreview
xfolkentry adr geo xfn votelinks rel-nofollow rel-tag
rel-license") [optional]
Examples:
http://microformatiqu
e.com/optimus/?uri=http://ma.gnolia.com/people/drewm/tags/mi
croformats
http://microformatique.co
m/optimus/?uri=http://corkd.com/wine/view/1122&format=js
on
http://microfor
matique.com/optimus/?uri=http://johnfallsopp.com&format=
json&function=Back
I happy to hear any feedback, good (on-list) or bad
(off-list)
1. http://suda.co.uk/pro
jects/X2V/
2. http://allinthehead.com/retro/301/can-your-website
-be-your-api
--
Best regards,
Dmitry Baranovskiy
http://dmitry.baranovsk
iy.com
_______________________________________________
microformats-discuss mailing list
microformats-discuss microformats.org
http://microformats.org/mailman/listinfo/microforma
ts-discuss
|
|
| Re: Optimus — microformats parser |

|
2007-09-19 00:30:17 |
Hi Dmitry,
That looks like a very useful and powerful tool. Thanks!
In testing JSON-P output, I'm getting the error
"d.getTimeZoneOffset
is not a function". Here is the fragment of JSON
which is causing
the issue:
"published": (function(){var d = new Date(2007, 8,
18, 1, 11, 28,
0);d.setMinutes(d.getMinutes() + (d.getTimeZoneOffset() -
(-0)));
return d;})()
I'm using Firefox 2.0.0.6.
Besides that, this thing is great! Thanks again,
-- Jim R. Wilson (jimbojw)
On 9/18/07, Dmitry Baranovskiy <dmitry.baranovskiy gmail.com> wrote:
> Hello everyone,
> Inspired by Brian's X2V[1] and Drew's presentation
"Can Your Website
> be Your API?"[2] I wrote µf parser that transforms
any microformatted
> web page to XML or JSON. It could be used as an API to
any web site
> with microformats. I hope now we could see some µf
based mashups.
>
> Characteristics at glance:
> Supported formats: hCalendar, hCard, hAtom,
hResume, hReview,
> xFolkentry, adr, geo, xfn, votelinks, rel-nofollow,
rel-tag,
> rel-license
> Output formats: XML, JSON, JSON-P
> URL: http://microforma
tique.com/optimus/
> Query parameters: uri — URI of the resource
> format — output format
("xml" or "json", default is
"xml") [optional]
> function — name of call
back function for JSON [optional]
> filter — space
separated names of microformats
>
(default is "vevent vcard hfeed hresume hreview
>
xfolkentry adr geo xfn votelinks rel-nofollow rel-tag
> rel-license") [optional]
> Examples:
> http://microformatiqu
e.com/optimus/?uri=http://ma.gnolia.com/people/drewm/tags/mi
croformats
> http://microformatique.co
m/optimus/?uri=http://corkd.com/wine/view/1122&format=js
on
> http://microfor
matique.com/optimus/?uri=http://johnfallsopp.com&format=
json&function=Back
>
>
> I happy to hear any feedback, good (on-list) or bad
(off-list)
>
> 1. http://suda.co.uk/pro
jects/X2V/
> 2. http://allinthehead.com/retro/301/can-your-website
-be-your-api
>
> --
> Best regards,
> Dmitry Baranovskiy
> http://dmitry.baranovsk
iy.com
>
> _______________________________________________
> microformats-discuss mailing list
> microformats-discuss microformats.org
> http://microformats.org/mailman/listinfo/microforma
ts-discuss
>
_______________________________________________
microformats-discuss mailing list
microformats-discuss microformats.org
http://microformats.org/mailman/listinfo/microforma
ts-discuss
|
|
| Re: Optimus — microformats parser |
  Australia |
2007-09-19 01:30:24 |
I've fixed it. Little mistype. Correct is getTimezoneOffset.
Small “z”.
Thank you for feedback.
On 19/09/2007, at 3:30 PM, Jim Wilson wrote:
> In testing JSON-P output, I'm getting the error
"d.getTimeZoneOffset
> is not a function".
_______________________________________________
microformats-discuss mailing list
microformats-discuss microformats.org
http://microformats.org/mailman/listinfo/microforma
ts-discuss
|
|
| Re: Optimus — microformats parser |

|
2007-09-19 03:24:08 |
Hi Dmitry
On 9/19/07, Dmitry Baranovskiy <dmitry.baranovskiy gmail.com> wrote:
> Hello everyone,
> Inspired by Brian's X2V[1] and Drew's presentation
"Can Your Website
> be Your API?"[2] I wrote µf parser that transforms
any microformatted
> web page to XML or JSON. It could be used as an API to
any web site
> with microformats. I hope now we could see some µf
based mashups.
>
Brilliant. I started along a similar road [1] but didn't
cover nearly
as much ground, more just a proof of concept.
I'll definately be having a play soon. I note you've made
all the
XML/XSL files available for download. Under what licence are
these
available? I'd love to be able to use them in commercial
projects if
it comes to that.
Gareth
[1] http://morethanseven.net/posts/working-
example-of-microformats-as-an-api/
> Characteristics at glance:
> Supported formats: hCalendar, hCard, hAtom,
hResume, hReview,
> xFolkentry, adr, geo, xfn, votelinks, rel-nofollow,
rel-tag,
> rel-license
> Output formats: XML, JSON, JSON-P
> URL: http://microforma
tique.com/optimus/
> Query parameters: uri — URI of the resource
> format — output format
("xml" or "json", default is
"xml") [optional]
> function — name of call
back function for JSON [optional]
> filter — space
separated names of microformats
>
(default is "vevent vcard hfeed hresume hreview
>
xfolkentry adr geo xfn votelinks rel-nofollow rel-tag
> rel-license") [optional]
> Examples:
> http://microformatiqu
e.com/optimus/?uri=http://ma.gnolia.com/people/drewm/tags/mi
croformats
> http://microformatique.co
m/optimus/?uri=http://corkd.com/wine/view/1122&format=js
on
> http://microfor
matique.com/optimus/?uri=http://johnfallsopp.com&format=
json&function=Back
>
>
> I happy to hear any feedback, good (on-list) or bad
(off-list)
>
> 1. http://suda.co.uk/pro
jects/X2V/
> 2. http://allinthehead.com/retro/301/can-your-website
-be-your-api
>
> --
> Best regards,
> Dmitry Baranovskiy
> http://dmitry.baranovsk
iy.com
>
> _______________________________________________
> microformats-discuss mailing list
> microformats-discuss microformats.org
> http://microformats.org/mailman/listinfo/microforma
ts-discuss
>
--
Gareth Rushgrove
garethrushgrove.com
morethanseven.net
refreshnewcastle.org
_______________________________________________
microformats-discuss mailing list
microformats-discuss microformats.org
http://microformats.org/mailman/listinfo/microforma
ts-discuss
|
|
| Re: Optimus — microformats parser |

|
2007-09-19 07:15:20 |
On 9/18/07, Dmitry Baranovskiy <dmitry.baranovskiy gmail.com> wrote:
> Hello everyone,
> Inspired by Brian's X2V[1] and Drew's presentation
"Can Your Website
> be Your API?"[2] I wrote µf parser that transforms
any microformatted
> web page to XML or JSON. It could be used as an API to
any web site
> with microformats. I hope now we could see some µf
based mashups.
>
> Characteristics at glance:
> Supported formats: hCalendar, hCard, hAtom,
hResume, hReview,
> xFolkentry, adr, geo, xfn, votelinks, rel-nofollow,
rel-tag,
> rel-license
> Output formats: XML, JSON, JSON-P
> URL: http://microforma
tique.com/optimus/
> Query parameters: uri — URI of the resource
> format — output format
("xml" or "json", default is
"xml") [optional]
> function — name of call
back function for JSON [optional]
> filter — space
separated names of microformats
>
(default is "vevent vcard hfeed hresume hreview
>
xfolkentry adr geo xfn votelinks rel-nofollow rel-tag
> rel-license") [optional]
> Examples:
Wow, this looks great. Now I now what I'll be doing on lunch
break
G<
_______________________________________________
microformats-discuss mailing list
microformats-discuss microformats.org
http://microformats.org/mailman/listinfo/microforma
ts-discuss
|
|
| Re: Optimus — microformats parser |

|
2007-09-19 10:20:26 |
I think I speak for all when I say: friggin' awesome work!!
Thanks for
showing off the xml and xsl as well.
Great things will come out of this, I'm sure.
One thing though.. while testing this url:
http://andr3.net/blog/
post/102 the rel-tag's didn't show up under
"/microformats/rel-tag". Only under
"/microformats/xfolkentry/tag". Is
this the expected behavior? I don't even know if I'm using
xfolk
correctly, because it's not literally a list of my
bookmarks, but a
list of bookmarkable entries... but it raised a doubt that
has been
discussed in the past. Shouldn't the tags show up BOTH under
the
xfolkentry and also as rel-tag? If someone has reached a
final
decision on this, I'd be thankful if someone could point me
to it and
sorry.
Cheers,
André Luís
On 9/19/07, Dimitri Glazkov <dimitri.glazkov gmail.com> wrote:
> On 9/18/07, Dmitry Baranovskiy
<dmitry.baranovskiy gmail.com> wrote:
> > Hello everyone,
> > Inspired by Brian's X2V[1] and Drew's presentation
"Can Your Website
> > be Your API?"[2] I wrote µf parser that
transforms any microformatted
> > web page to XML or JSON. It could be used as an
API to any web site
> > with microformats. I hope now we could see some µf
based mashups.
> >
> > Characteristics at glance:
> > Supported formats: hCalendar, hCard, hAtom,
hResume, hReview,
> > xFolkentry, adr, geo, xfn, votelinks,
rel-nofollow, rel-tag,
> > rel-license
> > Output formats: XML, JSON, JSON-P
> > URL: http://microforma
tique.com/optimus/
> > Query parameters: uri — URI of the resource
> > format — output
format ("xml" or "json", default is
"xml") [optional]
> > function — name of
call back function for JSON [optional]
> > filter — space
separated names of microformats
> >
(default is "vevent vcard hfeed hresume hreview
> >
xfolkentry adr geo xfn votelinks rel-nofollow rel-tag
> > rel-license") [optional]
> > Examples:
>
> Wow, this looks great. Now I now what I'll be doing on
lunch break
>
> G<
>
> _______________________________________________
> microformats-discuss mailing list
> microformats-discuss microformats.org
> http://microformats.org/mailman/listinfo/microforma
ts-discuss
>
_______________________________________________
microformats-discuss mailing list
microformats-discuss microformats.org
http://microformats.org/mailman/listinfo/microforma
ts-discuss
|
|
| Re: Optimus — microformats parser |
  Germany |
2007-09-19 11:46:24 |
just for the hell of it, here's a yahoo pipe that uses
optimus to pull
out hcards from a url
http://pipes.yahoo.com/pipes/pipe.info?_id=CgaS
ycxm3BGX8R0I6kjTQA
Dmitry Baranovskiy wrote:
> Hello everyone,
> Inspired by Brian's X2V[1] and Drew's presentation
"Can Your Website
> be Your API?"[2] I wrote µf parser that
transforms any microformatted
> web page to XML or JSON. It could be used as an API to
any web site
> with microformats. I hope now we could see some µf
based mashups.
>
> Characteristics at glance:
> Supported formats: hCalendar, hCard, hAtom, hResume,
hReview,
> xFolkentry, adr, geo, xfn, votelinks, rel-nofollow,
rel-tag,
> rel-license
> Output formats: XML, JSON, JSON-P
> URL: http://microforma
tique.com/optimus/
> Query parameters: uri — URI of the resource
> format — output format ("xml" or
"json", default is "xml") [optional]
> function — name of call back function for JSON
[optional]
> filter — space separated names of microformats
> (default is "vevent vcard hfeed hresume
hreview
> xfolkentry adr geo xfn votelinks rel-nofollow
rel-tag
> rel-license") [optional]
> Examples:
> http://microformatiqu
e.com/optimus/?uri=http://ma.gnolia.com/people/drewm/tags/mi
croformats
> http://microformatique.co
m/optimus/?uri=http://corkd.com/wine/view/1122&format=js
on
> http://microfor
matique.com/optimus/?uri=http://johnfallsopp.com&format=
json&function=Back
>
>
> I happy to hear any feedback, good (on-list) or bad
(off-list)
>
> 1. http://suda.co.uk/pro
jects/X2V/
> 2. http://allinthehead.com/retro/301/can-your-website
-be-your-api
>
>
_______________________________________________
microformats-discuss mailing list
microformats-discuss microformats.org
http://microformats.org/mailman/listinfo/microforma
ts-discuss
|
|
| Re: Optimus — microformats parser |
  United Kingdom |
2007-09-19 14:22:44 |
Dmitry Baranovskiy wrote:
> Hello everyone,
> Inspired by Brian's X2V[1] and Drew's presentation
"Can Your Website
> be Your API?"[2] I wrote µf parser that
transforms any microformatted
> web page to XML or JSON.
Great work, thanks Dmitry!
_______________________________________________
microformats-discuss mailing list
microformats-discuss microformats.org
http://microformats.org/mailman/listinfo/microforma
ts-discuss
|
|
| Re: Optimus — microformats parser |

|
2007-09-19 20:14:59 |
Thanks everyone for warm words. Your positive feedback is
the best
donation you could make to the developer.
André: It was a bug with elemental µfs. I fixed it.
Gareth: There is rel-licence µf on the page Just at
the bottom. But
beware: it is only gamma version.
I am still waiting for feedback of elders.
--
Best regards,
Dmitry Baranovskiy
http://dmitry.baranovsk
iy.com
_______________________________________________
microformats-discuss mailing list
microformats-discuss microformats.org
http://microformats.org/mailman/listinfo/microforma
ts-discuss
|
|
| Re: Optimus — microformats parser |
  United Kingdom |
2007-09-20 04:53:47 |
In message
<8a52ddad0709182152k6f258b85ve3daabb11b240f51 mail.gmail.com>, Dmitry
Baranovskiy <dmitry.baranovskiy gmail.com> writes
>I wrote f parser
Whatever character you have before that "f" isn't
7-bit Usenet
compliant.
--
Andy Mabbett
_______________________________________________
microformats-discuss mailing list
microformats-discuss microformats.org
http://microformats.org/mailman/listinfo/microforma
ts-discuss
|
|
|
|