Skip to content

Commit

Permalink
Disable SPARQL push by default
Browse files Browse the repository at this point in the history
  • Loading branch information
avillar committed Jan 31, 2024
1 parent de07130 commit 58a73bb
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
10 changes: 8 additions & 2 deletions ogc/bblocks/entrypoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
parser.add_argument(
'--steps',
help='Comma-separated list of postprocessing steps that will run (annotate,jsonld,superbb,'
'tests,transforms,doc,register,sparql). Forces --clean to false'
'tests,transforms,doc,register). Forces --clean to false'
)

parser.add_argument(
Expand All @@ -110,6 +110,12 @@
default='.'
)

parser.add_argument(
'--enable-sparql',
help='Enable SPARQL push, if configured',
action='store_true',
)

args = parser.parse_args()

fail_on_error = args.fail_on_error in ('true', 'on', 'yes', '1')
Expand Down Expand Up @@ -275,7 +281,7 @@
])

# 4. Push to triplestore
if not steps or 'sparql' in steps:
if args.enable_sparql:
sparql_gsp = sparql_conf.get('push')
if sparql_gsp:
if os.environ.get('SPARQL_USERNAME'):
Expand Down
1 change: 1 addition & 0 deletions postprocess/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,3 +79,4 @@ runs:
- ${{ inputs.deploy_viewer }}
- '--viewer-path'
- ${{ inputs.viewer_path }}
- '--enable-sparql'

0 comments on commit 58a73bb

Please sign in to comment.