Skip to content

Commit

Permalink
Link to real-world examples
Browse files Browse the repository at this point in the history
  • Loading branch information
rubensworks committed Nov 4, 2021
1 parent 8c7b36b commit 73e2b42
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions content/configs.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,8 @@ which means that our component from [](#module-om) can still be instantiated in
The only difference now, is that we are able to determine how exactly the parameter values are to be used for invoking the component constructor.
For example, the instantiation of [](#instance-oo) corresponds to the following code in JavaScript: `new MyComponent({ name: 'Some name' })`

A real-world example of the combined usage of the OO and OM vocabularies can be found at [https://linkedsoftwaredependencies.org/bundles/npm/%40comunica%2Fcore/1.21.1/components/Actor.jsonld](https://linkedsoftwaredependencies.org/bundles/npm/%40comunica%2Fcore/1.21.1/components/Actor.jsonld).

### Dereferenceability

In [previous work](cite:citesAsAuthority van2017describing)
Expand Down Expand Up @@ -197,3 +199,6 @@ TypeScript class that is used as input to Components-Generator.js.
Components file that is generated by Components-Generator.js from the TypeScript file from [](#generator-ts).
</figcaption>
</figure>

A real-world example of such conversion can be seen in the [Solid Community Server](cite:cites link:github:css) project.
For example, the `CorsHandler` TypeScript class ([https://github.com/solid/community-server/blob/9b6eab27bc4e5ee25d1d3c6ce5972e83db90c650/src/server/middleware/CorsHandler.ts#L31](https://github.com/solid/community-server/blob/9b6eab27bc4e5ee25d1d3c6ce5972e83db90c650/src/server/middleware/CorsHandler.ts#L31)) is converted to the components file at [https://linkedsoftwaredependencies.org/bundles/npm/%40solid%2Fcommunity-server/2.0.0/dist/server/middleware/CorsHandler.jsonld](https://linkedsoftwaredependencies.org/bundles/npm/%40solid%2Fcommunity-server/2.0.0/dist/server/middleware/CorsHandler.jsonld).

0 comments on commit 73e2b42

Please sign in to comment.