Commit 2e5fa265 authored by Pietro Abate's avatar Pietro Abate
Browse files

[r2004-01-08 12:59:02 by cmiachon] type and sample data for the Use Case "TREE"

Original author: cmiachon
Date: 2004-01-08 12:59:02+00:00
parent 78c803c7
type Book = <book> [Title Author+ Section+]
type Title = <title> [PCDATA]
type Author = <author>[PCDATA]
type Section = <section id =? String difficulty =? String> [Title ( P | Figure | Section)* ]
type P = <p>[PCDATA]
type Figure = <figure width=String height=String> [Title Image]
type Image =<image source=String>[];;
(* include "tests/cql/TREE/type-TREE.cd";; *)
let book : Book =
<book>[
<title>['Data on the Web']
<author>['Serge Abiteboul']
<author>['Peter Buneman']
<author>['Dan Suciu']
<section id="intro" difficulty="easy" >[
<title>['Introduction']
<p>['Text ... ']
<section>[
<title>['Audience']
<p>['Text ... ']
]
<section>[
<title>['Web Data and the Two Cultures']
<p>['Text ... ']
<figure height="400" width="400">[
<title>['Traditional client/server architecture']
<image source="csarch.gif">[]
]
<p>['Text ... ']
]
]
<section id="syntax" difficulty="medium" >[
<title>['A Syntax For Data']
<p>['Text ... ']
<figure height="200" width="500">[
<title>['Graph representations of structures']
<image source="graphs.gif">[]
]
<p>['Text ... ']
<section>[
<title>['Base Types']
<p>['Text ... ']
]
<section>[
<title>['Representing Relational Databases']
<p>['Text ... ']
<figure height="250" width="400">[
<title>['Examples of Relations']
<image source="relations.gif">[]
]
]
<section>[
<title>['Representing Object Databases']
<p>['Text ... ']
]
]
];;
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