diff --git a/ogc/bblocks/entrypoint.py b/ogc/bblocks/entrypoint.py index d93f4ba..71a0a37 100644 --- a/ogc/bblocks/entrypoint.py +++ b/ogc/bblocks/entrypoint.py @@ -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( @@ -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') @@ -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'): diff --git a/postprocess/action.yml b/postprocess/action.yml index d4fd27a..11732fe 100644 --- a/postprocess/action.yml +++ b/postprocess/action.yml @@ -79,3 +79,4 @@ runs: - ${{ inputs.deploy_viewer }} - '--viewer-path' - ${{ inputs.viewer_path }} + - '--enable-sparql'