.:./../classes:./templates:./../distjar/jaxp.jar:./../distjar/jconn2.jar:./../distjar/jdbc7.0-1.2.jar:./../distjar/msbase.jar:./../distjar/mssqlserver.jar:./../distjar/msutil.jar:./../distjar/parser.jar
java  DefineSchemas
AutoMed Repository: Creating Schemas Demo
schema to retract: er_s1:
1:entity:<<person>>
2:attribute:<<1:entity:person,id,3:_:key>>
3:_:<<key>>
4:attribute:<<1:entity:person,name,5:_:notnull>>
5:_:<<notnull>>
6:attribute:<<1:entity:person,sex,7:_:notnull>>
7:_:<<notnull>>
8:entity:<<dept>>
9:attribute:<<8:entity:dept,dname,10:_:key>>
10:_:<<key>>
11:relationship:<<worksin,1:entity:person,8:entity:dept,12:_:1:1,13:_:1:N>>
12:_:<<1:1>>
13:_:<<1:N>>
No of objects left to go = 13
  <<'1:N'>>
  <<dept,'dname','key'>>
  <<person,'name','notnull'>>
  <<'notnull'>>
  <<'key'>>
  <<person,'id','key'>>
  <<'1:1'>>
  <<'worksin',person,dept,'1:1','1:N'>>
  <<'key'>>
  <<'dept'>>
  <<'person'>>
  <<'notnull'>>
  <<person,'sex','notnull'>>
er_s1 has 1 outputs
searching along er_s1--->er_s1a: add(<<male>>, male(X):-person-sex(X,male), null)
adding <<'male'>>to objects to do
No of objects left to go = 14
  <<'1:N'>>
  <<dept,'dname','key'>>
  <<person,'name','notnull'>>
  <<'notnull'>>
  <<'key'>>
  <<person,'id','key'>>
  <<'1:1'>>
  <<'male'>>
  <<'worksin',person,dept,'1:1','1:N'>>
  <<'key'>>
  <<'dept'>>
  <<'person'>>
  <<'notnull'>>
  <<person,'sex','notnull'>>
er_s1a has 1 outputs
searching along er_s1a--->er_s1b: add(<<female>>, female(X):-person-sex(X,female), null)
adding <<'female'>>to objects to do
No of objects left to go = 15
  <<dept,'dname','key'>>
  <<'1:N'>>
  <<person,'name','notnull'>>
  <<person,'id','key'>>
  <<'key'>>
  <<'notnull'>>
  <<'1:1'>>
  <<'male'>>
  <<'worksin',person,dept,'1:1','1:N'>>
  <<'key'>>
  <<'dept'>>
  <<'person'>>
  <<'female'>>
  <<'notnull'>>
  <<person,'sex','notnull'>>
er_s1b has 1 outputs
searching along er_s1b--->er_s1c: add(<<sex,total,person,male,female>>, null, null)
adding <<'sex','total',person,male,female>>to objects to do
No of objects left to go = 16
  <<'1:N'>>
  <<dept,'dname','key'>>
  <<person,'name','notnull'>>
  <<'notnull'>>
  <<'key'>>
  <<person,'id','key'>>
  <<'1:1'>>
  <<'male'>>
  <<'worksin',person,dept,'1:1','1:N'>>
  <<'key'>>
  <<'dept'>>
  <<'person'>>
  <<'notnull'>>
  <<'female'>>
  <<person,'sex','notnull'>>
  <<'sex','total',person,male,female>>
er_s1c has 1 outputs
searching along er_s1c--->er_s1d: del(<<person,sex,notnull>>, person-sex(X,Y) :- male(X),Y=m;female(X),Y=f, null)
removing <<person,'sex','notnull'>>from objects to do
No of objects left to go = 15
  <<dept,'dname','key'>>
  <<'1:N'>>
  <<person,'name','notnull'>>
  <<person,'id','key'>>
  <<'key'>>
  <<'notnull'>>
  <<'1:1'>>
  <<'male'>>
  <<'worksin',person,dept,'1:1','1:N'>>
  <<'key'>>
  <<'dept'>>
  <<'person'>>
  <<'female'>>
  <<'notnull'>>
  <<'sex','total',person,male,female>>
