Catmandu-RDF
view release on metacpan - search on metacpan
view release on metacpan or search on metacpan
lib/Catmandu/Importer/RDF.pm view on Meta::CPAN
subject_map => !$_[0]->predicate_map,
);
}
);
has sparql => (
is => 'ro',
lazy => 1,
trigger => sub {
my ($sparql, $ns) = ($_[1], $_[0]->ns);
$sparql = do { local (@ARGV,$/) = $sparql; <> } if $sparql =~ /^\S+$/ && -r $sparql;
my %prefix;
# guess requires prefixes (don't override existing). Don't mind false positives
$prefix{$_} = 1 for ($sparql =~ /\s([a-z][a-z0-0_-]*):/mig);
delete $prefix{$_} for ($sparql =~ /PREFIX\s+([^:]+):/mg);
$_[0]->{sparql} = join "\n", (map { $ns->SPARQL($_) } keys %prefix), $sparql;
}
);
has sparql_result => (
is => 'ro',
view all matches for this distributionview release on metacpan - search on metacpan
( run in 1.470 second using v1.00-cache-2.02-grep-82fe00e-cpan-c9a218a2bbc )