Skip to content

Commit

Permalink
suppress InsecureRequestWarning, fix object/data property characteris…
Browse files Browse the repository at this point in the history
…tic parameters
  • Loading branch information
muddymudskipper committed Nov 8, 2024
1 parent c169e67 commit ab529be
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cmem_plugin_reason/plugin_reason.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
from pathlib import Path
from tempfile import TemporaryDirectory
from time import time
from warnings import simplefilter

import validators.url
from cmem.cmempy.dp.proxy.graph import get
Expand All @@ -16,6 +17,7 @@
from cmem_plugin_base.dataintegration.types import BoolParameterType, StringParameterType
from cmem_plugin_base.dataintegration.utils import setup_cmempy_user_access
from inflection import underscore
from urllib3.exceptions import InsecureRequestWarning

from cmem_plugin_reason.doc import REASON_DOC
from cmem_plugin_reason.utils import (
Expand All @@ -36,6 +38,8 @@
validate_profiles,
)

simplefilter("ignore", category=InsecureRequestWarning)

SUBCLASS_DESC = """The reasoner will infer assertions about the hierarchy of classes, i.e.
`SubClassOf:` statements.\n
If there are classes `Person`, `Student` and `Professor`, such that `Person DisjointUnionOf:
Expand Down Expand Up @@ -394,6 +398,8 @@ def __init__( # noqa: PLR0913 C901
self.input_profiles = input_profiles
self.max_ram_percentage = max_ram_percentage
self.valid_profiles = valid_profiles
self.data_property_characteristic = data_property_characteristic
self.object_property_characteristic = object_property_characteristic

for k, v in self.axioms.items():
self.__dict__[underscore(k)] = v
Expand Down

0 comments on commit ab529be

Please sign in to comment.