er_s1d has 1 outputs
searching along er_s1d--->er_s1e: ident(<<person>>, <<person>>, null, null)
removing <<'person'>>from objects to do
No of objects left to go = 14
  <<'1:N'>>
  <<dept,'dname','key'>>
  <<person,'name','notnull'>>
  <<'notnull'>>
  <<'key'>>
  <<person,'id','key'>>
  <<'1:1'>>
  <<'male'>>
  <<'worksin',person,dept,'1:1','1:N'>>
  <<'key'>>
  <<'dept'>>
  <<'notnull'>>
  <<'female'>>
  <<'sex','total',person,male,female>>
er_s1e has 1 outputs
searching along er_s1e--->er_s1f: ident(<<person,id,key>>, <<person,id,key>>, null, null)
removing <<person,'id','key'>>from objects to do
No of objects left to go = 13
  <<dept,'dname','key'>>
  <<'1:N'>>
  <<person,'name','notnull'>>
  <<'key'>>
  <<'notnull'>>
  <<'1:1'>>
  <<'male'>>
  <<'worksin',person,dept,'1:1','1:N'>>
  <<'key'>>
  <<'dept'>>
  <<'female'>>
  <<'notnull'>>
  <<'sex','total',person,male,female>>
er_s1f has 1 outputs
searching along er_s1f--->er_s1g: ident(<<person,name,notnull>>, <<person,name,notnull>>, null, null)
removing <<person,'name','notnull'>>from objects to do
No of objects left to go = 12
  <<'1:N'>>
  <<dept,'dname','key'>>
  <<'notnull'>>
  <<'key'>>
  <<'1:1'>>
  <<'male'>>
  <<'worksin',person,dept,'1:1','1:N'>>
  <<'key'>>
  <<'dept'>>
  <<'notnull'>>
  <<'female'>>
  <<'sex','total',person,male,female>>
er_s1g has 1 outputs
searching along er_s1g--->er_s1h: ident(<<dept>>, <<dept>>, null, null)
removing <<'dept'>>from objects to do
No of objects left to go = 11
  <<dept,'dname','key'>>
  <<'1:N'>>
  <<'key'>>
  <<'notnull'>>
  <<'1:1'>>
  <<'male'>>
  <<'worksin',person,dept,'1:1','1:N'>>
  <<'key'>>
  <<'female'>>
  <<'notnull'>>
  <<'sex','total',person,male,female>>
er_s1h has 1 outputs
searching along er_s1h--->er_s1i: ident(<<dept,dname,key>>, <<dept,dname,key>>, null, null)
removing <<dept,'dname','key'>>from objects to do
No of objects left to go = 10
  <<'1:N'>>
  <<'notnull'>>
  <<'key'>>
  <<'1:1'>>
  <<'male'>>
  <<'worksin',person,dept,'1:1','1:N'>>
  <<'key'>>
  <<'notnull'>>
  <<'female'>>
  <<'sex','total',person,male,female>>
er_s1i has 1 outputs
searching along er_s1i--->er_s1j: ident(<<worksin,person,dept,1:1,1:N>>, <<worksin,person,dept,1:1,1:N>>, null, null)
removing <<'worksin',person,dept,'1:1','1:N'>>from objects to do
No of objects left to go = 9
  <<'1:N'>>
  <<'key'>>
  <<'notnull'>>
  <<'1:1'>>
  <<'male'>>
  <<'key'>>
  <<'female'>>
  <<'notnull'>>
  <<'sex','total',person,male,female>>
er_s1j has 1 outputs
searching along er_s1j--->er_s1k: ident(<<male>>, <<male>>, null, null)
removing <<'male'>>from objects to do
No of objects left to go = 8
  <<'1:N'>>
  <<'notnull'>>
  <<'key'>>
  <<'1:1'>>
  <<'key'>>
  <<'notnull'>>
  <<'female'>>
  <<'sex','total',person,male,female>>
