{"id":25167176,"url":"https://github.com/biocomputingup/idpregistry-kg","last_synced_at":"2025-04-03T17:44:18.615Z","repository":{"id":107303982,"uuid":"561015071","full_name":"BioComputingUP/IDPregistry-KG","owner":"BioComputingUP","description":null,"archived":false,"fork":false,"pushed_at":"2023-10-23T08:55:49.000Z","size":27234,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-02-09T06:20:24.291Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/BioComputingUP.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2022-11-02T18:55:31.000Z","updated_at":"2023-10-17T12:30:02.000Z","dependencies_parsed_at":"2023-04-13T03:23:45.538Z","dependency_job_id":"df88b096-b913-4dac-93c8-7cd4db311700","html_url":"https://github.com/BioComputingUP/IDPregistry-KG","commit_stats":null,"previous_names":["biocomputingup/idpregistry","biocomputingup/idpregistry-kg"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BioComputingUP%2FIDPregistry-KG","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BioComputingUP%2FIDPregistry-KG/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BioComputingUP%2FIDPregistry-KG/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BioComputingUP%2FIDPregistry-KG/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BioComputingUP","download_url":"https://codeload.github.com/BioComputingUP/IDPregistry-KG/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247051984,"owners_count":20875677,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-02-09T06:19:57.437Z","updated_at":"2025-04-03T17:44:18.599Z","avatar_url":"https://github.com/BioComputingUP.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Instantiate the IDP Registry backend\n\n### Prerequisites\n\n* [Docker Desktop](https://www.docker.com/products/docker-desktop)\n\nOR\n\n* [Docker Engine](https://docs.docker.com/engine/install/ubuntu/)\n  and [Docker Compose](https://docs.docker.com/desktop/install/linux-install/)\n\n### Create a new context for the remote deployment\n\n```bash\ndocker context create ermes --description \"ermes\" --docker \"host=ssh://\u003cuser\u003e@ermes\"\n```\n\n### Set the new context as default\n\n```bash\ndocker context use ermes\n```\n\n### Volumes\n\nWe now need to create two separate volumes for the two different triplestores. The volumes will be used to store the\ndata of the triplestores. **The volumes will be created on the remote machine** and will be mounted on the containers\non startup.\n\n**GraphDB** volume:\n\n```bash\ndocker volume create -d local kg-graphdb\n```\n\n**Virtuoso** volume:\n\n```bash\ndocker volume create -d local kg-virtuoso\n```\n\n### Use docker-compose to start the containers\nThis should download the two remote images (graphdb and virtuoso) and start the containers on the remote machine.\n\nConfiguration options can be passed to the containers from the docker-compose.yml file.\n\n```bash\ndocker compose -f docker-compose-kg.yml -p idp-kg up -d\n```\n\n#### Show logs\n\n```bash\ndocker logs -f kg-graphdb    # For a single container\ndocker compose logs -f docker-compose-kg.yml logs -f # For all containers\n```\n\n### Import pre-saved data into the volumes \nIf you want to import the pre-saved data into the created volumes, you can use the following commands:\n\n```bash\n./docker-volume-snapshot.sh restore /projects/volumes_dump/GraphDB.tar.gz kg-graphdb\n```\n\n```bash\n./docker-volume-snapshot.sh restore /projects/volumes_dump/Virtuoso.tar.gz kg-virtuoso\n```\n\n#### Import to a remote volume without copying the file to the remote machine\n\n```bash\npv \u003cdump\u003e.tar.gz | docker run --rm -v \u003cvolume name\u003e:/destination -i busybox tar xzf - -C /destination\n```\n\n#### Export from a remote volume without copying the file to the local machine\n```bash\ndocker run --rm -v \u003cvolume name\u003e:/dest -i busybox tar -czvf - -C /dest . \u003e \u003cdump\u003e.tar.gz\n```\n\n### Import triples into the triplestores\n\n#### GraphDB\n\n* Open the GraphDB Workbench at http://localhost:7201\n* Create a new repository, just set the name, the rest leave it as default\n* Open the repository and go to the `Import` tab\n* Import the triples from the file `./data/*.ttl`\n* For each of the `ttl` file, click import and select target graphs `Named graphs`\n* Set the name of the graph to `https://idpcentral.org/registry/\u003cname of resource\u003e`\n* The name of the resource can be one of `ped`, `mobidb` or `disprot`\n* Click `Import`\n* Now if you go to the `Explore/Graphs overview` you should see the imported graphs\n\n#### Virtuoso\n\n* Open the Virtuoso interface at http://localhost:8890\n* Click on `Conductor`\n* Login with the default credentials `dba`/`dba` (password can be changed in the docker-compose.yml file)\n* Go to `Linked Data` -\u003e `Quad Store Upload`\n* Upload the file `./data/*.ttl`\n* For each of the `ttl` file, set the `Named Graph IRI` to `https://idpcentral.org/registry/\u003cname of resource\u003e`\n* Click `Upload`\n* Now if you go to the `Linked Data` -\u003e `Graphs` -\u003e `Graphs` you should see the imported graphs\n\n### Export volume data as a tar.gz file\n```bash\n./docker-volume-snapshot.sh create kg-graphdb GraphDB.tar.gz \n```\n\n```bash\n./docker-volume-snapshot.sh create kg-virtuoso Virtuoso.tar.gz \n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbiocomputingup%2Fidpregistry-kg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbiocomputingup%2Fidpregistry-kg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbiocomputingup%2Fidpregistry-kg/lists"}