Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fetch error types from an URL #131

Closed
lfoppiano opened this issue Nov 15, 2022 · 2 comments
Closed

fetch error types from an URL #131

lfoppiano opened this issue Nov 15, 2022 · 2 comments

Comments

@lfoppiano
Copy link
Owner

We should place the error types in a single place and serve it via URL

@lfoppiano
Copy link
Owner Author

Implemented in

GET http://localhost:8080/error_types

{
  "composition_resolution": "Composition resolution", 
  "extraction": "Extraction", 
  "from_table": "From table", 
  "linking": "Linking", 
  "tc_classification": "Tc classification", 
  "value_resolution": "Value resolution"
}

@lfoppiano
Copy link
Owner Author

To update the error types:

db.tabular.update({error_type: "Linking"}, {"$set": {error_type: "linking"}}, {multi:1})
db.tabular.update({error_type: "Tc classification"}, {"$set": {error_type: "tc_classification"}}, {multi:1})
db.tabular.update({error_type: "Extraction"}, {"$set": {error_type: "extraction"}}, {multi:1})
db.tabular.update({error_type: "Composition resolution"}, {"$set": {error_type: "composition_resolution"}}, {multi:1})

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants