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 primer.add( (ciccio, RDF.type , AXLNS.man) ) print primer.serialize(format='n3') showed something like this: @prefix AXLNS: <http://www.ilmionamespace.org/sintax#>. @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>. @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>. AXLNS.mike a AXLNS.man AXLNS.jack a AXLNS.man AXLNS.paul a AXLNS.man AXLNS.sean a AXLNS.man ... but unfortunately that's what appears. " AttributeError: 'str' object has no attribute 'n3' " How do I solve this problem of serialization? Thanks to all. Alessio -- Email.it, the professional e-mail, gratis per te: http://www.email.it/f Sponsor: Ricapil Capelli: Stop alla caduta, Via alla ricrescita, Garantito! Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=7110&d=20071109 _______________________________________________ Dev mailing list Dev@rdflib.net http://rdflib.net/mailman/listinfo/dev