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

Re: terms and prefixes are the same in rdflib

From: Nathan <nathan@webr3.org>
Date: Sat, 26 Feb 2011 08:23:23 +0000
Message-ID: <4D68B87B.3040706@webr3.org>
To: Ivan Herman <ivan@ivan-herman.net>
CC: Manu Sporny <msporny@digitalbazaar.com>, Mark Birbeck <mark.birbeck@webbackplane.com>, W3C RDFa WG <public-rdfa-wg@w3.org>
Ivan Herman wrote:
> 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

I think I've missed something :D does it make a difference since we 
established that RDFa can't support CURIEs which don't contain a colon 
(term != curie in RDFa) and every other serialization requires a colon 
to be present in a prefix (meaning prefix != term)?
Received on Saturday, 26 February 2011 08:24:40 UTC

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