Commit 5438962c authored by Thodoris Nestoridis's avatar Thodoris Nestoridis

last update

parent e27f1d7b
......@@ -25,6 +25,7 @@
</div>
</div>
<div *ngIf='grouboilerplates?.length === 0' class="alert alert-warning" role="alert">No available projects, please add a new project</div>
<div class="content">
<div fxLayout="row wrap">
<div fxFlex="20%" *ngFor="let gb of grouboilerplates| filter:title">
......
......@@ -10,8 +10,8 @@ from reqman.apps.reqtool.rest_api.services.parse_ontologies import *
#find_subclass_domain_range()
#MAIN SYNTAX
import pprint
#pprint.pprint(get_main_sytax())
#import pprint
#print.pprint(get_main_sytax(g))
MAIN_CHOICES = ( ("",""), ("M1", "M1"),
("M2", "M2"),
......
......@@ -18,7 +18,9 @@ from reqman.settings.environment import env
#get prefix syntax from the Onotlogy#
#print(get_prefix_new_syntax())
#PREFIX_SYNTAX = get_prefix_syntax()
#g = Graph()
#g.load('../../Ontologies/2022_AOCS.ttl', format="turtle")
#print(get_main_sytax(g))
SIMPLE_PREFIX_CHOICES = ( ("",""),
("P1", "If/Unless <logical expression>"),
......
......@@ -304,22 +304,22 @@ class MainChoicesAPIView(APIView):
sao6['SubInstanceOfSubclass'].append({"Instance": es_instance[6].strip(), "Comment": comment })
break
if(flag == 4):
#print(instance, "Instance", es_instance[5].strip(), "Comment", comment )
print(instance, "Instance", es_instance[5].strip(), "Comment", comment )
if(sao5 ['SubInstanceOfSubclass'] == ''):
sao5 ['SubInstanceOfSubclass'] = []
sao5['SubInstanceOfSubclass'].append({"Instance": es_instance[5].strip(), "Comment": comment })
else:
sao5['SubInstanceOfSubclass'].append({"Instance": es_instance[5].strip(), "Comment": comment })
break
if(flag == 3):
#print(instance, "Instance", es_instance[4].strip(), "Comment", comment )
if(sao4 ['SubInstanceOfSubclass'] == ''):
sao4 ['SubInstanceOfSubclass'] = []
sao4['SubInstanceOfSubclass'].append({"Instance": es_instance[4].strip(), "Comment": comment })
else:
sao4['SubInstanceOfSubclass'].append({"Instance": es_instance[4].strip(), "Comment": comment })
break
# SubSubClass_name
if(flag == 3):
#print(instance, "Instance", es_instance[4].strip(), "Comment", comment )
if(sao4 ['SubInstanceOfSubclass'] == ''):
sao4 ['SubInstanceOfSubclass'] = []
sao4['SubInstanceOfSubclass'].append({"Instance": es_instance[4].strip(), "Comment": comment })
else:
sao4['SubInstanceOfSubclass'].append({"Instance": es_instance[4].strip(), "Comment": comment })
break
# SubSubClass_name
if(flag == 2):
if(sao3 ['InstanceOfSubclass'] == ''):
sao3 ['InstanceOfSubclass'] = []
......@@ -358,6 +358,7 @@ class MainChoicesAPIView(APIView):
return HttpResponse('Update Instance')
if (es_instance[0].strip() == 'Item'):
m = data.values('item_choices')[0]['item_choices'][:-1]
print('["'+instance+'","'+instance+'"]')
if (len(m) ==1 ):
m+= '["'+instance+'","'+instance+'"]'+']'
else :
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment