RDF-RDFa-Parser
view release on metacpan or search on metacpan
examples/rdfa-distiller-psgi/app.psgi view on Meta::CPAN
[ %std, 'Content-Type' => 'text/plain' ],
[ sprintf $message => @_ ],
]
}
sub show_form
{
state $form = do
{
(my $file = __FILE__) =~ s/psgi$/html/;
local(@ARGV, $/) = $file;
my $html = <>;
$html =~ s{ \$AUTHORITY }
{ RDF::RDFa::Parser->AUTHORITY }xeg;
$html =~ s{ \$VERSION }
{ RDF::RDFa::Parser->VERSION }xeg;
$html;
};
t/09opendocument.t view on Meta::CPAN
use Test::More;
use RDF::RDFa::Parser;
eval { require RDF::Query; require Archive::Zip; 'OK' }
or plan skip_all => 'Need RDF::Query and Archive::Zip to run this test!';
plan tests => 1;
(my $file = __FILE__) =~ s/t$/odt/;
my $data = do { local(@ARGV, $/) = $file; <> };
my $p = RDF::RDFa::Parser->new(
$data,
'http://example.com/09opendocument.odt',
RDF::RDFa::Parser::Config->new( RDF::RDFa::Parser::Config->HOST_OPENDOCUMENT_ZIP, '1.1', graph => 0 ),
);
my $query = RDF::Query->new(<<'SPARQL');
PREFIX dc: <http://purl.org/dc/elements/1.1/>
ASK WHERE {
?u dc:example1 "B" .
( run in 0.546 second using v1.01-cache-2.11-cpan-49f99fa48dc )