er_s1k has 1 outputs
searching along er_s1k--->er_s1l: ident(<<female>>, <<female>>, null, null)
removing <<'female'>>from objects to do
No of objects left to go = 7
  <<'1:N'>>
  <<'key'>>
  <<'notnull'>>
  <<'1:1'>>
  <<'key'>>
  <<'notnull'>>
  <<'sex','total',person,male,female>>
er_s1l has 1 outputs
searching along er_s1l--->er_s2d: ident(<<sex,total,person,male,female>>, <<sex,total,person,male,female>>, null, null)
removing <<'sex','total',person,male,female>>from objects to do
No of objects left to go = 6
  <<'1:N'>>
  <<'notnull'>>
  <<'key'>>
  <<'1:1'>>
  <<'key'>>
  <<'notnull'>>
er_s2d has 2 outputs
searching along er_s2d--->er_s2e: ident(<<person>>, <<person>>, null, null)
removing <<'person'>>from objects to do
No of objects left to go = 6
  <<'1:N'>>
  <<'key'>>
  <<'notnull'>>
  <<'1:1'>>
  <<'key'>>
  <<'notnull'>>
er_s2e has 1 outputs
searching along er_s2e--->er_s2f: ident(<<person,id,key>>, <<person,id,key>>, null, null)
removing <<person,'id','key'>>from objects to do
No of objects left to go = 6
  <<'1:N'>>
  <<'notnull'>>
  <<'key'>>
  <<'1:1'>>
  <<'key'>>
  <<'notnull'>>
er_s2f has 1 outputs
searching along er_s2f--->er_s2g: ident(<<person,name,notnull>>, <<person,name,notnull>>, null, null)
removing <<person,'name','notnull'>>from objects to do
No of objects left to go = 6
  <<'1:N'>>
  <<'key'>>
  <<'notnull'>>
  <<'1:1'>>
  <<'key'>>
  <<'notnull'>>
er_s2g has 1 outputs
searching along er_s2g--->er_s2h: ident(<<male>>, <<male>>, null, null)
removing <<'male'>>from objects to do
No of objects left to go = 6
  <<'1:N'>>
  <<'notnull'>>
  <<'key'>>
  <<'1:1'>>
  <<'key'>>
  <<'notnull'>>
er_s2h has 1 outputs
searching along er_s2h--->er_s2i: ident(<<female>>, <<female>>, null, null)
removing <<'female'>>from objects to do
No of objects left to go = 6
  <<'1:N'>>
  <<'key'>>
  <<'notnull'>>
  <<'1:1'>>
  <<'key'>>
  <<'notnull'>>
er_s2i has 1 outputs
searching along er_s2i--->er_s2j: ident(<<sex,total,person,male,female>>, <<sex,total,person,male,female>>, null, null)
removing <<'sex','total',person,male,female>>from objects to do
No of objects left to go = 6
  <<'1:N'>>
  <<'notnull'>>
  <<'key'>>
  <<'1:1'>>
  <<'key'>>
  <<'notnull'>>
er_s2j has 1 outputs
searching along er_s2j--->er_s2k: ident(<<dept>>, <<dept>>, null, null)
removing <<'dept'>>from objects to do
No of objects left to go = 6
  <<'1:N'>>
  <<'key'>>
  <<'notnull'>>
  <<'1:1'>>
  <<'key'>>
  <<'notnull'>>
er_s2k has 1 outputs
searching along er_s2k--->er_s2l: ident(<<dept,dname,key>>, <<dept,dname,key>>, null, null)
removing <<dept,'dname','key'>>from objects to do
No of objects left to go = 6
  <<'1:N'>>
  <<'notnull'>>
  <<'key'>>
  <<'1:1'>>
  <<'key'>>
  <<'notnull'>>
er_s2l has 1 outputs
searching along er_s2l--->er_s3e: ident(<<worksin,person,dept,1:1,1:N>>, <<worksin,person,dept,1:1,1:N>>, null, null)
removing <<'worksin',person,dept,'1:1','1:N'>>from objects to do
No of objects left to go = 6
  <<'1:N'>>
  <<'key'>>
  <<'notnull'>>
  <<'1:1'>>
  <<'key'>>
  <<'notnull'>>
