1RDF::NS::Trine(3pm) User Contributed Perl Documentation RDF::NS::Trine(3pm)
2
3
4
6 RDF::NS::Trine - Popular RDF namespace prefixes from prefix.cc as
7 RDF::Trine nodes
8
10 use RDF::NS::Trine;
11 use constant NS => RDF::NS::Trine->new('20230619');
12
13 NS->foaf_Person; # iri('http://xmlns.com/foaf/0.1/Person')
14 NS->uri('foaf:Person); # same RDF::Trine::Node::Resource
15 NS->foaf_Person->uri; # http://xmlns.com/foaf/0.1/Person
16
17 NS->_; # RDF::Trine::Node::Blank
18 NS->_abc; # blank node with id 'abc'
19 NS->uri('_:abc'); # same
20
22 RDF::NS::Trine works like RDF::NS but it returns instances of
23 RDF::Trine::Node::Resource (or RDF::Trine::Node::Blank) instead of
24 strings.
25
26 Before using this module, make sure to install RDF::Trine, which is not
27 installed automatically together with RDF::NS!
28
30 BLANK ( [ $short ] )
31 Returns a new RDF::Trine::Node::Blank.
32
34 This software is copyright (c) 2013- by Jakob Voß.
35
36 This is free software; you can redistribute it and/or modify it under
37 the same terms as the Perl 5 programming language system itself.
38
39
40
41perl v5.38.0 2023-07-21 RDF::NS::Trine(3pm)