{"id":20048835,"url":"https://github.com/sintef/soft7","last_synced_at":"2025-10-07T02:05:59.844Z","repository":{"id":40507127,"uuid":"487813647","full_name":"SINTEF/soft7","owner":"SINTEF","description":"SINTEF Open Framework and Tools for Data Driven Semantic Interoperability","archived":false,"fork":false,"pushed_at":"2025-10-06T17:25:06.000Z","size":462,"stargazers_count":4,"open_issues_count":10,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-10-07T02:03:44.790Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://sintef.github.io/soft7","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SINTEF.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2022-05-02T11:08:18.000Z","updated_at":"2025-09-30T07:33:35.000Z","dependencies_parsed_at":"2022-08-09T22:22:17.432Z","dependency_job_id":"6bcdc8f5-47f1-4c9e-889e-e24663437fd8","html_url":"https://github.com/SINTEF/soft7","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/SINTEF/soft7","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SINTEF%2Fsoft7","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SINTEF%2Fsoft7/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SINTEF%2Fsoft7/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SINTEF%2Fsoft7/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SINTEF","download_url":"https://codeload.github.com/SINTEF/soft7/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SINTEF%2Fsoft7/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278708005,"owners_count":26031932,"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","status":"online","status_checked_at":"2025-10-07T02:00:06.786Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":"2024-11-13T11:46:47.080Z","updated_at":"2025-10-07T02:05:59.810Z","avatar_url":"https://github.com/SINTEF.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SOFT7\n\n## OTEAPI plugin\n\nThe `soft7` packages comes with an [OTEAPI](https://github.com/EMMC-ASBL/oteapi-core) plugin that allows one to convert any core parser data to a SOFT7 Entity instance.\n\nTo use the plugin, call the `'soft7'` `functionType` function strategy.\n\n### Test the plugin\n\nAt the root of the repository is a [Docker Compose](https://docs.docker.com/compose/) file, which, when run, will start an [OTEAPI Service](https://github.com/EMMC-ASBL/oteapi-services#readme) that includes the `soft7` OTEAPI plugin.\n\nTo start the service, run:\n\n```bash\ndocker compose pull\ndocker compose up -d\n```\n\nTo follow along with the installation of the `soft7` package and startup of the OTEAPI Service, run:\n\n```bash\ndocker logs -f soft7-oteapi-1\n```\n\nPress Ctrl+C to stop following the logs.\n\nTo eventually stop the services, run:\n\n```bash\ndocker compose down\n```\n\nBut first, let's test the plugin.\n\nOpen a Python shell, an [IPython shell](https://ipython.org/), or a [Jupyter Notebook](https://jupyter.org/), and run:\n\n```python\nfrom s7.factories import create_datasource\n\n# Let us use an OPTIMADE structure from the Materials Project as our \"raw\" data source.\n# The chosen structure is mp-1228448 (Al2O3):\n# https://materialsproject.org/materials/mp-1228448/\n# For more information about OPTIMADE, see https://www.optimade.org/\n# For more information about the Materials Project, see https://materialsproject.org/\ndataresource_config = {\n    \"downloadUrl\": (\n        \"https://optimade.materialsproject.org/v1/structures/mp-1228448?\"\n        \"response_format=json\"\n    ),\n    \"mediaType\": \"application/json\",\n}\n\n# We need to setup a mapping configuration to tell the plugin how to map the OPTIMADE\n# structure to a SOFT7 Entity instance.\n# This requires knowledge of the OPTIMADE structure and the SOFT7 Entity.\n# In our case the OPTIMADE structure specification is available at\n# https://github.com/Materials-Consortia/OPTIMADE/blob/v1.1.0/optimade.rst#structures-entries\n# and the SOFT7 Entity of choice is the `OPTIMADEStructure` Entity, which can be found\n# at http://onto-ns.com/meta/1.0/OPTIMADEStructure\nmapping_config = {\n    \"mappingType\": \"triples\",\n    \"prefixes\": {\n        \"optimade\": \"https://optimade.materialsproject.org/v1/structures/mp-1228448#\",\n        \"soft7\": \"http://onto-ns.com/meta/1.0/OPTIMADEStructure#\",\n    },\n    \"triples\": {\n        (\"optimade:data.id\", \"\", \"soft7:properties.id\"),\n        (\"optimade:data.type\", \"\", \"soft7:properties.type\"),\n        (\"optimade:data.attributes\", \"\", \"soft7:properties.\"),\n    },\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsintef%2Fsoft7","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsintef%2Fsoft7","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsintef%2Fsoft7/lists"}