[EMAIL PROTECTED] wrote:
> Hello everyone, I would like the following code :
>
> from rdflib.Graph import *
> from rdflib import *
>
> primer = ConjunctiveGraph()
>
> AXLNS = Namespace('http://www.ilmionamespace.org/sintax#')
> primer.bind("AXLNS", 'http://www.ilmionamespace.org/sintax#')
>
> list = ['mike', 'jack', 'paul', 'sean']
> for i in list:
> ciccio = 'AXLNS.'+i
should be: ciccio = AXLNS[i]
which lets the Namespace object make a new URIRef object that starts
with its prefix.
> primer.add( (ciccio, RDF.type , AXLNS.man) )
>
...
>
> " AttributeError: 'str' object has no attribute 'n3' "
>
_______________________________________________
Dev mailing list
[email protected]
http://rdflib.net/mailman/listinfo/dev