GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
DBD::RDFStore(3) User Contributed Perl Documentation DBD::RDFStore(3)

DBD::RDFStore - Simple DBI driver for RDFStore using RDQL:Parser

        use DBI;

        # on the local disk
        $dbh = DBI->connect( "DBI:rdfstore:database=cooltest", "user", "password" );

        # on a remote dbmsd(8) server
        $dbh = DBI->connect( "DBI:rdfstore:database=cooltest;host=localhost;port=1234", "user", "password" );

        # or in the fly
        $dbh = DBI->connect( "DBI:rdfstore", "user", "password" );

        $sth = $dbh->prepare(<<QUERY);

        SELECT
           ?title, ?link
        FROM
           <http://xmlhack.com/rss10.php>
        WHERE
           (?item, <rdf:type>, <rss:item>),
           (?item, <rss::title>, ?title),
           (?item, <rss::link>, ?link)
        USING
           rdf for <http://www.w3.org/1999/02/22-rdf-syntax-ns#>,
           rss for <http://purl.org/rss/1.0/>

        QUERY;

        my $num_rows = $sth->execute();

        print "news from XMLhack.com\n" if($num_rows == $sth->rows);

        $sth->bind_columns(\$title, \$link);

        while ($sth->fetch()) {
                print "title=$title lin=$link\n";
                };
        $sth->finish();

TODO

DBI(3) RDQL::Parser(3) RDFStore(3)

        Alberto Reggiori <areggiori@webweaving.org>
2006-06-19 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.