- From: Aaron Swartz <aswartz@upclink.com>
- Date: Wed, 21 Feb 2001 23:24:10 -0600
- To: RDF Comments <www-rdf-comments@w3.org>
- CC: <barstow@w3.org>
SiRPAC seems to be overly accepting of RDF. For example, it creates messy
[DATA] triples when there is literal content in a
Description/Bag/li/parseType="Resource":
<rdf:RDF
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:a="http://www.example.org/"
>
<rdf:Description>hi</rdf:Description>
</rdf:RDF>
It seems to do the same thing when it encounters multiple elements as
content:
<rdf:RDF
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:a="http://www.example.org/"
>
<rdf:Description>
<a:creator>
<a:a>q</a:a>
<a:a>b</a:a>
</a:creator>
</rdf:Description>
</rdf:RDF>
In addition, SiRPAC seems to treat null literals as a genids:
<rdf:RDF
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:s="http://example.org/"
>
<rdf:Description>
<s:a></s:a>
</rdf:Description>
</rdf:RDF>
becomes:
online:#genid1 http://purl.org/rss/1.0/link/a online:#genid2
instead of:
online:#genid1 http://purl.org/rss/1.0/link/a ""
SiRPAC also seems to allow element content to override rdf:resource
attributes:
<rdf:RDF
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:a="http://www.example.org/"
>
<rdf:Description>
<a:creator rdf:resource="lala">text</a:creator>
</rdf:Description>
</rdf:RDF>
The same problem happens no matter what is use in the place of "text" --
another element, a description, etc.
Not only that, but SiRPAC doesn't seem to mind if you have normal properties
inside a conainer:
<rdf:RDF
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:a="http://www.example.org/"
>
<rdf:Bag>
<a:a>hello</a:a>
</rdf:Bag>
</rdf:RDF>
The same is true if attributes are used:
<rdf:RDF
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:a="http://www.example.org/"
>
<rdf:Bag a:a="hello" />
</rdf:RDF>
SiRPAC doesn't complain if an Alt is empty:
<rdf:RDF
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:a="http://www.example.org/"
>
<rdf:Alt/>
</rdf:RDF>
SiRPAC should probably complain if an li is used out of context:
<rdf:RDF
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:a="http://www.example.org/"
>
<rdf:Description>
<rdf:li>a</rdf:li>
</rdf:Description>
</rdf:RDF>
That's enough for one night. ;-)
Could you add these to the SiRPAC problems list?
--
Aaron Swartz <me@aaronsw.com>| The Info Network
<http://www.aaronsw.com> | <http://theinfo.org>
AIM: JediOfPi | ICQ: 33158237| the way you want the web to be
Received on Thursday, 22 February 2001 00:24:10 UTC