1RDF::NS::Trine(3pm)   User Contributed Perl Documentation  RDF::NS::Trine(3pm)
2
3
4

NAME

6       RDF::NS::Trine - Popular RDF namespace prefixes from prefix.cc as
7       RDF::Trine nodes
8

SYNOPSIS

10         use RDF::NS::Trine;
11         use constant NS => RDF::NS::Trine->new('20190227');
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

DESCRIPTION

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

ADDITIONAL METHODS

30   BLANK ( [ $short ] )
31       Returns a new RDF::Trine::Node::Blank.
32
34       This software is copyright (c) 2013- by Jakob Voss.
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.30.0                      2019-07-26               RDF::NS::Trine(3pm)
Impressum