Skip to content

Commit

Permalink
Polish formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
rubensworks committed Jan 6, 2022
1 parent 9a09850 commit 305a380
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 13 deletions.
12 changes: 5 additions & 7 deletions content/configs.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,20 +68,18 @@ compacted with the `https://linkedsoftwaredependencies.org/bundles/npm/component
</figcaption>
</figure>

Since components and parameters are defined as RDFS vocabulary,
we can instantiate components easily using the `rdf:type` predicate,
and by using parameters as predicates on such new instances, as shown in [](#instance-oo).
Instead of passing literals as values to parameters, it is also possible to pass _other component instances_ as values,
thereby allowing nested component instantiations to be defined.

<figure id="instance-oo" class="listing">
````/code/instance-oo.txt````
<figcaption markdown="block">
Instantiation of `ex:MyModule/MyComponent` using a value for the parameter `ex:MyModule/MyComponent#name`.
</figcaption>
</figure>

<div class="printonly" style="height: 50px;">&nbsp;</div>
Since components and parameters are defined as RDFS vocabulary,
we can instantiate components easily using the `rdf:type` predicate,
and by using parameters as predicates on such new instances, as shown in [](#instance-oo).
Instead of passing literals as values to parameters, it is also possible to pass _other component instances_ as values,
thereby allowing nested component instantiations to be defined.

### Object Mapping Vocabulary

Expand Down
6 changes: 2 additions & 4 deletions content/related-work.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
<div class="printonly" style="height: 100px;">&nbsp;</div>

## Related Work
{:#related-work}

Expand Down Expand Up @@ -35,6 +33,8 @@ However, when dependencies are defined based on some logic such as external cond
configuration via code may be better suited,
as this can become too complex to define in declarative configuration files.

<div class="printonly" style="height: 40px;">&nbsp;</div>

**Forms of Injection**

In practice, three main forms of DI exist through which dependencies can be injected into an object:
Expand Down Expand Up @@ -75,8 +75,6 @@ Disadvantages:
* Logic **flow is harder to follow** when debugging, which leads to the need of good documentation.
* DI frameworks can lead to **overhead** in terms of understandability, execution time and software size.

<div class="printonly" style="height: 50px;">&nbsp;</div>

### Semantic Software Description
{:#related-work-software-description}

Expand Down
4 changes: 2 additions & 2 deletions content/usage.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
<div class="printonly" style="height: 50px;">&nbsp;</div>

## Usage
{:#usage}

Expand Down Expand Up @@ -30,8 +32,6 @@ In the previous section, we provided an informed estimate as to _how much_ Compo
In this section, we provide an analysis of _in what way_ Components.js is being used in four real-world projects:
Community Solid Server, Handlers.js, Digita Identity Proxy, and Comunica.

<div class="printonly" style="height: 50px;">&nbsp;</div>

#### Community Solid Server

The [Community Solid Server](cite:cites link:github:css)
Expand Down

0 comments on commit 305a380

Please sign in to comment.