Skip to content

Commit

Permalink
avoid strings in SPARQL construction
Browse files Browse the repository at this point in the history
Co-authored-by: Tomasz Pluskiewicz <[email protected]>
  • Loading branch information
giacomociti and tpluscode authored May 15, 2024
1 parent 2302932 commit 61a81f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cli/lib/metadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@ function cubeMetadata({ project, revision, timestamp }: QueryParams) {
graph ${project.dataset.id} {
${project.dataset.id} ?cubeProp ?cubeMeta .
FILTER (?cubeProp != schema:datePublished)
OPTIONAL { ${project.dataset.id} schema:datePublished ?d }
FILTER (?cubeProp != ${schema.datePublished})
OPTIONAL { ${project.dataset.id} ${schema.datePublished} ?d }
BIND(COALESCE(?d, ${defaultDatePublished}) AS ?datePublished)
MINUS {
Expand Down

0 comments on commit 61a81f2

Please sign in to comment.