Closed Bug 306320 Opened 19 years ago Closed 9 months ago

RDF:parseType="Resource" broken for anonymous resources/blank nodes

Categories

(Core Graveyard :: RDF, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INCOMPLETE

People

(Reporter: axel, Assigned: andrew)

References

()

Details

<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:foo="http://foo/"> <foo:Bar> <rdf:li rdf:parseType="Resource"> <rdf:type rdf:resource="http://foo/Bar"/> </rdf:li> </foo:Bar> </rdf:RDF> gets parsed into _:AAAAsxhsH1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://foo/Bar>. _:AAAAsxhsH1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#li> _:AAAAtxhsH1 . _:AAAAtxhsH1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> . The type of the second blank node is wrong, because it takes the rdf:type as object.
Isn't this another case of the rdf:instanceOf (bug 90566 / bug 15006) stuff cropping up again?
This is fixed by the patch on bug 349969 (which is waiting for a reviewer to come forward, as Pike and Shaver are too busy until after Firefox 2.0 comes out). With the patch: [amil082@bioeng135 bin]$ LD_LIBRARY_PATH=`pwd`:$LD_LIBRARY_PATH ./triplescat file://`pwd`/test.rdf <rdf:#$uSiEx2> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://foo/Bar> . <rdf:#$tSiEx2> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://foo/Bar> . <rdf:#$tSiEx2> <http://www.w3.org/1999/02/22-rdf-syntax-ns#_1> <rdf:#$uSiEx2> . <rdf:#$tSiEx2> <http://www.w3.org/1999/02/22-rdf-syntax-ns#nextVal> "2" .
Status: NEW → ASSIGNED
Depends on: 349969
Assignee: nobody → ak.miller
Status: ASSIGNED → NEW
Status: NEW → ASSIGNED
Product: Core → Core Graveyard
Status: ASSIGNED → RESOLVED
Closed: 9 months ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.