- From: Pierre-Antoine CHAMPIN <champin@cpe.fr>
- Date: Fri, 20 Aug 1999 13:05:05 +0000
- To: ML RDF-comment <www-rdf-comments@w3.org>, Sergey Melnik <melnik@db.stanford.edu>
- Message-ID: <37BD5281.9BE80AD0@cpe.fr>
There's a strange thing about list items in SiRPAC.
In the attached file, I wrote :
<rdf:Bag rdf:ID="B01">
<rdf:li rdf:resource="#foo1" />
<rdf:li rdf:resource="foo2" />
</rdf:Bag>
with resources foo1 & foo2 defined in the same file.
Which line is right ?
In my opinion, the first is, the second is not.
But in SiRPAC, both are handled in quite a strange way.
I get the triples :
B01 -> _1 -> #foo1 (?!...)
B01 -> _2 -> file:///home/pa/rdf/tmp.bag.rdf#foo2
So for SiRPAC, the second LI construction IS right,
and the first is not...
What do you guys think of it ?
Actually, I keep thinking it's a bug in SiRPAC,
since somewhere (in method valid(), to be precise)
"#foo1" is resolved to "file:///home/pa/rdf/tmp.bag.rdf#foo1"
but valid() doesn't correct the 'resource' attribute -
it only adds the resolved name as a target,
which is obviously not sufficient.
So I corrected it by adding :
String sResource = e.getAttribute (RDFMS, "resource");
if (sResource != null) {
if (sResource.startsWith ("#"))
sResource = sResource.substring(1);
Element e2 = (Element)lookforNode(sResource);
if (e2 != null) {
//-> ADDED by PA
e.resource(e2.name());
//-> end ADDED by PA
e.addTarget (e2);
}
}
and I did the same with about (before that) and aboutEach (after that)
- just in case...
then both triples point to the right resource.
I raised a question a few weeks ago, but got no answer.
Can anybody from the W3C (or anybody aware, anyway)
tell me if SiRPAC is still maintained ? how about the bugfixes
published in this list ?
Pierre-Antoine
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE rdf:RDF [
<!ENTITY rdf 'http://www.w3.org/1999/02/22-rdf-syntax-ns#'>
<!ENTITY rdfs 'http://www.w3.org/TR/WD-rdf-schema#'>
<!--ENTITY rdfs 'http://www.w3.org/TR/1999/PR-rdf-schema-19990303#'-->
]>
<rdf:RDF xml:lang="en"
xmlns:rdf="&rdf;"
xmlns:rdfs="&rdfs;">
<rdfs:Class rdf:ID="Foo"/>
<Foo rdf:ID="foo1"/>
<Foo rdf:ID="foo2"/>
<rdf:Bag rdf:ID="B01">
<rdf:li rdf:resource="#foo1" />
<rdf:li rdf:resource="foo2" />
</rdf:Bag>
<rdf:Description rdf:aboutEach="BO1">
<rdfs:comment>COMMENT</rdfs:comment>
</rdf:Description>
</rdf:RDF>
Received on Friday, 20 August 1999 06:57:35 UTC