Skip to content

Commit

Permalink
Add more properties
Browse files Browse the repository at this point in the history
  • Loading branch information
dseomn committed Nov 6, 2023
1 parent 6b458f4 commit aecdf26
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions rock_paper_sand/wikidata.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,7 @@ class RelatedMedia:
_SIBLING_PROPERTIES = (
wikidata_value.P_FOLLOWED_BY,
wikidata_value.P_FOLLOWS,
wikidata_value.P_SUPPLEMENT_TO,
)
_CHILD_PROPERTIES = (
wikidata_value.P_FICTIONAL_UNIVERSE_DESCRIBED_IN,
Expand All @@ -239,6 +240,8 @@ class RelatedMedia:
wikidata_value.P_BASED_ON,
wikidata_value.P_DERIVATIVE_WORK,
wikidata_value.P_HAS_SPIN_OFF,
wikidata_value.P_MODIFIED_VERSION_OF,
wikidata_value.P_PLOT_EXPANDED_IN,
)


Expand Down
3 changes: 3 additions & 0 deletions rock_paper_sand/wikidata_value.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,11 +156,14 @@ def from_string(cls, value: str) -> Self:
P_HAS_SPIN_OFF = _p("https://www.wikidata.org/wiki/Property:P2512")
P_INSTANCE_OF = _p("https://www.wikidata.org/wiki/Property:P31")
P_MEDIA_FRANCHISE = _p("https://www.wikidata.org/wiki/Property:P8345")
P_MODIFIED_VERSION_OF = _p("https://www.wikidata.org/wiki/Property:P5059")
P_PART_OF = _p("https://www.wikidata.org/wiki/Property:P361")
P_PART_OF_THE_SERIES = _p("https://www.wikidata.org/wiki/Property:P179")
P_PLOT_EXPANDED_IN = _p("https://www.wikidata.org/wiki/Property:P5940")
P_PUBLICATION_DATE = _p("https://www.wikidata.org/wiki/Property:P577")
P_START_TIME = _p("https://www.wikidata.org/wiki/Property:P580")
P_SUBCLASS_OF = _p("https://www.wikidata.org/wiki/Property:P279")
P_SUPPLEMENT_TO = _p("https://www.wikidata.org/wiki/Property:P9234")
P_TAKES_PLACE_IN_FICTIONAL_UNIVERSE = _p(
"https://www.wikidata.org/wiki/Property:P1434"
)
Expand Down

0 comments on commit aecdf26

Please sign in to comment.