RDF::NS::Trine(3pm)

RDF::NS::Trine3pm

Popular rdf namespace prefixes from prefix.cc as rdf::trine nodes

Usage

  use RDF::NS::Trine;
  use constant NS => RDF::NS::Trine->new('20230619');
  NS->foaf_Person;        # iri('http://xmlns.com/foaf/0.1/Person')
  NS->uri('foaf:Person);  #  same RDF::Trine::Node::Resource
  NS->foaf_Person->uri;   # http://xmlns.com/foaf/0.1/Person
  NS->_;                  # RDF::Trine::Node::Blank
  NS->_abc;               # blank node with id 'abc'
  NS->uri('_:abc');       # same

Overview

RDF::NS::Trine works like RDF::NS but it returns instances of RDF::Trine::Node::Resource (or RDF::Trine::Node::Blank) instead of strings.

Before using this module, make sure to install RDF::Trine, which is not installed automatically together with RDF::NS!

Additional methods

BLANK ( [ $short ] )

Returns a new RDF::Trine::Node::Blank.

Releases

7 releases since Debian 7 (Wheezy); the text changed 5 times.

  1. 7
  2. 8
  3. 9–10
  4. 11
  5. 12
  6. 13

From librdf-ns-perl 20230619-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.