terms and prefixes are the same in rdflib

I just tested the following code:

from rdflib.Graph import Graph
from rdflib.Namespace import Namespace
g = Graph()
a = Namespace('http://www.w3.org/')
b = a["abc"]
g.add((a,b,"qqqq"))
print g.serialize()

(I think it is fairly self-evident what it means). It works, I can serialize the results and it is what one expects. Ie, a 'Namespace' (or prefix) object can also be used as a URI reference

Ivan

----
Ivan Herman
Bankrashof 108
1183NW Amstelveen
The Netherlands
http://www.ivan-herman.net

Received on Thursday, 24 February 2011 16:22:10 UTC