GithubHelp home page GithubHelp logo

databasesystems's People

Watchers

 avatar

databasesystems's Issues

IntegrityError: null value in column "title" violates not-null constraint DETAIL: Failing row contains (conf/w2gis/KobayashiKS10, null, W2GIS, 2011).

********** inproceedings
pubkey: conf/w2gis/WeitkamperB07
Author: Jürgen Weitkämper
Author: Thomas Brinkhoff
Title: XFormsGI - Extending XForms for Geospatial and Sensor Data.
Year: 2007
Book title: W2GIS
********** inproceedings
pubkey: conf/w2gis/KobayashiKS10
Author: Kaori Kobayashi
Author: Daisuke Kitayama
Author: Kazutoshi Sumiya
Year: 2011
Book title: W2GIS

IntegrityError Traceback (most recent call last)
in ()
----> 1 parser.parse(os.path.join(root, xml_f_name))

/anaconda2/lib/python2.7/xml/sax/expatreader.pyc in parse(self, source)
109 self.reset()
110 self._cont_handler.setDocumentLocator(ExpatLocator(self))
--> 111 xmlreader.IncrementalParser.parse(self, source)
112 except:
113 # bpo-30264: Close the source on error to not leak resources:

/anaconda2/lib/python2.7/xml/sax/xmlreader.pyc in parse(self, source)
121 buffer = file.read(self._bufsize)
122 while buffer != "":
--> 123 self.feed(buffer)
124 buffer = file.read(self._bufsize)
125 self.close()

/anaconda2/lib/python2.7/xml/sax/expatreader.pyc in feed(self, data, isFinal)
218 # document. When feeding chunks, they are not normally final -
219 # except when invoked from close.
--> 220 self._parser.Parse(data, isFinal)
221 except expat.error, e:
222 exc = SAXParseException(expat.ErrorString(e.code), e, self)

/anaconda2/lib/python2.7/xml/sax/expatreader.pyc in end_element(self, name)
337
338 def end_element(self, name):
--> 339 self._cont_handler.endElement(name)
340
341 def start_element_ns(self, name, attrs):

in endElement(self, tag)
31 if tag == "article" or tag == "inproceedings":
32 self.CurrentType = ""
---> 33 insert_postgres(self.instance, self.authorlist)
34 # clear dict & list
35 del self.authorlist[:]

in insert_postgres(instance, authorlist)
23 booktitle = instance.get('booktitle')
24 data_inproceedings = (pubkey, title, booktitle, year)
---> 25 cur.execute(add_inproceedings, data_inproceedings)
26
27 for name in authorlist:

IntegrityError: null value in column "title" violates not-null constraint
DETAIL: Failing row contains (conf/w2gis/KobayashiKS10, null, W2GIS, 2011).

Parsing special characters in authorlist: Israël-César Lerman

********** inproceedings
pubkey: series/sci/LermanG13
Author: sar Lerman
Author: Sylvie Guillaume
Title: Comparing Two Discriminant Probabilistic Interestingness Measures for Association Rules.
Year: 2011
Book title: EGC (best of volume)
('enumerate authorlist: ', u'Isra')
('enumerate authorlist: ', u'\xeb')
('enumerate authorlist: ', u'l-C')
('enumerate authorlist: ', u'\xe9')
('enumerate authorlist: ', u'sar Lerman')
('enumerate authorlist: ', u'Sylvie Guillaume')
********** inproceedings
pubkey: series/sci/GherasimHBK13
Author: Toader Gherasim
Author: Mounira Harzallah
Author: Giuseppe Berio
Author: Pascale Kuntz
Title: Methods and Tools for Automatic Construction of Ontologies from Textual Resources: A Framework for Comparison and Its Application.
Year: 2011
Book title: EGC (best of volume)
('enumerate authorlist: ', u'Toader Gherasim')
('enumerate authorlist: ', u'Mounira Harzallah')
('enumerate authorlist: ', u'Giuseppe Berio')
('enumerate authorlist: ', u'Pascale Kuntz')
********** inproceedings
pubkey: series/sci/MechoucheAPM13
Author: Ammar Mechouche
Author: Nathalie Abadie
Author: Emeric Prouteau
Author: re
Title: Ontology-Based Formal Specifications for User-Friendly Geospatial Data Discovery.
Year: 2011
Book title: EGC (best of volume)
('enumerate authorlist: ', u'Ammar Mechouche')
('enumerate authorlist: ', u'Nathalie Abadie')
('enumerate authorlist: ', u'Emeric Prouteau')
('enumerate authorlist: ', u'S')
('enumerate authorlist: ', u'\xe9')
('enumerate authorlist: ', u'bastien Musti')
('enumerate authorlist: ', u'\xe8')
('enumerate authorlist: ', u're')

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.