Open lalit97 opened 2 years ago
Currently, we only had P143 and P4656 as references and their names are hardcoded in UI. We need to move to pick those names from the backend instead.
current
[
{
'property': 'P143',
'value': 'It was founded in 1935 by the Prague Linguistic Circle. It is one of the most prestigious Czech-written journals that publish articles from general linguistics and related fields.',
'type': 'string'
},
{
'property': 'P4656',
'value': 'https://en.wikipedia.org/wiki/Slovo_a_slovesnost',
'type': 'url'
}
]
New
[
{
'property': 'P143',
'value': 'It was founded in 1935 by the Prague Linguistic Circle. It is one of the most prestigious Czech-written journals that publish articles from general linguistics and related fields.',
'type': 'string',
'name': 'evidence'
},
{
'property': 'P4656',
'value': 'https://en.wikipedia.org/wiki/Slovo_a_slovesnost',
'type': 'url',
'name': 'Wikimedia import URL'
}
]
Requirements
[x] one-time script to add property name field in references
field
[x] change POST API documentation for references
[x] change defaults in models for references
[x] change facts Retrieve and Random APIs to return references
in general instead of evidence
and wikipediaLink
[x] change old script transfer-old-facts
to include name
property of references
[ ] change UI code to remove hardcoded property names and read from API
[ ] get property names from wikidata API instead of hardcoding