schema.py 461 B

1234567891011121314151617181920212223242526
  1. """
  2. Data schema information for the book data tools.
  3. """
  4. import pandas as pd
  5. ns_work=100000000
  6. ns_edition=200000000
  7. ns_rec=300000000
  8. ns_gr_work=400000000
  9. ns_gr_book=500000000
  10. ns_loc_work=600000000
  11. ns_loc_instance=700000000
  12. ns_isbn=900000000
  13. src_labels = pd.Series({
  14. 'OL-W': 1,
  15. 'OL-E': 2,
  16. 'LOC': 3,
  17. 'GR-W': 4,
  18. 'GR-B': 5,
  19. 'LOC-W': 6,
  20. 'LOC-I': 7,
  21. 'ISBN': 9
  22. })
  23. src_label_rev = pd.Series(src_labels.index, index=src_labels.values)
Tip!

Press p or to see the previous file or, n or to see the next file