aboutsummaryrefslogtreecommitdiffstats
path: root/bsie
diff options
context:
space:
mode:
authorMatthias Baumgartner <dev@igsor.net>2023-01-16 21:36:50 +0100
committerMatthias Baumgartner <dev@igsor.net>2023-01-16 21:36:50 +0100
commit58aaa864f9747d27c065739256d4c6635ca9b751 (patch)
tree9888ae0bd2345816d1ab479dd34b4c6b902c158a /bsie
parent4f868bcb3be2658960eace3222563cc9a819366a (diff)
downloadbsie-58aaa864f9747d27c065739256d4c6635ca9b751.tar.gz
bsie-58aaa864f9747d27c065739256d4c6635ca9b751.tar.bz2
bsie-58aaa864f9747d27c065739256d4c6635ca9b751.zip
minor fixes
Diffstat (limited to 'bsie')
-rw-r--r--bsie/extractor/image/colors_spatial.py3
-rw-r--r--bsie/lib/pipeline.py3
2 files changed, 3 insertions, 3 deletions
diff --git a/bsie/extractor/image/colors_spatial.py b/bsie/extractor/image/colors_spatial.py
index 38f1db4..ce5b9f2 100644
--- a/bsie/extractor/image/colors_spatial.py
+++ b/bsie/extractor/image/colors_spatial.py
@@ -71,7 +71,8 @@ class ColorsSpatial(base.Extractor):
<{FEATURE_NAME}> rdfs:subClassOf bsfs:Feature ;
# annotations
rdfs:label "Spatially dominant colors"^^xsd:string ;
- schema:description "Domiant colors of subregions in an image."^^xsd:string .
+ schema:description "Domiant colors of subregions in an image."^^xsd:string ;
+ bsfs:dtype xsd:integer .
<{instance_name}> rdfs:subClassOf <{FEATURE_NAME}> ;
bsfs:dimension "{dimension}"^^xsd:integer ;
diff --git a/bsie/lib/pipeline.py b/bsie/lib/pipeline.py
index 02119bc..44685ba 100644
--- a/bsie/lib/pipeline.py
+++ b/bsie/lib/pipeline.py
@@ -125,7 +125,6 @@ class Pipeline():
try:
# get content
content = rdr(path) if rdr is not None else None
-
#logger.info('extracted %s from %s', rdr, path)
# apply extractors on this content
@@ -139,7 +138,7 @@ class Pipeline():
# critical extractor failure.
logger.error('%s failed to extract triples from content: %s', ext, err)
- except errors.UnsupportedFileFormatError as err:
+ except errors.UnsupportedFileFormatError:
# failed to read the file format. skip.
#logger.warning('%s could not process the file format of %s', rdr, err)
pass