Skip to content

Commit 0238c98

Browse files
feat(tests): add example RDF maturity terms and configuration for provisional filtering
- Introduced a new RDF file `example_fibo_maturity.ttl` containing various maturity levels for terms, including released, provisional, and no maturity. - Created a corresponding YAML configuration file `test_example_recipe.yml` to test the filtering of provisional terms based on the `include_provisional` setting.
1 parent cfbf6eb commit 0238c98

File tree

2 files changed

+38
-0
lines changed

2 files changed

+38
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
@prefix owl: <http://www.w3.org/2002/07/owl#> .
2+
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
3+
@prefix fibo-fnd-utl-av: <https://www.omg.org/spec/Commons/AnnotationVocabulary/> .
4+
5+
# Released term - should always be included
6+
<http://example.org/ReleasedTerm> a owl:Class ;
7+
rdfs:label "Released Term" ;
8+
rdfs:comment "This term has been fully approved and released" ;
9+
fibo-fnd-utl-av:hasMaturityLevel fibo-fnd-utl-av:Release .
10+
11+
# Provisional term - should be excluded when include_provisional=False
12+
<http://example.org/ProvisionalTerm> a owl:Class ;
13+
rdfs:label "Provisional Term" ;
14+
rdfs:comment "This term is still in the pipeline and not yet fully approved" ;
15+
fibo-fnd-utl-av:hasMaturityLevel fibo-fnd-utl-av:Provisional .
16+
17+
# Term without maturity level - should always be included
18+
<http://example.org/NoMaturityTerm> a owl:Class ;
19+
rdfs:label "No Maturity Term" ;
20+
rdfs:comment "This term has no maturity level specified" .
21+
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Example recipe to test provisional filtering
2+
# Run with: datahub ingest -c test_example_recipe.yml
3+
4+
source:
5+
type: rdf
6+
config:
7+
source: tests/integration/rdf/example_fibo_maturity.ttl
8+
format: turtle
9+
dialect: fibo
10+
include_provisional: false # Change to true to include provisional terms
11+
environment: PROD
12+
13+
sink:
14+
type: file
15+
config:
16+
filename: /tmp/rdf_test_output.json
17+

0 commit comments

Comments
 (0)