aboutsummaryrefslogtreecommitdiffstats
path: root/test/apps/test_loader.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/apps/test_loader.py')
-rw-r--r--test/apps/test_loader.py22
1 files changed, 11 insertions, 11 deletions
diff --git a/test/apps/test_loader.py b/test/apps/test_loader.py
index 20254ec..4670266 100644
--- a/test/apps/test_loader.py
+++ b/test/apps/test_loader.py
@@ -27,7 +27,7 @@ class TestLoader(unittest.TestCase):
# pipeline contains only default predicates
pipeline = load_pipeline(path)
self.assertSetEqual({pred.uri for pred in pipeline.schema.predicates()}, {
- 'http://bsfs.ai/schema/Predicate',
+ 'https://schema.bsfs.io/core/Predicate',
})
# pipeline is built according to configured extractors
@@ -41,11 +41,11 @@ class TestLoader(unittest.TestCase):
{'bsie.extractor.generic.constant.Constant': {
'schema': '''
bse:author rdfs:subClassOf bsfs:Predicate ;
- rdfs:domain bsfs:Entity ;
+ rdfs:domain bsn:Entity ;
rdfs:range xsd:string ;
bsfs:unique "true"^^xsd:boolean .
''',
- 'tuples': [['http://bsfs.ai/schema/Entity#author', 'Me, myself, and I']],
+ 'tuples': [['https://schema.bsfs.io/ie/Node/Entity#author', 'Me, myself, and I']],
}},
{'bsie.extractor.image.colors_spatial.ColorsSpatial': {
'width': 2,
@@ -61,14 +61,14 @@ class TestLoader(unittest.TestCase):
# pipeline contains all defined predicates
pipeline = load_pipeline(path)
self.assertSetEqual({pred.uri for pred in pipeline.schema.predicates()}, {
- 'http://bsfs.ai/schema/Entity#author',
- 'http://bsfs.ai/schema/Predicate',
- 'http://bsfs.ai/schema/Entity#filename',
- 'http://bsfs.ai/schema/Entity/colors_spatial#0658f2234a054e1dd59a14462c89f7733e019160419c796356aa831498bd0a04',
- 'http://bsfs.ai/schema/Entity#preview',
- 'http://bsfs.ai/schema/Preview#width',
- 'http://bsfs.ai/schema/Preview#height',
- 'http://bsfs.ai/schema/Preview#asset',
+ 'https://schema.bsfs.io/ie/Node/Entity#author',
+ 'https://schema.bsfs.io/core/Predicate',
+ 'https://schema.bsfs.io/ie/Node/Entity#filename',
+ 'https://schema.bsfs.io/ie/Node/Entity#colors_spatial_0658f2234a054e1dd59a14462c89f7733e019160419c796356aa831498bd0a04',
+ 'https://schema.bsfs.io/ie/Node/Entity#preview',
+ 'https://schema.bsfs.io/ie/Node/Preview#width',
+ 'https://schema.bsfs.io/ie/Node/Preview#height',
+ 'https://schema.bsfs.io/ie/Node/Preview#asset',
})
# config file must exist