Twinbase is an open source platform for managing and distributing digital twin documents. It is built on git and can be hosted on free-of-charge GitHub services.
See an example server live at dtw.twinbase.org and details in an open access journal article: Autiosalo, J., Siegel, J., Tammi, K., 2021. Twinbase: Open-Source Server Software for the Digital Twin Web. IEEE Access 9, 140779–140798. https://doi.org/10.1109/ACCESS.2021.3119487
Twinbase is at initial development phase and backwards incompatible changes are expected frequently. Update mechanisms are not yet implemented.
Twinbase is hosted by Aalto University where its development was initiated as a result of the experience from multiple digital twin related projects. Twinbase is used as a tool for building the Digital Twin Web introduced in Section III of this article. Experiences with Twinbase are used to develop further versions of the digital twin document standard.
You can browse the web interface of this Twinbase from the URL shown on the baseurl
field in the /docs/index.yaml file if this Twinbase is properly configured.
You can fetch twin documents in Python with the dtweb-python library. Available as dtweb
from pip.
- Create a new repository with the "Use this template" button on the twinbase/twinbase page. (Sign in to GitHub if you can't see the button.)
- In the newly created repository, activate GitHub Actions from the Actions tab if necessary, and manually run the "File modifier" workflow. (This will modify the files to match your GitHub account. Running the workflow several times will not cause any harm.)
- Activate GitHub Pages from Settings > Pages > Source to
main
branch and/docs
folder. - A link to the web interface of Twinbase will be shown at the Pages page. If you have not made any domain name customizations, it is in the form <username>.github.io/<repository name>.
- Updates: Unfortunately any updates from the template repository must currently be made manually. But you can also just make another Twinbase and copy your twin folders and files there.
Forks can be used as well and might make updating easier, but their use has not been properly tested.
Recommended method to create new twins is to use the new-twin page found on the front page of each Twinbase.
After creating a twin, you need to activate its DT identifier with one of these methods:
- To activate the automatically generated dtid.org identifier, send the values of dt-id and hosting-iri of each twin to this form.
- Or you can overwrite the dt-id with the URL given by any URL shortener service or the perma-id service. The URL needs to redirect to the hosting-iri.
Contribution guidelines are not yet established, but useful contributions are welcome! For development, you can try this:
- Create your own Twinbase using the Template.
- Modify your Twinbase as you wish in GitHub.
- Fork twinbase/twinbase. (Do not activate Actions to avoid unnecessary commits.)
- Manually copy the useful modifications from the repository created with the Template.
- Submit a pull request.
Local development is a bit tricky as Twinbase uses GitHub Actions as an intergal part of the platform, but feel free to try!
There are currently no official support mechanisms for Twinbase, but Juuso may be able to help.
Twinbase uses
Thanks to the developers for the nice pieces of software!