Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion public/examples/build-workflow.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion public/examples/hello.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion public/examples/spdx-doc.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion scripts/shacl/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
8 changes: 4 additions & 4 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Comment on lines +25 to 29

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not so sure about these. Relative to what are source and jsonLdContextSource defined?

// 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);
}, []);
Expand Down