Skip to content

Commit

Permalink
added test for KB NBT data
Browse files Browse the repository at this point in the history
  • Loading branch information
EnnoMeijers committed Dec 4, 2023
1 parent 56916ec commit 2ad6368
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 0 deletions.
18 changes: 18 additions & 0 deletions static/kb-nbt/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Metadata for your pipeline:
name: KB NBT Pipeline
description: >
This is an example pipeline. It uses files that are available in this repository
and SPARQL endpoints that should work.
# This is optional, by default it will be stored in the data directory of the pipeline using filename 'statements.nt'
destination: file://pipelines/data/kb-nbt-pipeline.nt

# The individual stages for your pipeline
stages:
- name: "Stage 1"
iterator:
query: file://static/kb-nbt/iterator-stage-1.rq
endpoint: http://data.bibliotheken.nl/sparql
generator:
query: file://static/kb-nbt/generator-stage-1.rq
13 changes: 13 additions & 0 deletions static/kb-nbt/generator-stage-1.rq
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>
prefix edm: <http://www.europeana.eu/schemas/edm/>
prefix dc: <http://purl.org/dc/elements/1.1/>

construct {
?this a edm:ProvidedCHO ;
edm:type "TEXT" ;
dc:title ?name .
}
where {
$this rdfs:label ?name .
}
8 changes: 8 additions & 0 deletions static/kb-nbt/iterator-stage-1.rq
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>
prefix schema: <http://schema.org/>

select * where {
$this a schema:Book ;
schema:mainEntityOfPage/schema:isPartOf <http://data.bibliotheken.nl/id/dataset/nbt> .
} limit 1000

0 comments on commit 2ad6368

Please sign in to comment.