Giter Site home page Giter Site logo

Comments (2)

julsraemy avatar julsraemy commented on June 18, 2024

I couldn't create the CSV file for sgv:Subject and sgv:Sequence. The unresolved and resolved XML files have been downloaded though:

Update: As @thgie will most likely use the unresolved XML files to populate the PIA Database, it's not a big deal.

from pia-data-model.

julsraemy avatar julsraemy commented on June 18, 2024

I've just noticed that the sgv:Persons metadata are not exhaustive. We have only 999 items. Here is the error I got:

Traceback (most recent call last):
  File "/Users/julienraemy/Documents/GitHub/salsah-export/salsah2xml.py", line 1274, in <module>
    main()
  File "/Users/julienraemy/Documents/GitHub/salsah-export/salsah2xml.py", line 1270, in main
    program()
  File "/Users/julienraemy/Documents/GitHub/salsah-export/salsah2xml.py", line 1263, in program
    con.process_resource(resource, images_path, download, args.request_image_type, write_metadata, verbose)
  File "/Users/julienraemy/Documents/GitHub/salsah-export/salsah2xml.py", line 1117, in process_resource
    propnode = self.process_property(propname, resource["props"][propname], verbose)  # process_property()
  File "/Users/julienraemy/Documents/GitHub/salsah-export/salsah2xml.py", line 1060, in process_property
    valnode = self.process_value(int(prop["valuetype_id"]), value, verbose)
  File "/Users/julienraemy/Documents/GitHub/salsah-export/salsah2xml.py", line 904, in process_value
    encoding, valele.text = process_richtext(
  File "/Users/julienraemy/Documents/GitHub/salsah-export/salsah2xml.py", line 134, in process_richtext
    attributes = json.loads(textattr)
  File "/usr/local/Cellar/[email protected]/3.9.5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/json/__init__.py", line 346, in loads
    return _default_decoder.decode(s)
  File "/usr/local/Cellar/[email protected]/3.9.5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/json/decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/local/Cellar/[email protected]/3.9.5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/json/decoder.py", line 355, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 20 (char 19)

from pia-data-model.

Related Issues (11)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.