er_s3e has 1 outputs
searching along er_s3d--->er_s3e: ext(<<person,name,notnull>>, null, null)
removing <<person,'name','notnull'>>from objects to do
No of objects left to go = 6
  <<'1:N'>>
  <<'notnull'>>
  <<'key'>>
  <<'1:1'>>
  <<'key'>>
  <<'notnull'>>
er_s3d has 1 outputs
Came from er_s3e, ignoring
searching along er_s3c--->er_s3d: con(<<degree>>, null, null)
adding <<'degree'>>to objects to do
No of objects left to go = 7
  <<'degree'>>
  <<'1:N'>>
  <<'notnull'>>
  <<'key'>>
  <<'1:1'>>
  <<'key'>>
  <<'notnull'>>
er_s3c has 1 outputs
Came from er_s3d, ignoring
searching along er_s3b--->er_s3c: con(<<runby,degree,dept,1:1,1:N>>, null, null)
adding <<'runby',degree,dept,'1:1','1:N'>>to objects to do
No of objects left to go = 8
  <<'runby',degree,dept,'1:1','1:N'>>
  <<'degree'>>
  <<'1:N'>>
  <<'notnull'>>
  <<'key'>>
  <<'1:1'>>
  <<'key'>>
  <<'notnull'>>
er_s3b has 1 outputs
Came from er_s3c, ignoring
searching along er_s3a--->er_s3b: con(<<degree,code,key>>, null, null)
adding <<degree,'code','key'>>to objects to do
No of objects left to go = 9
  <<'runby',degree,dept,'1:1','1:N'>>
  <<'degree'>>
  <<'1:N'>>
  <<'notnull'>>
  <<'key'>>
  <<'1:1'>>
  <<'key'>>
  <<'notnull'>>
  <<degree,'code','key'>>
er_s3a has 1 outputs
Came from er_s3b, ignoring
searching along er_s3--->er_s3a: con(<<degree,title,notnull>>, null, null)
adding <<degree,'title','notnull'>>to objects to do
No of objects left to go = 10
  <<'runby',degree,dept,'1:1','1:N'>>
  <<'degree'>>
  <<'1:N'>>
  <<degree,'title','notnull'>>
  <<'notnull'>>
  <<'key'>>
  <<'1:1'>>
  <<'key'>>
  <<'notnull'>>
  <<degree,'code','key'>>
er_s3 has 0 outputs
Came from er_s3a, ignoring
about to remove er_s3a-->er_s3
Removed transformation from schema er_s3--->er_s3a: con(<<degree,title,notnull>>, null, null)
This exception should not have occurred; please report to pjm@doc.ic.ac.uk
uk.ac.ic.doc.automed.InconsistentException: Failed to remove Schema from repository
	at uk.ac.ic.doc.automed.reps.Schema.remove(Schema.java:327)
	at uk.ac.ic.doc.automed.reps.Schema.gobblePath(Schema.java:488)
	at uk.ac.ic.doc.automed.reps.Schema.gobblePath(Schema.java:467)
	at uk.ac.ic.doc.automed.reps.Schema.gobblePath(Schema.java:467)
	at uk.ac.ic.doc.automed.reps.Schema.gobblePath(Schema.java:467)
	at uk.ac.ic.doc.automed.reps.Schema.gobblePath(Schema.java:467)
	at uk.ac.ic.doc.automed.reps.Schema.gobblePath(Schema.java:467)
	at uk.ac.ic.doc.automed.reps.Schema.gobblePath(Schema.java:467)
	at uk.ac.ic.doc.automed.reps.Schema.gobblePath(Schema.java:467)
	at uk.ac.ic.doc.automed.reps.Schema.gobblePath(Schema.java:467)
	at uk.ac.ic.doc.automed.reps.Schema.gobblePath(Schema.java:467)
	at uk.ac.ic.doc.automed.reps.Schema.gobblePath(Schema.java:467)
	at uk.ac.ic.doc.automed.reps.Schema.gobblePath(Schema.java:467)
	at uk.ac.ic.doc.automed.reps.Schema.gobblePath(Schema.java:467)
	at uk.ac.ic.doc.automed.reps.Schema.gobblePath(Schema.java:467)
	at uk.ac.ic.doc.automed.reps.Schema.gobblePath(Schema.java:467)
	at uk.ac.ic.doc.automed.reps.Schema.gobblePath(Schema.java:467)
	at uk.ac.ic.doc.automed.reps.Schema.gobblePath(Schema.java:467)
	at uk.ac.ic.doc.automed.reps.Schema.gobblePath(Schema.java:467)
	at uk.ac.ic.doc.automed.reps.Schema.gobblePath(Schema.java:467)
	at uk.ac.ic.doc.automed.reps.Schema.gobblePath(Schema.java:467)
	at uk.ac.ic.doc.automed.reps.Schema.gobblePath(Schema.java:467)
	at uk.ac.ic.doc.automed.reps.Schema.gobblePath(Schema.java:467)
	at uk.ac.ic.doc.automed.reps.Schema.gobblePath(Schema.java:467)
	at uk.ac.ic.doc.automed.reps.Schema.gobblePath(Schema.java:467)
	at uk.ac.ic.doc.automed.reps.Schema.gobblePath(Schema.java:467)
	at uk.ac.ic.doc.automed.reps.Schema.gobblePath(Schema.java:467)
	at uk.ac.ic.doc.automed.reps.Schema.gobblePath(Schema.java:467)
	at uk.ac.ic.doc.automed.reps.Schema.retract(Schema.java:363)
	at uk.ac.ic.doc.automed.reps.Schema.retract(Schema.java:386)
	at DefineSchemas.main(DefineSchemas.java:312)
