{"id":40149092,"url":"https://github.com/eclipse-esmf/esmf-sdk-js-aspect-model-loader","last_synced_at":"2026-01-19T15:03:58.456Z","repository":{"id":61801198,"uuid":"473339159","full_name":"eclipse-esmf/esmf-sdk-js-aspect-model-loader","owner":"eclipse-esmf","description":"Load Aspect Models into TypeScript. This facilitates JavaScript projects e.g. based on Angular and React.","archived":false,"fork":false,"pushed_at":"2024-11-07T13:36:16.000Z","size":1027,"stargazers_count":2,"open_issues_count":2,"forks_count":2,"subscribers_count":4,"default_branch":"main","last_synced_at":"2024-11-07T14:28:39.316Z","etag":null,"topics":["javascript","js"],"latest_commit_sha":null,"homepage":"https://eclipse-esmf.github.io/js-sdk-guide/index.html","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/eclipse-esmf.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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":"AUTHORS.md","dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-03-23T19:57:49.000Z","updated_at":"2024-11-07T13:36:21.000Z","dependencies_parsed_at":"2023-01-22T18:45:34.352Z","dependency_job_id":"a1d29f0d-6302-4591-8d31-c2f961e830e6","html_url":"https://github.com/eclipse-esmf/esmf-sdk-js-aspect-model-loader","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/eclipse-esmf/esmf-sdk-js-aspect-model-loader","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eclipse-esmf%2Fesmf-sdk-js-aspect-model-loader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eclipse-esmf%2Fesmf-sdk-js-aspect-model-loader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eclipse-esmf%2Fesmf-sdk-js-aspect-model-loader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eclipse-esmf%2Fesmf-sdk-js-aspect-model-loader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eclipse-esmf","download_url":"https://codeload.github.com/eclipse-esmf/esmf-sdk-js-aspect-model-loader/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eclipse-esmf%2Fesmf-sdk-js-aspect-model-loader/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28572602,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-19T14:39:55.009Z","status":"ssl_error","status_checked_at":"2026-01-19T14:39:01.217Z","response_time":67,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["javascript","js"],"created_at":"2026-01-19T15:03:58.401Z","updated_at":"2026-01-19T15:03:58.451Z","avatar_url":"https://github.com/eclipse-esmf.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ESMF JS SDK :: Aspect Model Loader 🚀\n\n## Table of Contents\n\n- [Introduction](#introduction)\n- [Getting help](#getting-help)\n- [Getting started](#getting-started)\n    - [Install from the public npm](#install-from-the-public-npm)\n    - [Usage](#usage)\n    - [Helpful functions](#helpful-functions)\n    - [Development](#development)\n        - [Create bundle](#create-bundle)\n        - [Update indexes](#update-indexes)\n- [Documentation](#documentation)\n- [License](#license)\n\n## Introduction\n\nThis project enables developers to effortlessly load and parse one or more [.ttl files](\u003chttps://en.wikipedia.org/wiki/Turtle_(syntax)\u003e) \nand instantiate native TypeScript objects of the pared [SAMM](\u003chttps://projects.eclipse.org/projects/dt.esmf\u003e) semantic concepts.\n\n## Getting help\n\nAre you having trouble with ESMF JS? We want to help!\n\n- Check the [developer documentation](https://eclipse-esmf.github.io)\n- Having issues with the ESMF JS? Open\n  a [GitHub issue](https://github.com/eclipse-esmf/esmf-sdk-js-aspect-model-loader/issues).\n\n## Getting started\n\n### Install from the public npm:\n\n\u003c!-- TODO: Replace this with esmf --\u003e\n\n```\nnpm install @esmf/aspect-model-loader\n```\n\n## Usage\n\nInstantiating an Aspect the following two methods for loading ttl files(string value of the .ttl files) are provided.\n\nLoad an aspect model which is self-contained (includes no imports to other ttl file):\n\n```\nnew AspectModelLoader().loadSelfContainedModel(ttl).subscribe((aspect: Aspect) =\u003e {\n...\n});\n```\n\nor if the model contains imports to further ttl files:\n\n```\nnew AspectModelLoader().load('\u003caspect-model-urn\u003e', ttl-1, ttl-2, ttl-3, ...).subscribe((aspect: Aspect) =\u003e {\n...\n});\n```\n\nBesides loading an aspect the project also supports to load and group the SAMM definitions by namespace.\n\nLoad all namespace and related SAMM semantic concepts:\n\n```\nnew NamespaceLoader().load(ttl-1, ttl-2, ttl-3, ...).subscribe((namespaces: Observable\u003cMap\u003cstring, Array\u003cBaseMetaModelElement\u003e\u003e\u003e) =\u003e {\n...\n});\n```\n\nIf you are using external .ttl files you may need to parse the contents of these files to strings, to be passed to the\nmethods params. Further all .ttl files must use the same SAMM version. Loading SAMM semantic concepts from different .ttl files\nhaving different SAMM versions is not supported yet.\n\n## Helpful functions\n\nThis module exposes some helper functions that can be used to find items inside the loaded ttl object.\n\nFind a specific model element, and returns it or undefined.\n\n```\nlet specificElement = loader.findByUrn(options.urnSelectedModelElement)\n```\n\nFind a specific model element by name, and returns the found elements.\n\n```\nlet specificElement = loader.findByName(options.selectedModelName)\n```\n\n## Development\n\n### Create bundle\n\n```\nnpm run build\n```\n\nto build and to create the library\n\n#### Update indexes\n\n```\nctix create ./src\n```\n\nto update all index files under `src`. For more information see the project https://github.com/imjuni/create-ts-index.\n\n## Documentation\n\nFurther documentation and HowTos are provided in the\nofficial [JS SDK User Documentation](https://eclipse-esmf.github.io/js-sdk-guide/index.html)\n\n## License\n\nSPDX-License-Identifier: MPL-2.0\n\nThis program and the accompanying materials are made available under the terms of the\n[Mozilla Public License, v. 2.0](LICENSE).\n\nThe [Notice file](NOTICE.md) details contained third party materials.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feclipse-esmf%2Fesmf-sdk-js-aspect-model-loader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feclipse-esmf%2Fesmf-sdk-js-aspect-model-loader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feclipse-esmf%2Fesmf-sdk-js-aspect-model-loader/lists"}