Skip to content

Commit

Permalink
deactivate code that can be used to store the oeox as kg as it is not…
Browse files Browse the repository at this point in the history
… yet stored in kg but in file storage
  • Loading branch information
jh-RLI committed Sep 20, 2024
1 parent a057c44 commit 97b4f79
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 19 deletions.
18 changes: 9 additions & 9 deletions oeo_ext/oeo_extended_store/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,16 +69,16 @@
# index of LEOP is more performant of done form triple store
# reading from owl file can get time consuming

rdfdb = RDF_DATABASES["knowledge"]
oeo_ext_query_endpoint = "http://%(host)s:%(port)s/%(name)s/query" % rdfdb
oeo_ext_update_endpoint = "http://%(host)s:%(port)s/%(name)s/update" % rdfdb
# rdfdb = RDF_DATABASES["knowledge"]
# oeo_ext_query_endpoint = "http://%(host)s:%(port)s/%(name)s/query" % rdfdb
# oeo_ext_update_endpoint = "http://%(host)s:%(port)s/%(name)s/update" % rdfdb

sparql = SPARQLWrapper(oeo_ext_query_endpoint)
# sparql = SPARQLWrapper(oeo_ext_query_endpoint)

oeo_ext_store = sparqlstore.SPARQLUpdateStore()
# oeo_ext_store = sparqlstore.SPARQLUpdateStore()

oeo_ext_store.open((oeo_ext_query_endpoint, oeo_ext_update_endpoint))
oekb_oeo_ext = Graph(oeo_ext_store, identifier=default)
# oeo_ext_store.open((oeo_ext_query_endpoint, oeo_ext_update_endpoint))
# oekb_oeo_ext = Graph(oeo_ext_store, identifier=default)

# ---- import this in other modules
oeo_ext_with_namespaces = bind_all_namespaces(oekb_oeo_ext)
# # ---- import this in other modules
# oeo_ext_with_namespaces = bind_all_namespaces(oekb_oeo_ext)
20 changes: 10 additions & 10 deletions oeo_ext/oeo_extended_store/filters.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
from rdflib import RDF, Literal # noqa
# from rdflib import RDF, Literal # noqa

from oeo_ext.oeo_extended_store import namespaces # noqa
from oeo_ext.oeo_extended_store.connection import oekb_oeo_ext
# from oeo_ext.oeo_extended_store import namespaces # noqa
# from oeo_ext.oeo_extended_store.connection import oekb_oeo_ext


# Use this to implement filters that help you retrieve specific information
# from the new oeo ext oekg
class OekgQuery:
def __init__(self):
self.kb = oekb_oeo_ext
# # Use this to implement filters that help you retrieve specific information
# # from the new oeo ext oekg
# class OekgQuery:
# def __init__(self):
# self.kb = oekb_oeo_ext

def implementMethods(self):
raise NotImplementedError
# def implementMethods(self):
# raise NotImplementedError

0 comments on commit 97b4f79

Please sign in to comment.