W3C home > Mailing lists > Public > www-archive@w3.org > December 2001

llyn.py Bug

From: Sean B. Palmer <sean@mysterylights.com>
Date: Fri, 7 Dec 2001 16:48:03 -0000
Message-ID: <010601c17f3e$f95ff580$14b90150@localhost>
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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 7 November 2012 14:17:15 GMT