Using nodeID from blank nodes in cwm

Hi,

Is there any reason why cwm doesn't use rdf:nodeID to identify blank
nodes in its RDF/XML output?
http://www.w3.org/TR/rdf-syntax-grammar/#section-Syntax-blank-nodes

Test case:"""
@prefix : <http://example.org/> .
 
[:state :Active] .
""" (taken from another report
http://lists.w3.org/Archives/Public/www-rdf-interest/2003Jan/0029.html)

Current output (using toXML.py v1.12, llyn.py v1.96) of 
" python2.2 /var/tmp/WWW/2000/10/swap/cwm.py bnodes.n3 --rdf
--bySubject"
"""
<!-- Processed by Id: cwm.py,v 1.144 2003/09/14 20:20:20 timbl Exp -->
<!--     using base file:/home/dom/data/2003/10/bnodes.n3-->
<rdf:RDF xmlns="http://www.w3.org/2000/10/swap/log#"
    xmlns:log="http://www.w3.org/2000/10/swap/log#"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
 
    <rdf:Description rdf:about="#_g0">
        <state xmlns="http://example.org/"
            rdf:resource="http://example.org/Active"/>
    </rdf:Description>
</rdf:RDF>
"""

where I would have expected <rdf:Description rdf:nodeId="g0"> for
instance.

Conversly, it doesn't seem that cwm parses rdf:nodeID as identifier of
nodes; see the n3 conversion of the following rdf file:
"""
<rdf:RDF xmlns="http://www.example.org/foo#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
 <rdf:Description rdf:nodeID="foo">
   <bar>baz</bar>
 </rdf:Description>
 <rdf:Description rdf:about="http://www.example.org/bNode">
  <baz rdf:nodeId="foo"/>
 </rdf:Description>
 </rdf:RDF>
"""
->
"""
    [      :bar "baz";
             rdf:nodeID "foo" ].
    <http://www.example.org/bNode>     :baz "" .
"""

Thanks,

Dom
-- 
Dominique Hazaël-Massieux - http://www.w3.org/People/Dom/
W3C/ERCIM
mailto:dom@w3.org

Received on Friday, 17 October 2003 11:41:29 UTC