Caused by: uk.ac.ic.doc.automed.STRException: Data dependency conflict detected for SID 3, schema has object with OBID(45) in objectSchema table
	at uk.ac.ic.doc.automed.STR.removeSchema(STR.java:898)
	at uk.ac.ic.doc.automed.reps.Schema.remove(Schema.java:324)
	... 30 more
er_s3a-->er_s3 removed
about to remove er_s3b-->er_s3a
Removed transformation from schema er_s3a--->er_s3b: con(<<degree,code,key>>, null, null)
Removed schema er_s3a (sid=15)
er_s3b-->er_s3a removed
about to remove er_s3c-->er_s3b
Removed transformation from schema er_s3b--->er_s3c: con(<<runby,degree,dept,1:1,1:N>>, null, null)
Removed schema er_s3b (sid=16)
er_s3c-->er_s3b removed
about to remove er_s3d-->er_s3c
Removed transformation from schema er_s3c--->er_s3d: con(<<degree>>, null, null)
Removed schema er_s3c (sid=17)
er_s3d-->er_s3c removed
about to remove er_s3e-->er_s3d
Removed transformation from schema er_s3d--->er_s3e: ext(<<person,name,notnull>>, null, null)
er_s3e-->er_s3d removed
Came from er_s2l, ignoring
about to remove er_s2l-->er_s3e
Removed transformation from schema er_s2l--->er_s3e: ident(<<worksin,person,dept,1:1,1:N>>, <<worksin,person,dept,1:1,1:N>>, null, null)
er_s2l-->er_s3e removed
Came from er_s2k, ignoring
about to remove er_s2k-->er_s2l
Removed transformation from schema er_s2k--->er_s2l: ident(<<dept,dname,key>>, <<dept,dname,key>>, null, null)
er_s2k-->er_s2l removed
Came from er_s2j, ignoring
about to remove er_s2j-->er_s2k
Removed transformation from schema er_s2j--->er_s2k: ident(<<dept>>, <<dept>>, null, null)
er_s2j-->er_s2k removed
Came from er_s2i, ignoring
about to remove er_s2i-->er_s2j
Removed transformation from schema er_s2i--->er_s2j: ident(<<sex,total,person,male,female>>, <<sex,total,person,male,female>>, null, null)
er_s2i-->er_s2j removed
Came from er_s2h, ignoring
about to remove er_s2h-->er_s2i
Removed transformation from schema er_s2h--->er_s2i: ident(<<female>>, <<female>>, null, null)
er_s2h-->er_s2i removed
Came from er_s2g, ignoring
about to remove er_s2g-->er_s2h
Removed transformation from schema er_s2g--->er_s2h: ident(<<male>>, <<male>>, null, null)
er_s2g-->er_s2h removed
Came from er_s2f, ignoring
about to remove er_s2f-->er_s2g
Removed transformation from schema er_s2f--->er_s2g: ident(<<person,name,notnull>>, <<person,name,notnull>>, null, null)
er_s2f-->er_s2g removed
Came from er_s2e, ignoring
about to remove er_s2e-->er_s2f
Removed transformation from schema er_s2e--->er_s2f: ident(<<person,id,key>>, <<person,id,key>>, null, null)
er_s2e-->er_s2f removed
Came from er_s2d, ignoring
about to remove er_s2d-->er_s2e
Removed transformation from schema er_s2d--->er_s2e: ident(<<person>>, <<person>>, null, null)
er_s2d-->er_s2e removed
searching along er_s2c--->er_s2d: del(<<person,dname,notnull>>, person-dname(X,Y) :- person-worksin-dept(X,Y), null)
adding <<person,'dname','notnull'>>to objects to do
No of objects left to go = 7
  <<'1:N'>>
  <<'key'>>
  <<'notnull'>>
  <<'1:1'>>
  <<'key'>>
  <<person,'dname','notnull'>>
  <<'notnull'>>
