W3C home > Mailing lists > Public > public-rdfa-wg@w3.org > February 2011

terms and prefixes are the same in rdflib

From: Ivan Herman <ivan@ivan-herman.net>
Date: Thu, 24 Feb 2011 17:23:21 +0100
Cc: W3C RDFa WG <public-rdfa-wg@w3.org>
To: Manu Sporny <msporny@digitalbazaar.com>, Mark Birbeck <mark.birbeck@webbackplane.com>
Message-Id: <B3F6E433-C7B4-41D4-8717-E1EF2F0D9EB1@ivan-herman.net>
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"]
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 Herman
Bankrashof 108
1183NW Amstelveen
The Netherlands

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

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:05:24 UTC