using WikidataAPIWrapper can not return expected results #28504
Unanswered
Kai-Chen00
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Checked other resources
Commit to Help
Example Code
Description
I want to get the 'P31' - 'instance of' property of arterial hypertension, but I got the result shown as below:
Result Q16070735:
Label: arterial pulmonary hypertension
Description: health problem
Aliases: pulmonary arterial hypertension, Pulmonary arterial hypertension, Pulmonary Arterial Hypertension
Result Q41861:
Label: arterial hypertension
Description: long term medical condition with elevated arterial blood pressure
Aliases: high blood pressure, "the silent killer", hypertension, increased blood pressure
Obviously, apart from 'label', 'Description', 'Aliases', which are all basic information will be returned by default, it didn't return the property I want - 'Instance of', by modifying 'wikidata_props' parameter in WikidataAPIWrapper. Any advice for that?
System Info
wikibase-rest-api-client 0.1.4
wikipedia 1.4.0
langchain 0.3.9
langchain-community 0.3.8
langchain-core 0.3.21
langchain-text-splitters 0.3.2
langsmith 0.1.147
Beta Was this translation helpful? Give feedback.
All reactions