WikidataComplete / wikidatacomplete-backend

apis for wikidatacomplete
MIT License
2 stars 1 forks source link

Generate new facts with help of new files shared by Guo #30

Open lalit97 opened 2 years ago

lalit97 commented 2 years ago
  1. write a separate management script with help of old script
  2. check constants taken in old script and check if they match in new records eg: property
lalit97 commented 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