From bc97a88ce2bc86b32136e95ecf3a52cf21c68fba Mon Sep 17 00:00:00 2001 From: Benjamin Young Date: Mon, 5 May 2025 13:59:54 -0400 Subject: [PATCH 1/4] Add YAML as a data type in 11ty. --- .eleventy.js | 4 ++++ package.json | 3 +++ 2 files changed, 7 insertions(+) diff --git a/.eleventy.js b/.eleventy.js index f7c15d28..bec702f4 100644 --- a/.eleventy.js +++ b/.eleventy.js @@ -1,3 +1,5 @@ +import yaml from 'js-yaml'; + // development host for playground proxy const PLAYGROUND_PROXY_HOST = 'http://localhost:8788'; @@ -13,6 +15,8 @@ const drafts = [ ]; export default async function(eleventyConfig) { + eleventyConfig.addDataExtension('yaml', (contents) => yaml.load(contents)); + eleventyConfig.addPassthroughCopy('.htaccess'); eleventyConfig.addPassthroughCopy('LICENSE.md'); eleventyConfig.addPassthroughCopy('_headers'); diff --git a/package.json b/package.json index a1e31927..48f8ef66 100644 --- a/package.json +++ b/package.json @@ -13,5 +13,8 @@ "devDependencies": { "@11ty/eleventy": "^3.0.0", "wrangler": "^4.6.0" + }, + "dependencies": { + "js-yaml": "^4.1.0" } } From a264c1df7d54e170c9b332577c4f55504f0b607e Mon Sep 17 00:00:00 2001 From: Benjamin Young Date: Mon, 5 May 2025 14:01:39 -0400 Subject: [PATCH 2/4] Move implementation info to data. Still pretty hands-on in how it is displayed--and currently unchanged from before. However, this sets the stage for more filtering/finding/shuffling. --- _includes/implementation-item.liquid | 12 ++ index.html | 208 +++++++++------------------ index.yaml | 103 +++++++++++++ 3 files changed, 179 insertions(+), 144 deletions(-) create mode 100644 _includes/implementation-item.liquid create mode 100644 index.yaml diff --git a/_includes/implementation-item.liquid b/_includes/implementation-item.liquid new file mode 100644 index 00000000..cb3aa21f --- /dev/null +++ b/_includes/implementation-item.liquid @@ -0,0 +1,12 @@ +
  • + + {{ implementation.name }} + + {%- if implementation.jsonldVersion == 1.0 -%} + 1.0 + {%- else -%} + {{ implementation.jsonldVersion }}{% if implementation.state == 'WIP' %} (WIP){% endif %} + {%- endif -%} + + +
  • diff --git a/index.html b/index.html index 8a449803..7a3c2cc3 100644 --- a/index.html +++ b/index.html @@ -86,30 +86,12 @@

    D
    @@ -118,27 +100,12 @@

    D
    @@ -147,13 +114,12 @@

    D
    @@ -162,13 +128,12 @@

    D
    @@ -179,20 +144,12 @@

    D
    @@ -201,20 +158,12 @@

    D
    @@ -223,20 +172,10 @@

    D
    @@ -245,14 +184,12 @@

    D
    @@ -263,20 +200,12 @@

    D
    @@ -286,20 +215,12 @@

    D
    @@ -308,13 +229,12 @@

    D
    diff --git a/index.yaml b/index.yaml new file mode 100644 index 00000000..e6beef71 --- /dev/null +++ b/index.yaml @@ -0,0 +1,103 @@ +implementations: + # JavaScript + - repo: https://github.com/digitalbazaar/jsonld.js + name: json-ld.js + jsonldVersion: 1.1 + language: JavaScript + - repo: https://github.com/rubensworks/jsonld-streaming-parser.js + name: jsonld-streaming-parser.js + jsonldVersion: 1.1 + language: JavaScript + - repo: https://github.com/rubensworks/jsonld-streaming-serializer.js + name: jsonld-streaming-serializer.js + jsonldVersion: 1.1 + language: JavaScript + - repo: https://github.com/rubensworks/rdf-parse.js + name: rdf-parse.js + jsonldVersion: 1.1 + language: JavaScript + # Pyton + - repo: https://github.com/digitalbazaar/pyld + name: PyLD + jsonldVersion: 1.1 + language: Python + - repo: https://github.com/RDFLib/rdflib + name: RDFLib + jsonldVersion: 1.0 + language: Python + - repo: https://github.com/niklasl/trld + name: TRLD + jsonldVersion: 1.1 + language: Python + state: WIP + # Ruby + - repo: https://github.com/ruby-rdf/json-ld/ + name: JSON-LD for RDF.rb + jsonldVersion: 1.1 + language: Ruby + # Go + - repo: https://github.com/piprate/json-gold + name: JSON-goLD + jsonldVersion: 1.1 + language: Go + # Java + - repo: https://github.com/filip26/titanium-json-ld + name: Titanium + jsonldVersion: 1.1 + language: Java + - repo: https://github.com/jsonld-java/jsonld-java + name: JSONLD-JAVA + jsonldVersion: 1.0 + language: Java + # C# + - repo: https://github.com/dotnetrdf/dotnetrdf + name: dotNetRDF + jsonldVersion: 1.1 + language: C# + - repo: https://github.com/linked-data-dotnet/json-ld.net + name: json-ld.net + jsonldVersion: 1.0 + language: C# + # Command Line + - repo: https://github.com/digitalbazaar/jsonld-cli + name: jsonld-cli + jsonldVersion: 1.1 + language: JavaScript + applicationCategory: CLI + - repo: https://github.com/filip26/ld-cli + name: ld-cli (Ubuntu, MacOS, Windows) + jsonldVersion: 1.1 + language: Java + applicationCategory: CLI + # Erlang / Elixir + - repo: https://github.com/rdf-elixir/jsonld-ex + name: JSON-LD.ex + jsonldVersion: 1.1 + language: + - Erlang + - Elixir + # PHP + - repo: https://github.com/digitalbazaar/php-json-ld + name: php-json-ld + jsonldVersion: 1.0 + language: PHP + - repo: http://m.lanthi.com/json-ld + name: JsonLD + jsonldVersion: 1.0 + language: PHP + # Rust + - repo: https://github.com/timothee-haudebourg/json-ld + name: json-ld + jsonldVersion: 1.1 + state: WIP + language: Rust + - repo: https://crates.io/crates/sophia + name: sophia + jsonldVersion: 1.1 + language: Rust + # Typescript + - repo: https://github.com/mattrglobal/jsonld-lint + name: jsonld-lint + jsonldVersion: 1.1 + state: WIP + language: Typescript From 8b111f8857478e8355185f12570bf70b9e0106d4 Mon Sep 17 00:00:00 2001 From: Benjamin Young Date: Mon, 5 May 2025 14:11:37 -0400 Subject: [PATCH 3/4] Switch TRLD to fully 1.1 supportive. --- index.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/index.yaml b/index.yaml index e6beef71..21e31b07 100644 --- a/index.yaml +++ b/index.yaml @@ -29,7 +29,6 @@ implementations: name: TRLD jsonldVersion: 1.1 language: Python - state: WIP # Ruby - repo: https://github.com/ruby-rdf/json-ld/ name: JSON-LD for RDF.rb From fb0f732179e813e23af6afd63193d3910dcfa26f Mon Sep 17 00:00:00 2001 From: Benjamin Young Date: Mon, 5 May 2025 14:21:09 -0400 Subject: [PATCH 4/4] Add `@context` to implementation list YAML. Because YAML-LD is a Thing! --- _includes/implementation-item.liquid | 4 ++-- index.yaml | 12 ++++++++++-- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/_includes/implementation-item.liquid b/_includes/implementation-item.liquid index cb3aa21f..576aaf65 100644 --- a/_includes/implementation-item.liquid +++ b/_includes/implementation-item.liquid @@ -1,11 +1,11 @@
  • {{ implementation.name }} - + {%- if implementation.jsonldVersion == 1.0 -%} 1.0 {%- else -%} - {{ implementation.jsonldVersion }}{% if implementation.state == 'WIP' %} (WIP){% endif %} + {{ implementation.jsonldVersion }}{% if implementation.state == 'InProgress' %} (WIP){% endif %} {%- endif -%} diff --git a/index.yaml b/index.yaml index 21e31b07..78bf1044 100644 --- a/index.yaml +++ b/index.yaml @@ -1,3 +1,11 @@ +"@context": + implementations: "@graph" + applicationCategory: https://schema.org/applicationCategory + language: https://schema.org/programmingLanguage + jsonldVersion: https://json-ld.org/#jsonldVersion + name: https://schema.org/name + repo: https://schema.org/codeRepository + state: https://schema.org/creativeWorkStatus implementations: # JavaScript - repo: https://github.com/digitalbazaar/jsonld.js @@ -88,7 +96,7 @@ implementations: - repo: https://github.com/timothee-haudebourg/json-ld name: json-ld jsonldVersion: 1.1 - state: WIP + state: InProgress language: Rust - repo: https://crates.io/crates/sophia name: sophia @@ -98,5 +106,5 @@ implementations: - repo: https://github.com/mattrglobal/jsonld-lint name: jsonld-lint jsonldVersion: 1.1 - state: WIP + state: InProgress language: Typescript