Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
giacomociti committed Sep 19, 2024
1 parent 5c9b57e commit e43ca41
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions cli/lib/commands/publish.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,6 @@ export default runner.create<PublishRunOptions>({
variable.set('publish-graph-store-user', publishStore?.user || process.env.PUBLISH_GRAPH_STORE_USER)
variable.set('publish-graph-store-password', publishStore?.password || process.env.PUBLISH_GRAPH_STORE_PASSWORD)
variable.set('metadata', $rdf.dataset())
// this should be possible as relative path in pipeline ttl but does not work
// variable.set('shapesPath', path.resolve(__dirname, '../../shapes.ttl'))
variable.set('shapesPath', path.resolve(__dirname, `../../${profile}.ttl`))

if (cubeCreatorVersion) {
Expand Down Expand Up @@ -108,12 +106,11 @@ async function getJob(jobUri: string, Hydra: HydraClient): Promise<{
const getProfile = () => {
const publishedTo = jobResource.representation?.root?.publishedTo ?? []
const found = publishedTo
.map((target) => target.value)
.map(target => target.value)
.filter(isKnownTarget)
.map(getProfileURL)
if (found.length === 1) return found[0]
if (found.length === 2) {
// todo a combination of both
return 'shapes-all'
}

Expand Down

0 comments on commit e43ca41

Please sign in to comment.