Skip to content

Commit

Permalink
Add a Wikidata query
Browse files Browse the repository at this point in the history
  • Loading branch information
katjabercic committed Nov 29, 2023
1 parent 8646465 commit 348f5d0
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions web/slurper/source_wikidata.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,11 +216,16 @@ def save_link(current_item, source, source_id):
# anything part of a topic that is studied by mathmatics
?item wdt:P31 ?topic .
?topic wdt:P2579 wd:Q395 .
""",
"""
# concepts studied by an area of mathematics
?item wdt:P2579 ?area .
?area wdt:P31 wd:Q1936384
""",
"""
# concepts of areas of mathematics
?item p:P31 ?of.
?of ps:P31 wd:Q151885.
?item p:P31 ?of .
?of ps:P31 wd:Q151885 .
?of pq:P642/p:P31/ps:P31 wd:Q1936384
""",
"""
Expand All @@ -238,6 +243,3 @@ def save_link(current_item, source, source_id):
)
for source, source_property in WikidataSlurper.OTHER_SOURCES.items()
]

# ?concept wdt:P642 ?area .
# ?area wdt:P31 wd:Q1936384 .

0 comments on commit 348f5d0

Please sign in to comment.