Skip to content

Commit

Permalink
Since read_configfile() not in plugin core so import again by etl cor…
Browse files Browse the repository at this point in the history
…e until consolidated by #155
  • Loading branch information
Mandalka committed Dec 28, 2021
1 parent 5c5a3ce commit f5bba31
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/opensemanticetl/enhance_rdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
import logging
import rdflib

import etl_plugin_core

# define used ontologies / standards / properties
skos = rdflib.Namespace('http://www.w3.org/2004/02/skos/core#')
owl = rdflib.Namespace('http://www.w3.org/2002/07/owl#')
Expand All @@ -13,7 +15,7 @@
# Import RDF graph file granular, not only as a whole single file:
# for every entity (subject) own document with properties (predicates) as facets and its objects as values

class enhance_rdf(object):
class enhance_rdf(etl_plugin_core.Plugin):

def __init__(self, verbose=False):

Expand All @@ -22,8 +24,6 @@ def __init__(self, verbose=False):
self.labelProperties = (rdflib.term.URIRef(u'http://www.w3.org/2004/02/skos/core#prefLabel'), rdflib.term.URIRef(u'http://www.w3.org/2000/01/rdf-schema#label'),
rdflib.term.URIRef(u'http://www.w3.org/2004/02/skos/core#altLabel'), rdflib.term.URIRef(u'http://www.w3.org/2004/02/skos/core#hiddenLabel'))

self.read_configfile('/etc/opensemanticsearch/facets')


#
# get all labels, alternate labels / synonyms for the URI/subject, if not there, use subject (=URI) as default
Expand Down
1 change: 1 addition & 0 deletions src/opensemanticetl/etl_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ def read_configfiles(self):
self.read_configfile('/etc/opensemanticsearch/etl-webadmin')
self.read_configfile('/etc/opensemanticsearch/etl-custom')
self.read_configfile('/etc/opensemanticsearch/enhancer-rdf')
self.read_configfile('/etc/opensemanticsearch/facets')
self.read_configfile('/etc/opensemanticsearch/connector-files')
self.read_configfile('/etc/opensemanticsearch/connector-files-custom')

Expand Down
1 change: 1 addition & 0 deletions src/opensemanticetl/etl_web.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ def read_configfiles(self):
self.read_configfile('/etc/opensemanticsearch/etl-webadmin')
self.read_configfile('/etc/opensemanticsearch/etl-custom')
self.read_configfile('/etc/opensemanticsearch/enhancer-rdf')
self.read_configfile('/etc/opensemanticsearch/facets')
self.read_configfile('/etc/opensemanticsearch/connector-web')
self.read_configfile('/etc/opensemanticsearch/connector-web-custom')

Expand Down

0 comments on commit f5bba31

Please sign in to comment.