- From: Sean B. Palmer <sean@mysterylights.com>
- Date: Fri, 7 Dec 2001 16:48:03 -0000
- To: <www-archive+n3bugs@w3.org>
<sbp> odd problem with llyn.n3 - when I tell it to parse a document through N3, it sniff out the document and incorrectly assumes that it's XML RDF found the problem; I had to replace:- [[[ if guess.find('xml') >= 0 or guess.find('rdf') >= 0: if thing.verbosity() > 49: progress("Parsing as RDF") import sax2rdf, xml.sax._exceptions p = sax2rdf.RDFXMLParser(store, addr) p.loadStream(netStream) else: ]]] with:- [[[ # if guess.find('xml') >= 0 or guess.find('rdf') >= 0: # if thing.verbosity() > 49: progress("Parsing as RDF") # import sax2rdf, xml.sax._exceptions # p = sax2rdf.RDFXMLParser(store, addr) # p.loadStream(netStream) # else: if 1 == 1: ]]] Cheers, -- Kindest Regards, Sean B. Palmer @prefix : <http://webns.net/roughterms/> . :Sean :hasHomepage <http://purl.org/net/sbp/> .
Received on Friday, 7 December 2001 11:48:33 UTC