File: namespace-uri.t

package info (click to toggle)
librdf-trine-perl 1.019-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 10,200 kB
  • sloc: perl: 17,601; sql: 20; makefile: 8; sh: 1
file content (11 lines) | stat: -rw-r--r-- 285 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
use Test::More tests => 3;

use RDF::Trine;

my $foaf	= RDF::Trine::Namespace->new( 'http://xmlns.com/foaf/0.1/' );
isa_ok( $foaf, 'RDF::Trine::Namespace' );

my $uri		= $foaf->homepage;
isa_ok( $uri, 'RDF::Trine::Node' );

is( $uri->uri_value, 'http://xmlns.com/foaf/0.1/homepage' );