Skip to main content

Notice

We are in the process of rolling out a soft launch of the RDA website, which includes a new member platform. Existing RDA members PLEASE REACTIVATE YOUR ACCOUNT using this link: https://rda-login.wicketcloud.com/users/confirmation. Visitors may encounter functionality issues with group pages, navigation, missing content, broken links, etc. As you explore the new site, please provide your feedback using the UserSnap tool on the bottom right corner of each page. Thank you for your understanding and support as we work through all issues as quickly as possible. Stay updated about upcoming features and functionalities: https://www.rd-alliance.org/rda-web-platform-upcoming-features-and-functionalities/

Simple Python client

  • Creator
    Discussion
  • #80993

    RDA Admin
    Member

    Dear all,
    We talked about clients accessing the collection API – I wrote a short
    Python script which uses only the two functions “Give me all
    collections” and “Give me all members of a collection” to create a
    (recursive) graph out of the content of a collectors API instance in Dot
    language.
    Visualized with GraphViz, the graph looks like this:
    https://github.com/TomZastrow/collection-api/blob/master/graph.png
    Here is the Python script:
    https://github.com/TomZastrow/collection-api/blob/master/recursion.py
    In general, this works only with collections on a local instance because
    we can’t detect if a member of collection is a collection somewhere
    else. Would need to integrate PIT API functionality for that.
    Best,
    Tom

Log in to reply.