HTML-AccountAutoDiscovery
view release on metacpan or search on metacpan
HTML::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
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>
lib/HTML/AccountAutoDiscovery.pm view on Meta::CPAN
print $account[0]->{account}; # account name
print $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 1.114 second using v1.01-cache-2.11-cpan-49f99fa48dc )