-
Notifications
You must be signed in to change notification settings - Fork 0
Fetch entities #7
base: master
Are you sure you want to change the base?
Conversation
"wikidata_id": int(entity["entity"]["value"].split("Q", 1)[1]), | ||
"color": "#fff", # TODO: change | ||
"admin_level": 1, | ||
"predecessors": [] # entity["predecessors"]["value"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FKEYs are enforced on a db level to maintain integrity, should we change this to be able to store predecessor relationships to entities not in our db?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
afaik predecessor field was disabled for mvp and primary key has been changed to id
It's better to keep this field as FKEY in the future.
for entity in ENTITIES["results"]["bindings"]: | ||
data = { | ||
"wikidata_id": int(entity["entity"]["value"].split("Q", 1)[1]), | ||
"color": "#fff", # TODO: change |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are "wish" colors to be assigned manually?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right now it's an int field in database.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should discuss workflow of data extracted from wikidata on next technical call
for entity in ENTITIES["results"]["bindings"]: | ||
data = { | ||
"wikidata_id": int(entity["entity"]["value"].split("Q", 1)[1]), | ||
"color": "#fff", # TODO: change |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right now it's an int field in database.
"wikidata_id": int(entity["entity"]["value"].split("Q", 1)[1]), | ||
"color": "#fff", # TODO: change | ||
"admin_level": 1, | ||
"predecessors": [] # entity["predecessors"]["value"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
afaik predecessor field was disabled for mvp and primary key has been changed to id
It's better to keep this field as FKEY in the future.
Blocked by #1