Skip to content

Commit

Permalink
update nabu config template (#87)
Browse files Browse the repository at this point in the history
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
C-Loftus and pre-commit-ci[bot] authored Feb 4, 2025
1 parent 4ba4254 commit 5e07073
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 50 deletions.
6 changes: 3 additions & 3 deletions userCode/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,9 +195,9 @@ def gleaner_config(context: AssetExecutionContext):
sources = []
names: set[str] = set()

assert len(Lines) > 0, (
f"No sitemaps found in sitemap index {REMOTE_GLEANER_SITEMAP}"
)
assert (
len(Lines) > 0
), f"No sitemaps found in sitemap index {REMOTE_GLEANER_SITEMAP}"

for line in Lines:
basename = REMOTE_GLEANER_SITEMAP.removesuffix(".xml")
Expand Down
55 changes: 8 additions & 47 deletions userCode/templates/nabuconfig.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -7,58 +7,19 @@ minio:
ssl: {{ GLEANERIO_MINIO_USE_SSL }}
bucket: {{ GLEANERIO_MINIO_BUCKET }}
region: {{ GLEANERIO_MINIO_REGION }}
implementation_network:
orgname: iow
context:
cache: true
strict: true
contextmaps:
- prefix: https://schema.org/
file: /nabu/assets/schemaorg-current-https.jsonld
- prefix: http://schema.org/
file: /nabu/assets/schemaorg-current-http.jsonld
objects:
domain: us-east-1
prefix:
- summoned/providera
sparql:
endpoint: {{ GLEANERIO_GRAPH_URL }}
authenticate: false
username: ""
password: ""
repository: iow
prefixes:
summoned/providera
- prov/providera
- orgs
endpoints:
- service: {{ GLEANERIO_DATAGRAPH_ENDPOINT }}
baseurl: {{ GLEANERIO_GRAPH_URL }}/repositories/{{ GLEANERIO_DATAGRAPH_ENDPOINT }}
type: graphdb
authenticate: false
username: admin
password: jfpw
modes:
- action: sparql
suffix: # no suffix needed for GraphDB
accept: application/sparql-results+json
method: GET
- action: update
suffix: /statements
accept: application/sparql-update
method: POST
- action: bulk
suffix: /statements
accept: text/x-nquads
method: POST
- service: {{ GLEANERIO_PROVGRAPH_ENDPOINT }}
baseurl: {{ GLEANERIO_GRAPH_URL }}/repositories/{{ GLEANERIO_PROVGRAPH_ENDPOINT }}
type: graphdb
authenticate: false
username: admin
password: jfpw
modes:
- action: sparql
suffix: # no suffix needed for GraphDB
accept: application/sparql-results+json
method: GET
- action: update
suffix: /statements
accept: application/sparql-update
method: POST
- action: bulk
suffix: /statements
accept: text/x-nquads
method: POST

0 comments on commit 5e07073

Please sign in to comment.