Skip to content

Commit

Permalink
refactor: HTTPS operation identifiers (#186)
Browse files Browse the repository at this point in the history
* refactor: HTTPS operation identifiers

* Update smooth-crews-travel.md

* Update smooth-crews-travel.md
  • Loading branch information
tpluscode authored Oct 26, 2023
1 parent d99ef79 commit 72648c5
Show file tree
Hide file tree
Showing 27 changed files with 55 additions and 39 deletions.
16 changes: 16 additions & 0 deletions .changeset/smooth-crews-travel.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
"barnard59-graph-store": major
"barnard59-formats": major
"barnard59-sparql": major
"barnard59-base": major
"barnard59-core": major
"barnard59-csvw": major
"barnard59-http": major
"barnard59-ftp": major
"barnard59-rdf": major
"barnard59-s3": minor
"barnard59-test-e2e": patch
---

Change the operation URLs to be HTTPS (re zazuko/barnard59-website#4).
This will only be a breaking change to those using the [shorthand step syntax](https://data-centric.zazuko.com/docs/workflows/explanations/simplified-syntax).
2 changes: 1 addition & 1 deletion packages/base/manifest.ttl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@base <http://barnard59.zazuko.com/operations/base/> .
@base <https://barnard59.zazuko.com/operations/base/> .
@prefix code: <https://code.described.at/> .
@prefix p: <https://pipeline.described.at/> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
Expand Down
18 changes: 9 additions & 9 deletions packages/cli/examples/parse-csvw.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
@prefix code: <https://code.described.at/> .
@prefix p: <https://pipeline.described.at/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix fs: <http://barnard59.zazuko.com/operations/core/fs/> .
@prefix csvw: <http://barnard59.zazuko.com/operations/formats/csvw/> .
@prefix ntriples: <http://barnard59.zazuko.com/operations/formats/ntriples/> .
@prefix jsonld: <http://barnard59.zazuko.com/operations/formats/jsonld/> .
@prefix fs: <https://barnard59.zazuko.com/operations/core/fs/> .
@prefix csvw: <https://barnard59.zazuko.com/operations/formats/csvw/> .
@prefix ntriples: <https://barnard59.zazuko.com/operations/formats/ntriples/> .
@prefix jsonld: <https://barnard59.zazuko.com/operations/formats/jsonld/> .

<parseCsvw> a p:Pipeline, p:Readable;
p:variables [
Expand All @@ -20,17 +20,17 @@
]
];
p:steps [
p:stepList (
[ fs:createReadStream ("filename"^^p:VariableName) ]
p:stepList (
[ fs:createReadStream ("filename"^^p:VariableName) ]
[ csvw:parse (<parseMetadata>) ]
[ ntriples:serialize () ]
)
].

<parseMetadata> a p:Pipeline, p:ReadableObjectMode;
p:steps [
p:stepList (
[ fs:createReadStream ("metadata"^^p:VariableName) ]
[ jsonld:parse () ]
p:stepList (
[ fs:createReadStream ("metadata"^^p:VariableName) ]
[ jsonld:parse () ]
)
].
2 changes: 1 addition & 1 deletion packages/cli/test/simplify.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const loadPipelineDefinition = pipelineDefinitionLoader(import.meta.url)

// test double for a fake context
const knownOperations = rdf.termMap([
[rdf.namedNode('http://barnard59.zazuko.com/operations/concat'), {
[rdf.namedNode('https://barnard59.zazuko.com/operations/concat'), {
type: rdf.namedNode('https://code.described.at/EcmaScriptModule'),
link: rdf.namedNode('node:barnard59-base#concat'),
}],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
@prefix code: <https://code.described.at/>.
@prefix p: <https://pipeline.described.at/>.
@prefix op: <http://barnard59.zazuko.com/operations/>.
@prefix op: <https://barnard59.zazuko.com/operations/>.
@base <http://example.org/pipeline/>.

<> a p:Pipeline ;
p:steps [
p:stepList (
[ op:concat
[code:name "fst"; code:value <readA>] ,
[ op:concat
[code:name "fst"; code:value <readA>] ,
[code:name "snd"; code:value <readB>] ]
)
] .
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@prefix code: <https://code.described.at/>.
@prefix p: <https://pipeline.described.at/>.
@prefix op: <http://barnard59.zazuko.com/operations/>.
@prefix op: <https://barnard59.zazuko.com/operations/>.
@base <http://example.org/pipeline/>.

<> a p:Pipeline ;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@prefix code: <https://code.described.at/>.
@prefix p: <https://pipeline.described.at/>.
@prefix op: <http://barnard59.zazuko.com/operations/>.
@prefix op: <https://barnard59.zazuko.com/operations/>.
@base <http://example.org/pipeline/>.

<> a p:Pipeline ;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@prefix code: <https://code.described.at/>.
@prefix p: <https://pipeline.described.at/>.
@prefix op: <http://barnard59.zazuko.com/operations/>.
@prefix op: <https://barnard59.zazuko.com/operations/>.
@base <http://example.org/pipeline/>.

<> a p:Pipeline ;
Expand Down
2 changes: 1 addition & 1 deletion packages/core/manifest.ttl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@base <http://barnard59.zazuko.com/operations/core/> .
@base <https://barnard59.zazuko.com/operations/core/> .
@prefix code: <https://code.described.at/> .
@prefix p: <https://pipeline.described.at/> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
Expand Down
2 changes: 1 addition & 1 deletion packages/csvw/manifest.ttl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@base <http://barnard59.zazuko.com/operations/csvw/> .
@base <https://barnard59.zazuko.com/operations/csvw/> .
@prefix code: <https://code.described.at/> .
@prefix p: <https://pipeline.described.at/> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
Expand Down
2 changes: 1 addition & 1 deletion packages/formats/manifest.ttl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@base <http://barnard59.zazuko.com/operations/formats/> .
@base <https://barnard59.zazuko.com/operations/formats/> .
@prefix code: <https://code.described.at/> .
@prefix p: <https://pipeline.described.at/> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
Expand Down
2 changes: 1 addition & 1 deletion packages/ftp/manifest.ttl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@base <http://barnard59.zazuko.com/operations/ftp/> .
@base <https://barnard59.zazuko.com/operations/ftp/> .
@prefix code: <https://code.described.at/> .
@prefix p: <https://pipeline.described.at/> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
Expand Down
2 changes: 1 addition & 1 deletion packages/graph-store/pipeline/put.ttl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
@base <http://barnard59.zazuko.com/pipeline/graph-store/> .
@base <https://barnard59.zazuko.com/pipeline/graph-store/> .
@prefix code: <https://code.described.at/> .
@prefix p: <https://pipeline.described.at/> .

Expand Down
2 changes: 1 addition & 1 deletion packages/http/manifest.ttl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@base <http://barnard59.zazuko.com/operations/http/> .
@base <https://barnard59.zazuko.com/operations/http/> .
@prefix code: <https://code.described.at/> .
@prefix p: <https://pipeline.described.at/> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
Expand Down
2 changes: 1 addition & 1 deletion packages/rdf/manifest.ttl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@base <http://barnard59.zazuko.com/operations/rdf/> .
@base <https://barnard59.zazuko.com/operations/rdf/> .
@prefix code: <https://code.described.at/> .
@prefix p: <https://pipeline.described.at/> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
Expand Down
2 changes: 1 addition & 1 deletion packages/s3/manifest.ttl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@base <http://barnard59.zazuko.com/operations/s3/> .
@base <https://barnard59.zazuko.com/operations/s3/> .
@prefix code: <https://code.described.at/> .
@prefix p: <https://pipeline.described.at/> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
Expand Down
2 changes: 1 addition & 1 deletion packages/sparql/manifest.ttl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@base <http://barnard59.zazuko.com/operations/sparql/> .
@base <https://barnard59.zazuko.com/operations/sparql/> .
@prefix code: <https://code.described.at/> .
@prefix p: <https://pipeline.described.at/> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
Expand Down
2 changes: 1 addition & 1 deletion packages/validation/test/fixtures/manifest-bad.ttl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@base <http://barnard59.zazuko.com/operations/ftp/> .
@base <https://barnard59.zazuko.com/operations/ftp/> .
@prefix code: <https://code.described.at/> .
@prefix p: <https://pipeline.described.at/> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
Expand Down
2 changes: 1 addition & 1 deletion packages/validation/test/fixtures/manifest-good.ttl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@base <http://barnard59.zazuko.com/operations/ftp/> .
@base <https://barnard59.zazuko.com/operations/ftp/> .
@prefix code: <https://code.described.at/> .
@prefix p: <https://pipeline.described.at/> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
Expand Down
4 changes: 2 additions & 2 deletions packages/validation/test/fixtures/manifest.ttl
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
@base <http://barnard59.zazuko.com/operations/base/> .
@base <https://barnard59.zazuko.com/operations/base/> .
@prefix code: <https://code.described.at/> .
@prefix p: <https://pipeline.described.at/> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .

<drink> a p:Operation, p:Writable, p:Readable;
code:implementedBy [ a code:EcmaScript;
code:link <node:party-module#drink>
].
].
2 changes: 1 addition & 1 deletion test/e2e/definitions/file-loader.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
@prefix code: <https://code.described.at/> .
@prefix p: <https://pipeline.described.at/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix op: <http://barnard59.zazuko.com/operations/> .
@prefix op: <https://barnard59.zazuko.com/operations/> .

<> a p:Pipeline, p:Readable ;
p:steps
Expand Down
4 changes: 2 additions & 2 deletions test/e2e/definitions/foreach/csv-duplicate.ttl
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
@base <http://example.org/pipeline/>.
@prefix code: <https://code.described.at/>.
@prefix p: <https://pipeline.described.at/>.
@prefix fs: <http://barnard59.zazuko.com/operations/core/fs/> .
@prefix base: <http://barnard59.zazuko.com/operations/base/> .
@prefix fs: <https://barnard59.zazuko.com/operations/core/fs/> .
@prefix base: <https://barnard59.zazuko.com/operations/base/> .

<> a p:Pipeline, p:Readable;
p:variables [
Expand Down
4 changes: 2 additions & 2 deletions test/e2e/definitions/foreach/with-handler.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
@prefix code: <https://code.described.at/>.
@prefix p: <https://pipeline.described.at/>.
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>.
@prefix base: <http://barnard59.zazuko.com/operations/base/> .
@prefix fs: <http://barnard59.zazuko.com/operations/core/fs/> .
@prefix base: <https://barnard59.zazuko.com/operations/base/> .
@prefix fs: <https://barnard59.zazuko.com/operations/core/fs/> .

<> a p:Pipeline, p:Readable;
p:steps [
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/definitions/foreach/with-variable.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
@prefix code: <https://code.described.at/>.
@prefix p: <https://pipeline.described.at/>.
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>.
@prefix base: <http://barnard59.zazuko.com/operations/base/> .
@prefix base: <https://barnard59.zazuko.com/operations/base/> .

<> a p:Pipeline, p:ReadableObjectMode;
p:variables [
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/definitions/world-clock/async.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
@prefix ex: <http://example.org/>.
@prefix p: <https://pipeline.described.at/>.
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>.
@prefix op: <http://barnard59.zazuko.com/operations/> .
@prefix op: <https://barnard59.zazuko.com/operations/> .

<variables> p:variable [ a p:Variable;
p:name "url" ;
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/definitions/world-clock/file.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
@prefix code: <https://code.described.at/>.
@prefix p: <https://pipeline.described.at/>.
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>.
@prefix op: <http://barnard59.zazuko.com/operations/> .
@prefix op: <https://barnard59.zazuko.com/operations/> .

<variables> p:variable [ a p:Variable;
p:name "url" ;
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/definitions/world-clock/node.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
@prefix code: <https://code.described.at/>.
@prefix p: <https://pipeline.described.at/>.
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>.
@prefix op: <http://barnard59.zazuko.com/operations/> .
@prefix op: <https://barnard59.zazuko.com/operations/> .

<variables> p:variable [ a p:Variable;
p:name "url" ;
Expand Down

0 comments on commit 72648c5

Please sign in to comment.