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
No related branches found
No related tags found
No related merge requests found
......@@ -80,10 +80,11 @@ class Net:
def get_attribute_value(self, **attr):
res = None
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)
elif attr_value == []:
elif (self.uri is not None) & (attr_value == []):
res = self.__select_value_list_in_graph(attr_key)
else:
res = attr_value
......
......@@ -100,7 +100,7 @@ def analyze_phenomena_or_1(graph):
composite_class_net.compose(class_net, property_net, phenomena_net)
# -- Data Computation
composite_class_net.mother_class = class_net
composite_class_net.mother_class = class_net.uri
# etc
# -- Restriction Computation
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment