Skip to content

Slurper: OEIS #16

Description

@katjabercic

Index integer sequences from the On-Line Encyclopedia of Integer Sequences as Items.

Wikidata P829 ("OEIS ID") has only 400-500 statements. A full import would have ~400k items, ~80 MB in SQLite / ~120 MB in PostgreSQL. We should run the Wikidata P829 bridge first to collect the A-numbers that Wikidata knows about; import only those plus any NAME_EQ matches against existing items.

Item mapping

identifier = "A000045", url = "https://oeis.org/A000045",
name = "A000045", description = <name-line from names.gz>.
Source tag: OEIS = "OEIS".

Tasks

  • web/slurper/source_oeis.py with a slurper class + module-level instance.
  • New Item.Source member (OEIS = "OEIS"); add it to Item.Source.key().
  • management/commands/import_oeis.py (with --force) and clear_oeis.py.
  • Makefile target import-oeis.
  • make create-migrations for the new Source choice.
  • Pin any new dependency in web/requirements.txt.
  • make fix-files clean; tests pass.

License

CC-BY-SA-4.0. Credit "The On-Line Encyclopedia of Integer Sequences" with a link to https://oeis.org/ in the slurper module docstring.

Notes

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions