hResume

3 views
Skip to first unread message

Grant Rodgers

unread,
Mar 7, 2007, 5:50:08 PM3/7/07
to mofo
Working on an hResume definition (as used by LinkedIn). Pretty
straightforward except this part:

http://microformats.org/wiki/hresume#Job_Titles

To express one or more job titles/positions in the same experience
event you should use hCards. hcard requires the fn ("formatted name")
field, but it isn't reasonable to repeat your name for every job title
you mark up in hresume. So, you may use an <object> and the class name
'include' with a reference to the fn somewhere else on the page.

How can this be done with mofo?

Also, LinkedIn marks up personal links as XFN (class "url"). How can
this be added to the hResume spec? This doesn't seem to work:

many :url => XFN

Chris Wanstrath

unread,
Mar 7, 2007, 9:41:56 PM3/7/07
to mof...@googlegroups.com
On 3/7/07, Grant Rodgers <gra...@gmail.com> wrote:

> To express one or more job titles/positions in the same experience
> event you should use hCards. hcard requires the fn ("formatted name")
> field, but it isn't reasonable to repeat your name for every job title
> you mark up in hresume. So, you may use an <object> and the class name
> 'include' with a reference to the fn somewhere else on the page.

mofo doesn't yet support the include pattern. I'd like to get this in
for the 0.2 release, especially given the hResume support LinkedIn has
incorporated. Can you send me a pastie of what you have so far for
hResume? We could probably get done this week.

> Also, LinkedIn marks up personal links as XFN (class "url"). How can
> this be added to the hResume spec? This doesn't seem to work:
>
> many :url => XFN

I think that's incorrect. XFN is a page-level format based on the
'rel' attribute, not class based like "Microformats." The 'url' class
is a special microformat class with its own semantics that mofo
already supports. You shouldn't have to do anything special (beyond
declaring many :url) to get it working.

The rel="me" stuff is because LinkedIn is using both XFN and hCard
side by side. The XFN stuff says what relation links have to the page
you're viewing while the 'url' class states the url of the vcard. So
you can have more than one hCard on a page, but you can't have
multiple XFN links with rel="me" for different people on the same
page. Unless you're that crazy blonde girl from Heroes.

Anyway, hit me with your hresume.rb thus far and I'll get cranking.

--
Chris Wanstrath
http://errtheblog.com

Grant Rodgers

unread,
Mar 8, 2007, 1:46:27 PM3/8/07
to mofo
On Mar 7, 6:41 pm, "Chris Wanstrath" <c...@ozmm.org> wrote:

> I think that's incorrect. XFN is a page-level format based on the
> 'rel' attribute, not class based like "Microformats." The 'url' class
> is a special microformat class with its own semantics that mofo
> already supports. You shouldn't have to do anything special (beyond
> declaring many :url) to get it working.

The thing about :url is that it only captures the href, not the name
of the link. Probably the more correct thing to do would be something
like

@resume = HResume.find('www.linkedin.com/in/blah')
@links = XFN.find('www.linkedin.com/in/blah')

I uploaded hresume.rb to the group files area.

Chris Wanstrath

unread,
Mar 8, 2007, 5:08:34 PM3/8/07
to mof...@googlegroups.com
On 3/8/07, Grant Rodgers <gra...@gmail.com> wrote:

> The thing about :url is that it only captures the href, not the name
> of the link. Probably the more correct thing to do would be something
> like

That's true, but that's how the spec goes. We could always cheat and
add an .inside method or something to the URL string? I'm okay with
cheating as long as it doesn't change things in the spec.

> @resume = HResume.find('www.linkedin.com/in/blah')
> @links = XFN.find('www.linkedin.com/in/blah')
>
> I uploaded hresume.rb to the group files area.

Cool, I will let you know of my progress. I want to get 0.2 out next
week. March 13th is a special day.

Chris Wanstrath

unread,
Mar 22, 2007, 1:47:47 AM3/22/07
to mof...@googlegroups.com
Okay. A little later than I hoped, but hResume and include-pattern
are now checked into trunk. Can you check and see if it does what you
need it to? Thanks.

- Chris

Reply all
Reply to author
Forward
0 new messages