Tree-Witness Rewriting

The tree-witness rewriter is a component of the ontology-based data access framework -ontop-. This page summarises the results of experiments with the tree-witness rewritings of the standard ontologies and queries. A standalone version of the rewriter is available to download from: tw-rewriting.jar.

The tree-witness rewriting separates the topology of the query from the taxonomy defined by the ontology: the output is a union of CQs (the rewriting over H-complete ABoxes) and a set of rules defining the taxonomy.

LUBM-ex-20

The ontology and queries R1-R5 and Q1-Q6 are taken from http://informatik.uni-bremen.de/~clu/combined.

queryatomstwstw-rewritingss over ABoxes
H-completearbitrary
CQsatomsCQstotal CQs
R1201222
R2301111
R360142323
R4301222
R540122×510
Q18123233,887
62×21×4×23
Q2412212
41
Q360155×36×4×2115,120
Q481254×4×3014,880
84×4×30×30
Q5501430×23690
Q680164×8×23×4×823,552
Q71301122×30×2×30×2×30216,000
Q81331611
Q93411322×2×416

University

The ontologies and queries taken from http://www.cs.ox.ac.uk/projects/requiem.

queryatomsontologyX-ontology
twstw-rewritingss over ABoxestwstw-rewritingss over ABoxes
H-completearbitraryH-completearbitrary
CQsatomsCQstotal CQsCQsatomsCQstotal CQs
R120122201225
R230111101111
R36014440143×412
R430122201255
R540122×5100125×525

Adolena

The ontologies and queries taken from http://www.cs.ox.ac.uk/projects/requiem; note that the OWL files had to be modified to replace the URL prefixes "file:/" with "file:///"; for otherwise, SPARQL queries would not refer to the same symbols.

queryatomsontologyX-ontology
twstw-rewritingss over ABoxestwstw-rewritingss over ABoxes
H-completearbitraryH-completearbitrary
CQsatomsCQstotal CQsCQsatomsCQstotal CQs
A121212527*1212557*
226×2227×16
A23121250*12121,530*
326×2327×16×4
A350152×2×2610401511×16×274,752
A431218224*12183,522*
326×2×8327×16×16
A550156×2×26×262401516×11×27×1676,032

* means that the total number of CQs is smaller than the sum of the numbers of CQs for the two components of the rewriting over H-complete ABoxes (due to CQC subsumption)

Stockexchange

The ontology and queries S1-S5 are taken from http://www.cs.ox.ac.uk/projects/requiem.

queryatomstwstw-rewritingss over ABoxes
H-completearbitrary
CQsatomsCQstotal CQs
S1101166
S2301122
S350122×24
S450122×24
S570132×2×28
S641132×6×336
S75122125
52×2×6

Vicodi

The ontology and queries V1-V5 are taken from http://www.cs.ox.ac.uk/projects/requiem.

queryatomstwstw-rewritingss over ABoxes
H-completearbitrary
CQsatomsCQstotal CQs
V110111515
V230131010
V330133×2472
V430135×37185
V570172×3×530

Path

The ontology and queries P1-P5 are taken from http://www.cs.ox.ac.uk/projects/requiem.

queryatomstwstw-rewritingss over ABoxes
H-completearbitrary
CQsatomsCQstotal CQs
P1112112
11
P2212212
21
P3312312
31
P4412412
41
P5512512
51

 

queryatomsP5 ontologyP5X ontology
twstw-rewritingss over ABoxestwstw-rewritingss over ABoxes
H-completearbitraryH-completearbitrary
CQsatomsCQstotal CQsCQsatomsCQstotal CQs
P1116116161?14
P2224+6111024+61?25*
212?
P3333+4+6111333+4+61?58*
212?
313?
P4442+3+4+6111542+3+4+61?179*
212?
313?
414?
P5551+2+3+4+6111651+2+3+4+61?718*
212?
313?
414?
515?

maintained by Roman Kontchakov