Home | Trees | Index | Help |
---|
Module sqltriples |
|
A simple SQL-accessible RDF triple store.
Copyright (C) 2006 Paul Boddie <paul@boddie.org.uk>
This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
--------
To initialise the database, use the init method on the TripleStore object as follows:
from sqltriples import TripleStore store = TripleStore(connection, "triples") # "triples" is the default, anyway store.init() store.commit()
See the _init_table and _init_sequence attributes on the TripleStore class for details of the table and sequence employed.
To remove the triple store objects from the database, use the delete method on the TripleStore object as follows:
store.delete() store.commit()
See the _delete_table and _delete_sequence attributes on the TripleStore class for details.
NOTE: The statements sent to the database system can be configured, but this NOTE: should be made convenient in future releases.Classes | |
---|---|
BNode |
|
CountableResults |
A class representing a count of some results. |
Literal |
|
Namespace |
|
Objects |
A class representing a selection of objects. |
Predicates |
A class representing a selection of predicates. |
Results |
A class representing a selection of results. |
SingleResults |
A class representing a selection of single value results. |
Special |
|
Subject |
A class representing a more conveniently accessible subject. |
Subjects |
A class representing a selection of subjects. |
Triples |
A class representing a selection of triples. |
TripleStore |
A triple store whose contents are stored in an SQL-accessible database table. |
URIRef |
Function Summary | |
---|---|
Open a triple store using either a connection identified by 'database_name' and other keyword arguments or the given 'connection'. |
Function Details |
---|
open(database_name=None, connection=None, table_name=None, sequence_name=None, debug=0, **kw)Open a triple store using either a connection identified by 'database_name' and other keyword arguments or the given 'connection'. If the optional 'table_name' and 'sequence_name' are provided, override the default settings in the TripleStore class in order to access stored information in the database. The optional 'debug' parameter (set to false by default) can be used to show the working of the triple store. |
Home | Trees | Index | Help |
---|
Generated by Epydoc 2.1 on Sat Mar 11 01:38:55 2006 | http://epydoc.sf.net |