NAME
RDF::NS::Curated - A curated set of RDF prefixes
SYNOPSIS
my $ns = RDF::NS::Curated->new;
print $ns->uri('foaf'); # prints http://xmlns.com/foaf/0.1/
print $ns->prefix('http://schema.org/'); # prints schema
DESCRIPTION
This contains a list of 49 prefix and URI pairs that are commonly used in RDF. The intention is that prefixes in this list can be safely used in code that has a long lifetime. The list has been derived mostly from W3C standards documents, but also some popularity lists.
It is intended to be used with e.g. URI::NamespaceMap.
Apart from the constructor, which takes no arguments, it has only two methods:
uri($prefix)
-
This will return the URI (as a plain string) of the supplied prefix.
prefix($uri)
-
This will return the prefix corresponding to the supplied URI string.
BUGS
Please report any bugs to https://github.com/kjetilk/p5-rdf-ns-curated/issues.
SEE ALSO
RDF::NS, XML::CommonNS, RDF::Prefixes.
AUTHOR
Kjetil Kjernsmo <kjetilk@cpan.org>.
COPYRIGHT AND LICENCE
This software is copyright (c) 2015 by Kjetil Kjernsmo.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
DISCLAIMER OF WARRANTIES
THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.