{"id":23032994,"url":"https://github.com/jervenbolleman/sapfhir-server","last_synced_at":"2026-05-07T14:41:55.123Z","repository":{"id":144952221,"uuid":"346453933","full_name":"JervenBolleman/sapfhir-server","owner":"JervenBolleman","description":"Server/docker image for sapfhir using spring-boot and docker image","archived":false,"fork":false,"pushed_at":"2023-10-29T13:04:50.000Z","size":20,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-08T12:15:33.466Z","etag":null,"topics":["biohackeu20","docker-image","rdf","sparql","spring-boot"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/JervenBolleman.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2021-03-10T18:29:57.000Z","updated_at":"2021-11-08T13:28:53.000Z","dependencies_parsed_at":null,"dependency_job_id":"e92d8088-9bd6-4e57-92d8-b6527f7ea45b","html_url":"https://github.com/JervenBolleman/sapfhir-server","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JervenBolleman%2Fsapfhir-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JervenBolleman%2Fsapfhir-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JervenBolleman%2Fsapfhir-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JervenBolleman%2Fsapfhir-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JervenBolleman","download_url":"https://codeload.github.com/JervenBolleman/sapfhir-server/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246899637,"owners_count":20851893,"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":["biohackeu20","docker-image","rdf","sparql","spring-boot"],"created_at":"2024-12-15T15:56:49.725Z","updated_at":"2025-10-27T03:14:40.598Z","avatar_url":"https://github.com/JervenBolleman.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SapFhir server\n\nThis makes the handlegraph4j-simple available as a [W3C SPARQL API](https://www.w3.org/TR/sparql11-protocol/).\n\nYou first need to make a handlegraph4j-simple disk/based buffer image use [sapfhir-cli](https://github.com/JervenBolleman/sapfhir-cli).\n\n\n```\njava -Xmx16G \\ # set ram to load GFA into memory as needed\n    -jar target/sapfhir-cli-1.0-SNAPSHOT-jar-with-dependencies.jar \\\n    --gfa ${PATH_TO_GFA_FILE} \\\n    --byte-buffer ${PATH_TO_STORE_DISK_BASKED_FILE} \\\n    --convert-to-byte \\\n    --time \\\n    \"PREFIX vg:\u003chttp://biohackathon.org/resource/vg#\u003e SELECT ?path WHERE {?path a vg:Path} LIMIT 1\"\n```\n\n\n# Usage\n\n```\ndocker pull jerven/sapfhir-server\ndocker run -p 8086:8080 -v $LOCAL_DIR/:/data jerven/sapfhir-server --byteBuffer=/data/1kg_hs37d5.h4js --base=http://example.org/vg/\n```\nAt the moment both the base IRI and byteBuffer location needs to be given.\nThere is no support yet for loading a GFA into memory directly.\nNotice the byteBuffer argument takes a file name in the folder mounted by docker.\nThe default port is 8080, here remapped to localhost:8086 in the docker host.\n\nTest queries e.g.\n\n```\ncurl -H 'accept: application/sparql-results+json'  \\\n  \"http://localhost:8086/sparql/\"  \\\n  --data-urlencode \"query=SELECT (COUNT(?s) AS ?c) WHERE {?s ?p ?o}\"\n```\n\n# Build docker image\n\n\n```\nmvn spring-boot:build-image -Dspring-boot.build-image.imageName=jerven/sapfhir-server\ndocker push jerven/sapfhir-server\n```\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjervenbolleman%2Fsapfhir-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjervenbolleman%2Fsapfhir-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjervenbolleman%2Fsapfhir-server/lists"}