From 94037f5eb49e1c581f9cdd5be24e0e29f322ee76 Mon Sep 17 00:00:00 2001 From: Sebastian Schuberth Date: Thu, 2 Apr 2026 18:02:20 +0200 Subject: [PATCH] Fix URLs to the specification See: https://spdx.github.io/spdx-spec/v3.0.1/serializations/#json-ld-context-file --- public/examples/build-workflow.json | 2 +- public/examples/hello.json | 2 +- public/examples/spdx-doc.json | 2 +- scripts/shacl/test.py | 2 +- src/App.tsx | 8 ++++---- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/public/examples/build-workflow.json b/public/examples/build-workflow.json index 67c2b85..ab66df8 100644 --- a/public/examples/build-workflow.json +++ b/public/examples/build-workflow.json @@ -1,5 +1,5 @@ { - "@context": "https://spdx.github.io/spdx-spec/v3.0.1/rdf/spdx-context.jsonld", + "@context": "https://spdx.org/rdf/3.0.1/spdx-context.jsonld", "@graph": [ { "spdxId": "urn:nanoid:iGssXfcLExlNVoLh-OYz6", diff --git a/public/examples/hello.json b/public/examples/hello.json index 9f97075..70585e5 100644 --- a/public/examples/hello.json +++ b/public/examples/hello.json @@ -1,5 +1,5 @@ { - "@context": "https://spdx.github.io/spdx-spec/v3.0.1/rdf/spdx-context.jsonld", + "@context": "https://spdx.org/rdf/3.0.1/spdx-context.jsonld", "@graph": [ { "spdxId": "https://swinslow.net/spdx-examples/example1/hello-v3-specv3/document0", diff --git a/public/examples/spdx-doc.json b/public/examples/spdx-doc.json index e1a6b30..25a7db2 100644 --- a/public/examples/spdx-doc.json +++ b/public/examples/spdx-doc.json @@ -1,5 +1,5 @@ { - "@context": "https://spdx.github.io/spdx-spec/v3.0.1/rdf/spdx-context.jsonld", + "@context": "https://spdx.org/rdf/3.0.1/spdx-context.jsonld", "@graph": [ { "spdxId": "urn:nanoid:5uUlahHiRSRG2c9pTFvqJ", diff --git a/scripts/shacl/test.py b/scripts/shacl/test.py index b843d98..430ad4c 100644 --- a/scripts/shacl/test.py +++ b/scripts/shacl/test.py @@ -69,7 +69,7 @@ def validate_shacl(model_graph, shapes_graph, data_graph, inference): "--model", "-m", help="URL to SPDX model", - default="https://spdx.github.io/spdx-spec/v3.0.1/rdf/spdx-model.ttl", + default="https://spdx.org/rdf/3.0.1/spdx-model.ttl", ) @click.option( "--shapes", diff --git a/src/App.tsx b/src/App.tsx index 68bc849..733e918 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -22,14 +22,14 @@ export default function App() { const [exampleLoaded, setExampleLoaded] = useState(false); const updateOntologyCallback = useCallback(async () => { - // const source = 'https://spdx.github.io/spdx-spec/v3.0.1/rdf/spdx-model.ttl'; + // const source = 'https://spdx.org/rdf/3.0.1/spdx-model.ttl'; const source = 'spdx/3.0.1/spdx-model.ttl'; // const jsonLdContextSource = - // 'https://spdx.github.io/spdx-spec/v3.0.1/rdf/spdx-context.jsonld'; + // 'https://spdx.org/rdf/3.0.1/spdx-context.jsonld'; const jsonLdContextSource = 'spdx/3.0.1/spdx-context.jsonld'; - // const jsonLdContextUrl = 'https://spdx.github.io/spdx-spec/v3.0.1/rdf/spdx-context.jsonld'; + // const jsonLdContextUrl = 'https://spdx.org/rdf/3.0.1/spdx-context.jsonld'; const jsonLdContextUrl = - 'https://spdx.github.io/spdx-spec/v3.0.1/rdf/spdx-context.jsonld'; + 'https://spdx.org/rdf/3.0.1/spdx-context.jsonld'; const model = 'spdx/3.0.1/model.json'; await updateOntology(source, jsonLdContextSource, jsonLdContextUrl, model); }, []);