List Info

Thread: multiple hCards on a user's profile page - how can I mark one as the actual user?




multiple hCards on a user's profile page - how can I mark one as the actual user?
user name
2008-04-14 11:22:37
Brian Suda wrote:

> there is a wiki page somewhere (which i can't find at
the moment),
> but there are a few options. HTML has the
<address> element to
> describe the contact info of the page owner.

No - <address> provides contact information for the
page. The owner  
of the page and the correct person to contact regarding the
page may  
well differ. The page that you're thinking of is the
representative- 
hcard page, which addresses (no pun intended) this very
issue amongst  
others.

Also perhaps relevant is the page I threw together over the
weekend  
on mapping XFN to FOAF, which covers more than just FOAF
really: it's  
a general purpose guide on how to interpret the interactions
between  
different hCards and XFN on the same page. Not so much from
an page  
authoring perspective, but rather from a parser development
point of  
view, to make sure that people writing parsers don't
misinterpret  
pages like the ones described in this thread.

htt
p://microformats.org/wiki/representative-hcard
http://micro
formats.org/wiki/xfn-to-foaf

-- 
Toby A Inkster
<mailto:mailtobyinkster.co.uk>
<http://tobyinkster.co.uk
>
_______________________________________________
microformats-discuss mailing list
microformats-discussmicroformats.org
http://microformats.org/mailman/listinfo/microforma
ts-discuss

Re: multiple hCards on a user's profile page - how can I mark one as the actual user?
country flaguser name
United Kingdom
2008-04-14 14:05:30
On Mon, 2008-04-14 at 17:22 +0100, Toby A Inkster wrote:
> Also perhaps relevant is the page I threw together over
the weekend  
> on mapping XFN to FOAF, which covers more than just
FOAF really:
> it's  
> a general purpose guide on how to interpret the
interactions between  
> different hCards and XFN on the same page.
[...]
>  http://micro
formats.org/wiki/xfn-to-foaf
[...]

Nicely timed Toby 

I have a new test going on my Dev site that does just about
what you
suggest and  converts XFN+hCard via XSLT to produce a FoaF
file called
for want of a word xFoaF. it Is very much inspired by Dan
Connolly's
grokXFN.xsl

you can take a peek at http://dev.weborganics.
co.uk/ 

example output using http://www.tantek.com/#h
card as the transformation
source:

Foaf explorer View
http://tinyurl.com/496dr5

RDF view
http://tinyurl.com/48w43d

Validated Triples
http://tinyurl.com/4s269f

The entire source code PHP and XSLT is also available for
download on
the dev site.

to answer the question "multiple hCards on a user's
profile page - how
can I mark one as the actual user?" I would mark up
just one hcard
containing rel="me" which would represent the
actual user and the rest
with rel="contact" or whatever XFN value is
suitable.

Thanks

Martin McEvoy

 




_______________________________________________
microformats-discuss mailing list
microformats-discussmicroformats.org
http://microformats.org/mailman/listinfo/microforma
ts-discuss

Re: multiple hCards on a user's profile page - how can I mark one as the actual user?
country flaguser name
United Kingdom
2008-04-15 02:31:17
Martin McEvoy wrote:

> I have a new test going on my Dev site that does just
about what you
> suggest and  converts XFN+hCard via XSLT to produce a
FoaF file called
> for want of a word xFoaF.

> example output using http://www.tantek.com/#h
card as the  
> transformation

Mostly looks good, but I'd suggest that you seem to have
some of the  
relationships backwards. For example, Tantek has the
following on his  
page:

	<a href='http://juliemelton.com'
rel='muse'>Julie Melton</a>

which you convert to:

	  <Person rdf:ID="hcard">
	    <name>Tantek Çelik</name>
	    <rel:mentorOf>
	      <Person rdf:about="http://juliemelton.c
om">
	        <name>Julie Melton</name>
	        <weblog rdf:resource="http://juliemelton.
com"/>
	      </Person>
	    </rel:mentorOf>
	  </Person>

(I've simplified both down a bit.)

I would suggest that the FOAF should be the other way
around: Tantek  
apprenticeTo Julie; not Tantek mentorOf Julie. (Yes, the
terms  
"mentor" and "apprentice" seem a bit
odd, but they're about the  
closest terms that the FOAF relationships extension has to
"muse".)

Also, you needlessly output multiple foaf:knows for each
person.

-- 
Toby A Inkster
<mailto:mailtobyinkster.co.uk>
<http://tobyinkster.co.uk
>




_______________________________________________
microformats-discuss mailing list
microformats-discussmicroformats.org
http://microformats.org/mailman/listinfo/microforma
ts-discuss

Re: multiple hCards on a user's profile page - how can I mark one as the actual user?
country flaguser name
United Kingdom
2008-04-15 14:35:14
Hello Toby

On Tue, 2008-04-15 at 08:31 +0100, Toby A Inkster wrote:
> Martin McEvoy wrote:
> 
> > I have a new test going on my Dev site that does
just about what you
> > suggest and  converts XFN+hCard via XSLT to
produce a FoaF file called
> > for want of a word xFoaF.
> 
> > example output using http://www.tantek.com/#h
card as the  
> > transformation
> 
> Mostly looks good, but I'd suggest that you seem to
have some of the  
> relationships backwards. For example, Tantek has the
following on his  
> page:
> 
> 	<a href='http://juliemelton.com'
rel='muse'>Julie Melton</a>
> 
> which you convert to:
> 
> 	  <Person rdf:ID="hcard">
> 	    <name>Tantek Çelik</name>
> 	    <rel:mentorOf>
> 	      <Person rdf:about="http://juliemelton.c
om">
> 	        <name>Julie Melton</name>
> 	        <weblog rdf:resource="http://juliemelton.
com"/>
> 	      </Person>
> 	    </rel:mentorOf>
> 	  </Person>
> 
> (I've simplified both down a bit.)
> 
> I would suggest that the FOAF should be the other way
around: Tantek  
> apprenticeTo Julie; not Tantek mentorOf Julie. (Yes,
the terms  
> "mentor" and "apprentice" seem a
bit odd, but they're about the  
> closest terms that the FOAF relationships extension has
to "muse".)

Thanks a lot for checking the output over for me, I have
removed the
relationship vocab completely as it wasnt converting very
well in favour
of using the XFN vocab itself.
> 
> Also, you needlessly output multiple foaf:knows for
each person.
> 

Thanks didn't catch that Fixed now though I have also fixed
parsing
multiple instances of the same person a much better output
altogether.

Thanks again for your input.

Martin McEvoy


_______________________________________________
microformats-discuss mailing list
microformats-discussmicroformats.org
http://microformats.org/mailman/listinfo/microforma
ts-discuss

[1-4]

about | contact  Other archives ( Real Estate discussion Medical topics )