File: basic.pl

package info (click to toggle)
librdf-prefixes-perl 0.005-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, trixie
  • size: 208 kB
  • sloc: perl: 281; makefile: 9
file content (17 lines) | stat: -rw-r--r-- 523 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/perl

use 5.010;
use RDF::Prefixes;

my $c = RDF::Prefixes->new({DC=>'http://example.com/'}, {syntax=>'sparql'});

say $c->get_qname('http://xmlns.com/foaf/0.1/homepage');
say $c->get_qname('http://xmlns.com/foaf/0.1/');
say $c->get_qname('http://example.com/example');
say $c->get_curie('http://purl.org/dc/terms/title');
say $c->get_curie('http://purl.org/dc/terms/');
say $c->get_curie('http://purl.org/dc/elements/1.0/title');
say $c->get_curie('http://purl.org/dc/elements/1.1/title');
say '----';
say $c;