/usr/lib/python2.7/dist-packages/swap/rdfxml.py is in python-swap 1.2.1-7.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | """
A module to allow one to chose which RDF parser to use.
This is not done correctly, so I don't expect this file
to last very long.
$Id: rdfxml.py,v 1.3 2005/10/24 16:58:38 timbl Exp $
"""
def rdfxmlparser(store, openFormula, thisDoc=None, flags="", why=None,
parser='sax2rdf'):
if parser == 'rdflib':
import rdflib_user
return rdflib_user.rdflib_handoff(store, openFormula,thisDoc, why=why)
else: # parser == sax2xml
import sax2rdf
return sax2rdf.RDFXMLParser(store, openFormula, thisDoc=thisDoc,
flags=flags, why=why)
|