er_s2c has 1 outputs
Came from er_s2d, ignoring
searching along er_s2b--->er_s2c: add(<<worksin,person,dept,1:1,1:N>>, null, null)
removing <<'worksin',person,dept,'1:1','1:N'>>from objects to do
No of objects left to go = 7
  <<'1:N'>>
  <<'key'>>
  <<'notnull'>>
  <<'1:1'>>
  <<'key'>>
  <<person,'dname','notnull'>>
  <<'notnull'>>
er_s2b has 1 outputs
Came from er_s2c, ignoring
searching along er_s2a--->er_s2b: add(<<dept,dname,key>>, dept-dname(X,X):-dept(X), null)
removing <<dept,'dname','key'>>from objects to do
No of objects left to go = 7
  <<'1:N'>>
  <<'key'>>
  <<'notnull'>>
  <<'1:1'>>
  <<'key'>>
  <<person,'dname','notnull'>>
  <<'notnull'>>
er_s2a has 1 outputs
Came from er_s2b, ignoring
searching along er_s2--->er_s2a: add(<<dept>>, dept(X):-person-dept(_,X), null)
removing <<'dept'>>from objects to do
No of objects left to go = 7
  <<'1:N'>>
  <<'key'>>
  <<'notnull'>>
  <<'1:1'>>
  <<'key'>>
  <<person,'dname','notnull'>>
  <<'notnull'>>
