HTML-AccountAutoDiscovery
view release on metacpan or search on metacpan
171819202122232425262728293031323334353637HTML::AccountAutoDiscovery implements Account Auto-Discov-
ery from
given
a URI or a HTML document.
Account Auto-Discovery is a spec
for
searching account
names of some online services in the HTML. You can see the
document of the spec at
http://b.hatena.ne.jp/help?mode=tipjar
#autodiscovery (But
only
for
Japanese.)
If you want to show your online accounts on your HTML or
XHTML as metadata, you can
write
looks like this:
<rdf:RDF
<foaf:maker rdf:parseType=
"Resource"
>
<foaf:holdsAccount>
<foaf:OnlineAccount foaf:accountName=
"naoya"
>
</foaf:OnlineAccount>
lib/HTML/AccountAutoDiscovery.pm view on Meta::CPAN
919293949596979899100101102103104105106107108109110111
$account
[0]->{account};
# account name
$account
[0]->{service};
# service URI or literal
=head1 DESCRIPTION
I<HTML::AccountAutoDiscovery> implements Account Auto-Discovery from given a URI or a HTML document.
Account Auto-Discovery is a spec for searching account names of some online services in the HTML. You can see the document of the spec at I<http://b.hatena.ne.jp/help?mode=tipjar#autodiscovery> (But only for Japanese.)
If you want to show your online accounts on your HTML or XHTML as metadata, you can write looks like this:
<rdf:RDF
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:foaf="http://xmlns.com/foaf/0.1/">
<rdf:Description rdf:about="http://d.hatena.ne.jp/naoya/20050804/1123142579">
<foaf:maker rdf:parseType="Resource">
<foaf:holdsAccount>
<foaf:OnlineAccount foaf:accountName="naoya">
<foaf:accountServiceHomepage rdf:resource="http://www.hatena.ne.jp/" />
</foaf:OnlineAccount>
( run in 0.326 second using v1.01-cache-2.11-cpan-95122f20152 )