Skip to content

Commit

Permalink
Merge branch 'master' of github.com:Wikidata/soweego
Browse files Browse the repository at this point in the history
  • Loading branch information
Hjfocs committed Jul 12, 2019
2 parents afa775c + 9d9b2aa commit a40752f
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
File renamed without changes.
5 changes: 3 additions & 2 deletions soweego/importer/imdb_dump_extractor.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,10 @@
DUMP_URL_MOVIE_INFO = 'https://datasets.imdbws.com/title.basics.tsv.gz'


class ImdbDumpExtractor(BaseDumpExtractor):
class IMDbDumpExtractor(BaseDumpExtractor):
"""Download IMDb dumps, extract data, and
populate a database instance."""
populate a database instance.
"""

# Counters
n_actors = 0
Expand Down
4 changes: 2 additions & 2 deletions soweego/importer/importer.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@
from soweego.commons.db_manager import DBManager
from soweego.importer.base_dump_extractor import BaseDumpExtractor
from soweego.importer.discogs_dump_extractor import DiscogsDumpExtractor
from soweego.importer.imdb_dump_extractor import ImdbDumpExtractor
from soweego.importer.imdb_dump_extractor import IMDbDumpExtractor
from soweego.importer.musicbrainz_dump_extractor import MusicBrainzDumpExtractor

LOGGER = logging.getLogger(__name__)

DUMP_EXTRACTOR = {
keys.DISCOGS: DiscogsDumpExtractor,
keys.IMDB: ImdbDumpExtractor,
keys.IMDB: IMDbDumpExtractor,
keys.MUSICBRAINZ: MusicBrainzDumpExtractor,
}

Expand Down
3 changes: 1 addition & 2 deletions soweego/importer/models/imdb_entity.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,7 @@ class IMDbNameEntity(BaseEntity):
**Attributes**:
- **gender** (string(10)) - a gender
- **occupations** (string(255)) - a string list of Wikidata QIDs
identifying occupations
- **occupations** (string(255)) - a string list of Wikidata occupation QIDs
"""

Expand Down

0 comments on commit a40752f

Please sign in to comment.