返回
Components.js: Semantic dependency injection
DOI:10.3233/SW-222945.png)
摘要
En 中文
A common practice within object-oriented software is using composition to realize complex object behavior in a reusable way. Such compositions can be managed by Dependency Injection (DI), a popular technique in which components only depend on minimal interfaces and have their concrete dependencies passed into them. Instead of requiring program code, this separation enables describing the desired instantiations in declarative configuration files, such that objects can be wired together automatically at runtime. Configurations for existing DI frameworks typically only have local semantics, which limits their usage in other contexts. Yet some cases require configurations outside of their local scope, such as for the reproducibility of experiments, static program analysis, and semantic workflows. As such, there is a need for globally interoperable, addressable, and discoverable configurations, which can be achieved by leveraging Linked Data. We created Components.js as an opensource semantic DI framework for TypeScript and JavaScript applications, providing global semantics via Linked Data-based configuration files. In this article, we report on the Components.js framework by explaining its architecture and configuration, and discuss its impact by mentioning where and how applications use it. We show that Components.js is a stable framework that has seen significant uptake during the last couple of years. We recommend it for software projects that require high flexibility, configuration without code changes, sharing configurations with others, or applying these configurations in other contexts such as experimentation or static program analysis. We anticipate that Components.js will continue driving concrete research and development projects that require high degrees of customization to facilitate experimentation and testing, including the Comunica query engine and the Community Solid Server for decentralized data publication.
Keyword:
Dependency injection
inversion of control
RDF
linked data
期刊
IF:
2.9
论文数:
609
被引数:
1.6K
机构
引用论文
The Semantic Web - A new form of Web content that is meaningful to computers will unleash a revolution of new possibilities语义网-一种对计算机有意义的新形式的网络内容将引发一场新可能性的革命
SCIENTIFIC AMERICAN
IF3.1
Transverse isotropic elastic moduli and in-plane thermal diffusivity in silicon-supported thin films of a photosensitive polyimide measured using impulsive stimulated thermal scattering
Polymer
IF0
Adapting the Namaste Care Program for Use with Caregivers of Community-Dwelling Older Adults with Moderate to Advanced Dementia: A Qualitative Descriptive Study将Namaste Care计划调整为适用于社区居住的患有中重度痴呆的老年人照护者:一项定性描述研究

