Skip to content

Commit

Permalink
Handle anthology films
Browse files Browse the repository at this point in the history
Apparently it's not a subclass of anthology.
  • Loading branch information
dseomn committed Nov 16, 2023
1 parent 7db714d commit 6332488
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion rock_paper_sand/wikidata.py
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,10 @@ def _ignored_classes_from_request(

@functools.cached_property
def _anthology_classes(self) -> Set[wikidata_value.ItemRef]:
return self._api.transitive_subclasses(wikidata_value.Q_ANTHOLOGY)
return {
*self._api.transitive_subclasses(wikidata_value.Q_ANTHOLOGY),
*self._api.transitive_subclasses(wikidata_value.Q_ANTHOLOGY_FILM),
}

@functools.cached_property
def _music_classes(self) -> Set[wikidata_value.ItemRef]:
Expand Down
1 change: 1 addition & 0 deletions rock_paper_sand/wikidata_value.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ def human_readable_url_prefix(cls) -> str:

_i = ItemRef.from_string
Q_ANTHOLOGY = _i("https://www.wikidata.org/wiki/Q105420")
Q_ANTHOLOGY_FILM = _i("https://www.wikidata.org/wiki/Q336144")
Q_BOX_OFFICE = _i("https://www.wikidata.org/wiki/Q21707777")
Q_CLASS_OF_FICTIONAL_ENTITIES = _i("https://www.wikidata.org/wiki/Q15831596")
Q_FICTIONAL_ENTITY = _i("https://www.wikidata.org/wiki/Q14897293")
Expand Down

0 comments on commit 6332488

Please sign in to comment.