The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

XRI - Resolver for eXtensible Resource Identifiers

SYNOPSIS

    use XRI;
    my $XRI = XRI->new($xri);

    $XRI->resolveToAuthorityXML;
    print $XRI->{descriptorXML};

    $XRI->resolveToLocalAccessURI;
    $XRI->resolveToLocalAccessURI(service, type);
    print $XRI->{localAccessURL};

    print $XRI->doGet;

ABSTRACT

Resolve an XRI to a LocalAccess URL or an XRIAuthority Descriptor

DESCRIPTION

The XRI Resolver Library resolves an XRI to a LocalAccess URL or an XRIAuthority Descriptor. It can also be used to actually fetch the data at the LocalAccess URL.

FATAL ERROR STRINGS

These strings are returned via die() so trap them by running library calls within an eval{} block $@ will be set to the error code, if any.

    RelativePathNotXRIAuthority for passed service or type
    URIAuthorityNotXRIAuthority for passed service or type
    UnknownAuthority: $subseg
    NoDescriptorXML for $url
    MalformedXRIDescriptor for $url
    NoLocalAccessFound for XRI $self->{xri}

BUGS

  • Doesn't handle multiple LocalAccess URIs

  • Doesn't parse cross references properly

SEE ALSO

XRI OASIS TC: http://www.oasis-open.org/committees/tc_home.php?wg_abbrev=xri

XRI Specification: http://www.oasis-open.org/committees/download.php/5109/xri-syntax-resolution-1.0-cd.pdf

Mailing list: http://idcommons.net/cgi-bin/mailman/listinfo/xrixdi

Wiki: http://xrixdi.idcommons.net/

AUTHOR

Fen Labalme, <fen@idcommons.net>

COPYRIGHT AND LICENSE

Copyright 2004 Identity Commons

See LICENSE.