Skip to content

Commit

Permalink
upgraed env
Browse files Browse the repository at this point in the history
  • Loading branch information
giacomociti committed Sep 25, 2023
1 parent be3e3be commit 4c56c13
Show file tree
Hide file tree
Showing 8 changed files with 48 additions and 26 deletions.
53 changes: 38 additions & 15 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 4 additions & 5 deletions packages/cli/lib/pipeline.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ const discoverOperations = async () => {
export const desugar = async (dataset, { logger, knownOperations } = {}) => {
knownOperations = knownOperations ?? await discoverOperations()
const ptr = rdf.clownface({ dataset })
let n = 0
ptr.has(ns.p.stepList).out(ns.p.stepList).forEach(listPointer => {
for (const step of listPointer.list()) {
if (isGraphPointer(step.has(ns.rdf.type, ns.p.Step)) ||
Expand All @@ -49,10 +48,10 @@ export const desugar = async (dataset, { logger, knownOperations } = {}) => {
step.addOut(ns.code.arguments, args)
}
step.addOut(ns.rdf.type, ns.p.Step)
const moduleNode = ptr.blankNode(`impl_${n++}`)
moduleNode.addOut(ns.rdf.type, type)
moduleNode.addOut(ns.code.link, link)
step.addOut(ns.code.implementedBy, moduleNode)
step.addOut(ns.code.implementedBy, moduleNode => {
moduleNode.addOut(ns.rdf.type, type)
moduleNode.addOut(ns.code.link, link)
})
}
})

Expand Down
2 changes: 1 addition & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"@opentelemetry/semantic-conventions": "^0.24.0",
"@opentelemetry/tracing": "^0.24.0",
"@rdfjs/namespace": "^2.0.0",
"@zazuko/env": "^1.0.1",
"@zazuko/env": "^1.3.2",
"barnard59-core": "3.0.2",
"clownface": "^2.0.0",
"commander": "^11.0.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"dependencies": {
"@opentelemetry/api": "^1.0.1",
"@rdfjs/namespace": "^2.0.0",
"@zazuko/env": "^1.0.1",
"@zazuko/env": "^1.3.2",
"clownface": "^2.0.0",
"duplex-to": "^1.0.1",
"duplexify": "^4.1.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/csvw/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"homepage": "https://github.com/zazuko/barnard59",
"dependencies": {
"@rdfjs/fetch": "^3.1.1",
"@zazuko/env": "^1.0.1",
"@zazuko/env": "^1.3.2",
"duplex-to": "^1.0.1",
"file-fetch": "^1.7.0",
"node-fetch": "^3.0.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/sparql/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
},
"devDependencies": {
"@tpluscode/rdf-string": "^1.0.3",
"@zazuko/env": "^1.0.1",
"@zazuko/env": "^1.3.2",
"get-stream": "^6.0.0",
"isstream": "^0.1.2",
"mocha": "^9.0.2",
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
},
"dependencies": {
"@rdfjs/formats-common": "^2.2.0",
"@zazuko/env": "^1.0.1",
"@zazuko/env": "^1.3.2",
"barnard59-base": "^1.2.1",
"barnard59-core": "^3.0.0",
"barnard59-formats": "^1.4.0",
Expand Down
2 changes: 1 addition & 1 deletion test/support/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"type": "module",
"dependencies": {
"@rdfjs/namespace": "^2.0.0",
"@zazuko/env": "^1.0.1",
"@zazuko/env": "^1.3.2",
"rdf-dataset-ext": "^1.0.1",
"rdf-utils-fs": "^2.3.0"
}
Expand Down

0 comments on commit 4c56c13

Please sign in to comment.