Skip to content

ant0ine/MongoDB-RDF

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NAME
    MongoDB::RDF - Stores RDF-JSON documents in MongoDB.

SYNOPSIS
     my $mrdf = MongoDB::RDF->new(
         database => MongoDB::Connection->new(host => 'localhost', port => 27017)->test_rdf
     );
 
     my $graph = $mrdf->default_graph;
 
     my $r = MongoDB::RDF::Resource->new('http://example.org/0');
     $r->dc_title('my title');
     $graph->save($r);

METHODS
  new( database => $mdb )
    Takes a MongoDB::Database in argument.

  default_graph
    Returns the default graph object.

  get_graph( $name )
    Returns the graph named $name, creates it if it doesn't exist. (A graph
    is mapped to a MongoDB::Collection)

ACCESSING UNDERLYING MONGODB OBJECTS.
  database
    Returns the MongoDB::Database object.

AUTHOR
    Antoine Imbert, `<antoine.imbert at gmail.com>'

LICENSE AND COPYRIGHT
    Copyright 2010 Antoine Imbert.

    This program is free software; you can redistribute it and/or modify it
    under the terms of either: the GNU General Public License as published
    by the Free Software Foundation; or the Artistic License.

    See http://dev.perl.org/licenses/ for more information.

About

Stores RDF-JSON documents in MongoDB

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages