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


Manual Reference Pages  -  DBD::RDFSTORE (3)

.ds Aq ’

NAME

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

CONTENTS

SYNOPSIS



        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();



DESCRIPTION

TODO

SEE ALSO

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

AUTHOR



        Alberto Reggiori <areggiori@webweaving.org>



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


perl v5.20.3 DBD::RDFSTORE (3) 2006-06-19

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