RDF::NS::Curated(3pm) | User Contributed Perl Documentation | RDF::NS::Curated(3pm) |
RDF::NS::Curated - A curated set of RDF prefixes
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
This contains a list of 62 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. See the source code of this package for the full list.
It is intended to be used with e.g. URI::NamespaceMap.
For example "http://purl.org/dc/terms/name" will return "dc:name" in scalar context and "('dc', 'name')" in list context.
Please report any bugs to <https://github.com/kjetilk/p5-rdf-ns-curated/issues>.
RDF::NS, XML::CommonNS, RDF::Prefixes.
Kjetil Kjernsmo <kjetilk@cpan.org>.
Harald Jörg
This software is copyright (c) 2015, 2017, 2018 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.
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.
2022-12-13 | perl v5.36.0 |