| Home | Trees | Index | Help |
|---|
| Package rdflib :: Package sparql :: Module sparqlGraph :: Class Container |
|
Alt,
Bag,
SeqWrapper around an RDF Container resource.
This class is not really used by itself, rather through its subclasses:Seq, Bag, or Alt.
| Method Summary | |
|---|---|
The triplets is of type sparqlGraph, the resource is simply the resource which is supposed to be a Seq. | |
Obvious getitem using the sorted keys. | |
returns self! | |
__len__(self)
| |
Add a new resource to the list (as the last element). | |
Obvious iteration through the content using the sorted keys. | |
| Instance Variable Summary | |
|---|---|
| BNode | resource: the RDFLib resource for the Container |
sparqlGraph |
triplets: the triple for the container instance |
| Method Details |
|---|
__init__(self,
triplets,
resource)
|
__getitem__(self,
index)
Obvious getitem using the sorted keys.
|
__iter__(self)returns self! |
addItem(self, res)Add a new resource to the list (as the last element).
|
next(self)Obvious iteration through the content using the sorted keys.
|
| Instance Variable Details |
|---|
resourcethe RDFLib resource for the Container
|
tripletsthe triple for the container instance
|
| Home | Trees | Index | Help |
|---|
| Generated by Epydoc 2.1 on Thu Aug 18 21:44:53 2005 | http://epydoc.sf.net |