- From: Manu Sporny <msporny@digitalbazaar.com>
- Date: Thu, 29 May 2008 00:01:27 -0400
- To: RDFa mailing list <public-rdf-in-xhtml-tf@w3.org>
Just a quick question to those that are implementing - for TC#78, I just want to make sure that other implementations are doing the same things as mine... I'm getting the same triple generated twice per the Syntax processing rules: -------------------------------------------------------------------------- @prefix foaf: <http://xmlns.com/foaf/0.1/> . _:bnode0 <http://xmlns.com/foaf/0.1/name> "Ivan Herman" . <http://www.example.org/#somebody> <------------------------ ONCE <http://xmlns.com/foaf/0.1/knows> _:bnode0 . _:bnode0 <http://xmlns.com/foaf/0.1/mailbox> <mailto:ivan@w3.org> . <http://www.example.org/#somebody> <------------------------ TWICE <http://xmlns.com/foaf/0.1/knows> _:bnode0 . _:bnode1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> . _:bnode1 <http://xmlns.com/foaf/0.1/name> "Mark Birbeck" . <http://www.example.org/#somebody> <http://xmlns.com/foaf/0.1/knows> _:bnode1 . --------------------------------------------------------------------------- I'm unsure if this is a bug, or an issue with the Syntax document... Is anybody else seeing this double-generation of the same triple? The first time it's generated is from step #11: // 11. If the [skip element] flag is 'false', and either: the // previous step resulted in a 'true' flag, or [new subject] was // set to a non-null value, then any [incomplete triple]s within // the current context should be completed: after processing: <p property="foaf:name">Ivan Herman</p> The second time it's generated is from step #11, after processing: <p rel="foaf:mailbox" resource="mailto:ivan@w3.org">mailto:ivan@w3.org</p> This happens because [new subject] is set to a non-null value in both cases... so, are we supposed to generate two identical triples and let the RDF graph merge the two identical nodes or is there something wrong with my code? -- manu -- Manu Sporny President/CEO - Digital Bazaar, Inc. blog: DB Launches Medical Record Sales Service with Shepherd Medical http://blog.digitalbazaar.com/2008/02/24/health2trade/
Received on Thursday, 29 May 2008 04:02:07 UTC