- From: Brian McBride <bwm@hplb.hpl.hp.com>
- Date: Thu, 14 Jun 2001 11:39:52 +0100
- To: rdf core <w3c-rdfcore-wg@w3.org>
- Message-ID: <3B289478.7409F902@hplb.hpl.hp.com>
I have done a batch of test cases (attached) for these issues. Brian
<!-- Issue: rdf-containers-syntax-vs-schema
Test: error01
$Header$
rdf:li is not allowed as as an attribute
-->
<?xml version="1.0"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:foo="http://foo/">
<foo:bar rdf:li="1"/>
</rdf:RDF>
_;bag <http://www.w3.org/1999/02/22-rdf-syntax-ns#type>
<http://www.w3.org/1999/02/22-rdf-syntax-ns#Bag> .
_:bag <http://www.w3.org/1999/02/22-rdf-syntax-ns#_1> "1" .
_:bag <http://www.w3.org/1999/02/22-rdf-syntax-ns#_2> "2" .
<!-- Issue: rdf-containers-syntax-vs-schema
Test: 01
$Header$
Simple container
-->
<?xml version="1.0"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Bag>
<rdf:li>1</rdf:li>
<rdf:li>2</rdf:li>
</rdf:Bag>
</rdf:RDF>
_:bag <http://www.w3.org/1999/02/22-rdf-syntax-ns#type>
<http://foo/Bar> .
_:bag <http://www.w3.org/1999/02/22-rdf-syntax-ns#_1> "_1" .
_:bag <http://www.w3.org/1999/02/22-rdf-syntax-ns#_1> "1" .
_:bag <http://www.w3.org/1999/02/22-rdf-syntax-ns#_3> "_3" .
_:bag <http://www.w3.org/1999/02/22-rdf-syntax-ns#_2> "2" .
<!-- Issue: rdf-containers-syntax-vs-schema
Test: 02
$Header$
rdf:li is unaffected by other rdf:_nnn properties
Whether this represents a legal collection of triples
depends on the definition of foo:Bar. If foo:Bar is
subclass of container then it is illegal. A parser
is not required to process rdf schema information
and is thus not required to validate such constraints.
-->
<?xml version="1.0"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:foo+"http://foo/">
<foo:Bar>
<rdf:_1>_1</rdf:li>
<rdf:li>1</rdf:li>
<rdf:_3>_3</rdf:li>
<rdf:li>2</rdf:li>
</foo:Bar>
</foo:Bar>
_:bar <http://www.w3.org/1999/02/22-rdf-syntax-ns#type>
<http://foo/Bar> .
_:bar <http://www.w3.org/1999/02/22-rdf-syntax-ns#_1> "1" .
_:bar <http://www.w3.org/1999/02/22-rdf-syntax-ns#_2> "2" .
<!-- Issue: rdf-containers-syntax-vs-schema
Test: 03
$Header$
rdf:li elements can exist in any description element
-->
<?xml version="1.0"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:foo="http://foo/">
<foo:Bar>
<rdf:li>1</rdf:li>
<rdf:li>2</rdf:li>
</foo:Bar>
</rdf:RDF>
_:bar <http://www.w3.org/1999/02/22-rdf-syntax-ns#type>
<http://foo/Bar> .
_:bar <http://www.w3.org/1999/02/22-rdf-syntax-ns#_1> "1" .
<http://www.w3.org/2000/10/rdf-tests/rdf-containers-syntax-vs-schema/test04.rdf#e1>
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type>
<http://www.w3.org/1999/02/22-rdf-syntax-ns#Statement> .
<http://www.w3.org/2000/10/rdf-tests/rdf-containers-syntax-vs-schema/test04.rdf#e1>
<http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> _:bar .
<http://www.w3.org/2000/10/rdf-tests/rdf-containers-syntax-vs-schema/test04.rdf#e1>
<http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate>
<http://www.w3.org/1999/02/22-rdf-syntax-ns#_1> .
<http://www.w3.org/2000/10/rdf-tests/rdf-containers-syntax-vs-schema/test04.rdf#e1>
<http://www.w3.org/1999/02/22-rdf-syntax-ns#object> "1" .
_:bar <http://www.w3.org/1999/02/22-rdf-syntax-ns#_2> "2" .
_:bar <http://www.w3.org/1999/02/22-rdf-syntax-ns#_3> _:res .
_:res <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://foo/Bar> .
_:bar <http://www.w3.org/1999/02/22-rdf-syntax-ns#_4>
<http://www.w3.org/2000/10/rdf-tests/rdf-containers-syntax-vs-schema/test04.rdf#e4> .
<http://www.w3.org/2000/10/rdf-tests/rdf-containers-syntax-vs-schema/test04.rdf#e4>
<http://foo/bar> "foobar" .
<!-- Issue: rdf-containers-syntax-vs-schema
Test: 04
$Header$
rdf:li elements match any of the property element productions
-->
<?xml version="1.0"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:foo="http://foo/">
<foo:Bar>
<rdf:li rdf:ID="e1">1</rdf:li>
<rdf:li rdf:parseType="Literal">2</rdf:li>
<rdf:li rdf:parseType="Resource">
<rdf:type rdf:resource="http://foo/Bar"/>
<rdf:li>
<rdf:li rdf:ID="e4" foo:bar="foobar"/>
</foo:bar>
</rdf:RDF>
_:e1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type>
<http://www.w3.org/1999/02/22-rdf-syntax-ns#_1> .
_:e2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type>
<http://www.w3.org/1999/02/22-rdf-syntax-ns#_2> .
<!-- Issue: rdf-containers-syntax-vs-schema
Test: test05
$Header$
rdf:li elements as typed nodes - a bizarre case
but handled regularly
-->
<?xml version="1.0"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:foo="http://foo/">
<rdf:li/>
<rdf:li/>
</rdf:RDF>
<http://www.w3.org/2000/10/rdf-tests/rdf-containers-syntax-vs-schema/test06.rdf#e1>
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type>
<http://www.w3.org/1999/02/22-rdf-syntax-ns#Seq> .
<http://www.w3.org/2000/10/rdf-tests/rdf-containers-syntax-vs-schema/test06.rdf#e1>
<http://www.w3.org/1999/02/22-rdf-syntax-ns#_3> "3" .
<http://www.w3.org/2000/10/rdf-tests/rdf-containers-syntax-vs-schema/test06.rdf#e1>
<http://www.w3.org/1999/02/22-rdf-syntax-ns#value> "foobar" .
<http://www.w3.org/2000/10/rdf-tests/rdf-containers-syntax-vs-schema/test06.rdf#e2>
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type>
<http://www.w3.org/1999/02/22-rdf-syntax-ns#Alt> .
<http://www.w3.org/2000/10/rdf-tests/rdf-containers-syntax-vs-schema/test06.rdf#e2>
<http://www.w3.org/1999/02/22-rdf-syntax-ns#_2> "2" .
<http://www.w3.org/2000/10/rdf-tests/rdf-containers-syntax-vs-schema/test06.rdf#e2>
<http://www.w3.org/1999/02/22-rdf-syntax-ns#value> "foobar" .
<http://www.w3.org/2000/10/rdf-tests/rdf-containers-syntax-vs-schema/test06.rdf#e2>
<http://www.w3.org/1999/02/22-rdf-syntax-ns#value> "barfoo" .
_:bag <http://www.w3.org/1999/02/22-rdf-syntax-ns#type>
<http://www.w3.org/1999/02/22-rdf-syntax-ns#Bag> .
<http://www.w3.org/2000/10/rdf-tests/rdf-containers-syntax-vs-schema/test06.rdf#e3>
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type>
<http://www.w3.org/1999/02/22-rdf-syntax-ns#Bag> .
<http://www.w3.org/2000/10/rdf-tests/rdf-containers-syntax-vs-schema/test06.rdf#e3>
<http://www.w3.org/1999/02/22-rdf-syntax-ns#_1> _:stmt1 .
_:stmt1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type>
<http://www.w3.org/1999/02/22-rdf-syntax-ns#Statement> .
_:stmt1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> _:bag .
_:stmt1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate>
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type> .
_:stmt1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object>
<http://www.w3.org/1999/02/22-rdf-syntax-ns#Bag> .
<!-- Issue: rdf-containers-syntax-vs-schema
Test: test06
$Header$
containers match the typed node production
-->
<?xml version="1.0"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:foo="http://foo/">
<rdf:Seq rdf:ID="e1" rdf:_3="3" rdf:value="foobar"/>
<rdf:Alt rdf:about="#e2" rdf:_2="2" rdf:value="foobar">
<rdf:value="barfoo"/>
</rdf:Alt>
<rdf:Bag rdf:bagID="e3"/>
</rdf:RDF>
_:d1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#_1> _:d2 . _:d2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#_1> "1" . _:d2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#_2> "2" . _:d1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#_2> "2" .
<!-- Issue: rdf-containers-syntax-vs-schema
Test: test07
$Header$
rdf:li processing within each element is independent
-->
<?xml version="1.0"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:foo="http://foo/">
<rdf:Desciption>
<rdf:li>
<rdf:Description>
<rdf:li>1</rdf:li>
<rdf:li>2</rdf:li>
<rdf:Description>
</rdf:li>
<rdf:li>2<rdf:li>
</rdf:Description>
</rdf:RDF>
Received on Thursday, 14 June 2001 06:41:35 UTC