er_s2 has 0 outputs
Came from er_s2a, ignoring
about to remove er_s2a-->er_s2
Removed transformation from schema er_s2--->er_s2a: add(<<dept>>, dept(X):-person-dept(_,X), null)
er_s2a-->er_s2 removed
about to remove er_s2b-->er_s2a
Removed transformation from schema er_s2a--->er_s2b: add(<<dept,dname,key>>, dept-dname(X,X):-dept(X), null)
er_s2b-->er_s2a removed
about to remove er_s2c-->er_s2b
Removed transformation from schema er_s2b--->er_s2c: add(<<worksin,person,dept,1:1,1:N>>, null, null)
er_s2c-->er_s2b removed
about to remove er_s2d-->er_s2c
Removed transformation from schema er_s2c--->er_s2d: del(<<person,dname,notnull>>, person-dname(X,Y) :- person-worksin-dept(X,Y), null)
Removed schema er_s2c (sid=13)
er_s2d-->er_s2c removed
Came from er_s1l, ignoring
about to remove er_s1l-->er_s2d
Removed transformation from schema er_s1l--->er_s2d: ident(<<sex,total,person,male,female>>, <<sex,total,person,male,female>>, null, null)
er_s1l-->er_s2d removed
Came from er_s1k, ignoring
about to remove er_s1k-->er_s1l
Removed transformation from schema er_s1k--->er_s1l: ident(<<female>>, <<female>>, null, null)
er_s1k-->er_s1l removed
Came from er_s1j, ignoring
about to remove er_s1j-->er_s1k
Removed transformation from schema er_s1j--->er_s1k: ident(<<male>>, <<male>>, null, null)
er_s1j-->er_s1k removed
Came from er_s1i, ignoring
about to remove er_s1i-->er_s1j
Removed transformation from schema er_s1i--->er_s1j: ident(<<worksin,person,dept,1:1,1:N>>, <<worksin,person,dept,1:1,1:N>>, null, null)
er_s1i-->er_s1j removed
Came from er_s1h, ignoring
about to remove er_s1h-->er_s1i
Removed transformation from schema er_s1h--->er_s1i: ident(<<dept,dname,key>>, <<dept,dname,key>>, null, null)
er_s1h-->er_s1i removed
Came from er_s1g, ignoring
about to remove er_s1g-->er_s1h
Removed transformation from schema er_s1g--->er_s1h: ident(<<dept>>, <<dept>>, null, null)
er_s1g-->er_s1h removed
Came from er_s1f, ignoring
about to remove er_s1f-->er_s1g
Removed transformation from schema er_s1f--->er_s1g: ident(<<person,name,notnull>>, <<person,name,notnull>>, null, null)
er_s1f-->er_s1g removed
Came from er_s1e, ignoring
about to remove er_s1e-->er_s1f
Removed transformation from schema er_s1e--->er_s1f: ident(<<person,id,key>>, <<person,id,key>>, null, null)
er_s1e-->er_s1f removed
Came from er_s1d, ignoring
about to remove er_s1d-->er_s1e
Removed transformation from schema er_s1d--->er_s1e: ident(<<person>>, <<person>>, null, null)
er_s1d-->er_s1e removed
Came from er_s1c, ignoring
about to remove er_s1c-->er_s1d
Removed transformation from schema er_s1c--->er_s1d: del(<<person,sex,notnull>>, person-sex(X,Y) :- male(X),Y=m;female(X),Y=f, null)
er_s1c-->er_s1d removed
Came from er_s1b, ignoring
about to remove er_s1b-->er_s1c
Removed transformation from schema er_s1b--->er_s1c: add(<<sex,total,person,male,female>>, null, null)
Removed schema er_s1c (sid=9)
er_s1b-->er_s1c removed
Came from er_s1a, ignoring
about to remove er_s1a-->er_s1b
Removed transformation from schema er_s1a--->er_s1b: add(<<female>>, female(X):-person-sex(X,female), null)
Removed schema er_s1b (sid=8)
er_s1a-->er_s1b removed
Came from er_s1, ignoring
about to remove er_s1-->er_s1a
Removed transformation from schema er_s1--->er_s1a: add(<<male>>, male(X):-person-sex(X,male), null)
Removed schema er_s1a (sid=7)
er_s1-->er_s1a removed
Removed schema er_s1 (sid=1)
Created schema er_s1 succesfully
schema:er_s1
entity:<<person>>
attribute:<<person,id,key>>
attribute:<<person,name,notnull>>
attribute:<<person,sex,notnull>>
entity:<<dept>>
attribute:<<dept,dname,key>>
relationship:<<worksin,person,dept,1:1,1:N>>
schema to retract: er_s2:
14:entity:<<person>>
15:attribute:<<14:entity:person,id,16:_:key>>
16:_:<<key>>
17:attribute:<<14:entity:person,name,18:_:notnull>>
18:_:<<notnull>>
20:_:<<notnull>>
21:entity:<<male>>
22:entity:<<female>>
23:generalisation:<<sex,24:_:total,14:entity:person,21:entity:male,22:entity:female>>
24:_:<<total>>
No of objects left to go = 10
  <<'total'>>
  <<'notnull'>>
  <<'female'>>
  <<'sex','total',person,male,female>>
  <<'person'>>
  <<'key'>>
  <<'male'>>
  <<person,'id','key'>>
  <<'notnull'>>
  <<person,'name','notnull'>>
er_s2 has 0 outputs
