Skip to content

Warnings while creating SQLite database #6

@breisfeld

Description

@breisfeld

Hi,

Your program medic looks extremely useful.

I am trying to create a medline sql database using files downloaded from ftp://ftp.ncbi.nlm.nih.gov/pubmed/baseline.

After the download, I issue the following shell command:

$ for file in baseline/medline17n*.xml.gz
do
  medic --url sqlite:///medline.db update $file
done

For each file, I get the following database table-related warnings:

K:\Python\Anaconda\lib\site-packages\sqlalchemy\orm\relationships.py:2694: SAWarning: relationship 'Qualifier.citation' will copy column citations.pmid to column qualifiers.pmid, which conflicts with relationship(s): 'Qualifier.descriptor' (copies descriptors.pmid to qualifiers.pmid), 'Descriptor.qualifiers' (copies descriptors.pmid to qualifiers.pmid). Consider applying viewonly=True to read-only relationships, or provide a primaryjoin condition marking writable columns with the foreign() annotation.
  for (pr, fr_) in other_props)
K:\Python\Anaconda\lib\site-packages\sqlalchemy\orm\relationships.py:2694: SAWarning: relationship 'Citation.qualifiers' will copy column citations.pmid to column qualifiers.pmid, which conflicts with relationship(s): 'Qualifier.descriptor' (copies descriptors.pmid to qualifiers.pmid), 'Descriptor.qualifiers' (copies descriptors.pmid to qualifiers.pmid). Consider applying viewonly=True to read-only relationships, or provide a primaryjoin condition marking writable columns with the foreign() annotation.
  for (pr, fr_) in other_props)
K:\Python\Anaconda\lib\site-packages\sqlalchemy\orm\relationships.py:2694: SAWarning: relationship 'Section.citation' will copy column citations.pmid to column sections.pmid, which conflicts with relationship(s): 'Section.abstract' (copies abstracts.pmid to sections.pmid), 'Abstract.sections' (copies abstracts.pmid to sections.pmid). Consider applying viewonly=True to read-only relationships, or provide a primaryjoin condition marking writable columns with the foreign() annotation.
  for (pr, fr_) in other_props)
K:\Python\Anaconda\lib\site-packages\sqlalchemy\orm\relationships.py:2694: SAWarning: relationship 'Citation.sections' will copy column citations.pmid to column sections.pmid, which conflicts with relationship(s): 'Section.abstract' (copies abstracts.pmid to sections.pmid), 'Abstract.sections' (copies abstracts.pmid to sections.pmid). Consider applying viewonly=True to read-only relationships, or provide a primaryjoin condition marking writable columns with the foreign() annotation.
  for (pr, fr_) in other_props)

Platform: Windows 7
Medic: 2.4.1
Python: Python 3.6.3 |Anaconda custom (64-bit)|

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions