Additional Tests for the GRDDL Library
STATUS:
These tests are offered as additional tests
for testing GRDDL implementations, and
as regression tests when modifying the GRDDL Library
transforms.
They were developed
as part of the development of the
GRDDL Library,
testing functionality additional to that tested by the
approved
libary test in the
GRDDL Test Cases.
However, they missed the cut-line for the official GRDDL test cases,
and
have not been formally approved by the WG.
Jeremy Carroll
$Revision: 1.3 $ of $Date: 2007/08/09 10:47:28 $
The aboutTests transformation
is intended to be applied to this document.
Test missing from GRDDL Test Cases
- Embedded RDF using two
nested relative xml:base:
XHTML + MathML + SVG
The following tests use the working draft
An
XHTML +
MathML +
SVG Profile
. This work has been superceded by the
Compound Document by Reference Framework
, and it is believed that the same issues of
interaction between the html:base
element,
and xml:base
attributes applies.
More glean-profile tests
The following tests are for the use of
glean-profile,
with a profile that has multiple URLs.
-
a profile document:
with four different retrieval URLs
-
with profile <prof>:
-
with profile <profile>:
-
with profile <prof.html>:
-
with profile <profile.html>:
xml-attributes tests
xml:lang from xml-attributes
The following tests are for the use of
xml-attributes,
concerning language.
-
an html doc using mixed lang and xml:lang:
mixing these attributes may give surprising results
-
an html doc using lang:
-
an html doc using xml:lang:
result is very similar to before
-
an html doc using consistent lang and xml:lang:
result is very similar to before
-
an xml doc using mixed lang and xml:lang:
lang attributes are ignored
-
an xml doc using lang:
lang attributes are ignored
-
an xml doc using xml:lang:
result is the same as for the correspond XHTML document
-
an xml doc using consistent lang and xml:lang:
result is the same as for the correspond XHTML document
xml:base from xml-attributes
The following tests are for the use of
xml-attributes,
concerning base (and to a lesser extent language).
-
a simplifed TriX doc, with absolute xml:base's:
converted to reified triples
-
a simplifed TriX doc, with relative xml:base's:
converted to reified triples
-
a simplifed TriX doc, with absolute xml:base's:
converted to RDF graph
-
a simplifed TriX doc, with relative xml:base's:
converted to RDF graph.
-
a simplifed TriX doc, with different relative xml:base's:
converted to RDF graph.
-
a simplifed TriX doc, with yet more relative xml:base's:
converted to RDF graph.
Informative Library Tests
Note: while these tests are labelled as informative,
that does not mean that the other tests are approved
as normative. Merely that these tests show behaviour
that is outside a strict reading of the GRDDL Specification.
The following tests all exercise limitations
in
xml-attributes.
In these tests, it terminates prematurely, to indicate
that it does not fully support the nesting of relative xml:base values.
Since the behaviour
of a GRDDL aware agent after the premature termination
of a transform is not defined by the GRDDL Specification,
these tests show possible behaviour of such an agent,
but such behaviour is not required.
-
SVG in HTML: xml:bases on root and inside SVG:
This test has input that is not quite valid according to
An
XHTML +
MathML +
SVG Profile
.
-
SVG in HTML: with html base and xml:bases on root element and inside SVG:
This test has input that is not quite valid according to
An
XHTML +
MathML +
SVG Profile
.
-
a simplifed TriX doc, with relative xml:base's:
this one is too hard for the xml-attributes
module.