HTML-AccountAutoDiscovery

 view release on metacpan or  search on metacpan

README  view on Meta::CPAN

17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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
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: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

91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
  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: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 )