schema S = literal : rdf { entities A B foreign_keys f : A -> B attributes attA : A -> Dom attB : B -> Dom } schema T = literal : rdf { entities W X Y Z foreign_keys g : W -> X h : X -> Y i : Y -> Z attributes attW : W -> Dom attX : X -> Dom attY : Y -> Dom attZ : Z -> Dom } mapping M = literal : S -> T { entity A -> W foreign_keys f -> g.h.i attributes attA -> attW entity B -> Z attributes attB -> attZ } instance I = literal : rdf { generators r1 r2 r3 t0 t1 t2 t3 u1 u2 u3 u4: R equations r1.subject = "a1" r1.predicate = "f" r1.object = "b1" r2.subject = "a2" r2.predicate = "f" r2.object = "b2" r3.subject = "a2" r3.predicate = "f" r3.object = "b1" u1.subject = "a1" u1.predicate = "attA" u1.object = "Alice" u2.subject = "a2" u2.predicate = "attA" u2.object = "Ann" u3.subject = "b1" u3.predicate = "attB" u3.object = "Bob" u4.subject = "b2" u4.predicate = "attB" u4.object = "Bill" t0.subject = "a1" t0.object = "A" t0.predicate = "http://www.w3.org/1999/02/22-rdf-syntax-ns#type" t1.subject = "a2" t1.object = "A" t1.predicate = "http://www.w3.org/1999/02/22-rdf-syntax-ns#type" t2.subject = "b1" t2.object = "B" t2.predicate = "http://www.w3.org/1999/02/22-rdf-syntax-ns#type" t3.subject = "b2" t3.object = "B" t3.predicate = "http://www.w3.org/1999/02/22-rdf-syntax-ns#type" } schema S0 = spanify S schema T0 = spanify T query Q1 = spanify S query Q2 = spanify T query Q = spanify_mapping M instance J = eval Q1 I instance K = coeval Q J instance L = coeval Q2 K ##################################### schema X = literal : rdf { entities W attributes attW : W -> Dom } mapping F = literal : S -> T { entity A -> W foreign_keys f -> identity attributes attA -> attW entity B -> W attributes attB -> attW } schema Y = spanify X query U = spanify_mapping F instance J2 = eval Q1 I instance K2 = coeval U J2 instance L2 = coeval Q2 K2Keywords:
ID | predicate | subject | object |
---|---|---|---|
0 | f | a1 | b1 |
1 | f | a2 | b2 |
2 | f | a2 | b1 |
3 | http://www.w3.org/1999/02/22-rdf-syntax-ns#type | a1 | A |
4 | http://www.w3.org/1999/02/22-rdf-syntax-ns#type | a2 | A |
5 | http://www.w3.org/1999/02/22-rdf-syntax-ns#type | b1 | B |
6 | http://www.w3.org/1999/02/22-rdf-syntax-ns#type | b2 | B |
7 | attA | a1 | Alice |
8 | attA | a2 | Ann |
9 | attB | b1 | Bob |
10 | attB | b2 | Bill |
ID | subject |
---|---|
0 | a1 |
1 | a2 |
ID | subject |
---|---|
2 | b1 |
3 | b2 |
ID | object | subject |
---|---|---|
4 | Alice | 0 |
5 | Ann | 1 |
ID | object | subject |
---|---|---|
6 | Bob | 2 |
7 | Bill | 3 |
ID | object | subject |
---|---|---|
8 | 2 | 0 |
9 | 2 | 1 |
10 | 3 | 1 |
ID | subject |
---|---|
0 | a1 |
1 | a2 |
ID | subject |
---|---|
2 | b1 |
3 | b2 |
ID | object | subject |
---|---|---|
4 | Alice | 0 |
5 | Ann | 1 |
ID | object | subject |
---|---|---|
6 | Bob | 2 |
7 | Bill | 3 |
ID | object | subject |
---|---|---|
8 | 2 | 0 |
9 | 2 | 1 |
10 | 3 | 1 |
ID | subject |
---|---|
0 | a2 |
1 | a1 |
2 | b2 |
3 | b1 |
4 | ?0 |
5 | ?1 |
6 | ?2 |
7 | ?3 |
ID | subject |
---|
ID | subject |
---|
ID | subject |
---|
ID | object | subject |
---|---|---|
8 | Ann | 4 |
9 | Alice | 5 |
10 | Bill | 6 |
11 | Bob | 7 |
ID | object | subject |
---|
ID | object | subject |
---|
ID | object | subject |
---|
ID | object | subject |
---|
ID | object | subject |
---|
ID | object | subject |
---|
ID | subject |
---|---|
0 | a2 |
1 | a1 |
2 | ?0 |
3 | ?1 |
ID | subject |
---|---|
4 | ?2 |
5 | ?3 |
6 | ?4 |
ID | subject |
---|---|
7 | ?5 |
8 | ?6 |
9 | ?7 |
ID | subject |
---|---|
10 | b2 |
11 | b1 |
12 | ?8 |
13 | ?9 |
ID | object | subject |
---|---|---|
14 | Ann | 2 |
15 | Alice | 3 |
ID | object | subject |
---|
ID | object | subject |
---|
ID | object | subject |
---|---|---|
16 | Bill | 12 |
17 | Bob | 13 |
ID | object | subject |
---|---|---|
18 | 4 | 0 |
19 | 5 | 0 |
20 | 6 | 1 |
ID | object | subject |
---|---|---|
21 | 7 | 4 |
22 | 8 | 5 |
23 | 9 | 6 |
ID | object | subject |
---|---|---|
24 | 11 | 7 |
25 | 10 | 8 |
26 | 11 | 9 |
ID | predicate | subject | object |
---|---|---|---|
0 | http://www.w3.org/1999/02/22-rdf-syntax-ns#type | ?0 | W |
1 | http://www.w3.org/1999/02/22-rdf-syntax-ns#type | ?1 | W |
2 | http://www.w3.org/1999/02/22-rdf-syntax-ns#type | ?2 | W |
3 | http://www.w3.org/1999/02/22-rdf-syntax-ns#type | ?3 | W |
4 | http://www.w3.org/1999/02/22-rdf-syntax-ns#type | b1 | W |
5 | http://www.w3.org/1999/02/22-rdf-syntax-ns#type | b2 | W |
6 | http://www.w3.org/1999/02/22-rdf-syntax-ns#type | a1 | W |
7 | http://www.w3.org/1999/02/22-rdf-syntax-ns#type | a2 | W |
8 | attW | ?0 | Bob |
9 | attW | ?1 | Bill |
10 | attW | ?2 | Alice |
11 | attW | ?3 | Ann |
ID | predicate | subject | object |
---|---|---|---|
0 | http://www.w3.org/1999/02/22-rdf-syntax-ns#type | ?0 | W |
1 | http://www.w3.org/1999/02/22-rdf-syntax-ns#type | ?1 | W |
2 | http://www.w3.org/1999/02/22-rdf-syntax-ns#type | a1 | W |
3 | http://www.w3.org/1999/02/22-rdf-syntax-ns#type | a2 | W |
4 | http://www.w3.org/1999/02/22-rdf-syntax-ns#type | ?2 | X |
5 | http://www.w3.org/1999/02/22-rdf-syntax-ns#type | ?3 | X |
6 | http://www.w3.org/1999/02/22-rdf-syntax-ns#type | ?4 | X |
7 | http://www.w3.org/1999/02/22-rdf-syntax-ns#type | ?5 | Y |
8 | http://www.w3.org/1999/02/22-rdf-syntax-ns#type | ?6 | Y |
9 | http://www.w3.org/1999/02/22-rdf-syntax-ns#type | ?7 | Y |
10 | http://www.w3.org/1999/02/22-rdf-syntax-ns#type | ?8 | Z |
11 | http://www.w3.org/1999/02/22-rdf-syntax-ns#type | ?9 | Z |
12 | http://www.w3.org/1999/02/22-rdf-syntax-ns#type | b1 | Z |
13 | http://www.w3.org/1999/02/22-rdf-syntax-ns#type | b2 | Z |
14 | g | a1 | ?2 |
15 | g | a2 | ?3 |
16 | g | a2 | ?4 |
17 | h | ?2 | ?5 |
18 | h | ?3 | ?6 |
19 | h | ?4 | ?7 |
20 | i | ?5 | b1 |
21 | i | ?6 | b2 |
22 | i | ?7 | b1 |
23 | attW | ?0 | Alice |
24 | attW | ?1 | Ann |
25 | attZ | ?8 | Bob |
26 | attZ | ?9 | Bill |