Skip to content
Snippets Groups Projects
Commit 77fe27f0 authored by Aurélien Lamercerie's avatar Aurélien Lamercerie
Browse files

Add control in net getter

parent 9431756b
Branches
Tags
No related merge requests found
...@@ -80,10 +80,11 @@ class Net: ...@@ -80,10 +80,11 @@ class Net:
def get_attribute_value(self, **attr): def get_attribute_value(self, **attr):
res = None res = None
for attr_key, attr_value in attr.items(): for attr_key, attr_value in attr.items():
if attr_value == None: if (self.uri is not None) & (attr_value is None):
res = self.__select_value_in_graph(attr_key) res = self.__select_value_in_graph(attr_key)
elif attr_value == []: elif (self.uri is not None) & (attr_value == []):
res = self.__select_value_list_in_graph(attr_key) res = self.__select_value_list_in_graph(attr_key)
else: else:
res = attr_value res = attr_value
......
...@@ -100,7 +100,7 @@ def analyze_phenomena_or_1(graph): ...@@ -100,7 +100,7 @@ def analyze_phenomena_or_1(graph):
composite_class_net.compose(class_net, property_net, phenomena_net) composite_class_net.compose(class_net, property_net, phenomena_net)
# -- Data Computation # -- Data Computation
composite_class_net.mother_class = class_net composite_class_net.mother_class = class_net.uri
# etc # etc
# -- Restriction Computation # -- Restriction Computation
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment