File: namespace-export.t

package info (click to toggle)
librdf-trine-perl 1.015-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 10,188 kB
  • ctags: 1,059
  • sloc: perl: 17,584; makefile: 30; sql: 20
file content (13 lines) | stat: -rw-r--r-- 477 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
use Test::More tests => 5;

use RDF::Trine;
use RDF::Trine::Namespace qw(FOAF DC rdf);

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', 'foaf:homepage' );
is( $DC->title->uri_value, 'http://purl.org/dc/elements/1.1/title', 'dc:title' );
is( $rdf->type->uri_value, 'http://www.w3.org/1999/02/22-rdf-syntax-ns#type', 'rdf:type (lowercased known namespace)' );