Re: RDF/XML Syntax - reifying using XML attributes only

Dave Beckett wrote:
[...]

I thought the spec was pretty clear on this: propAttrs
can only express literal values.

sax2rdf.py (the RDF parser used in cwm) definitely disagrees
with the interpretation below...

>   ------------------------------------------------------------------------
> <?xml version="1.0"?>
> <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
>   <!-- Test reified statement using attributes only -->
>   <rdf:Description rdf:type="http://www.w3.org/1999/02/22-rdf-syntax-ns#Statement"
>                    rdf:subject="http://example.com/resource"
>                    rdf:predicate="http://example.com/predicate"
>                    rdf:object="literal" />
> </rdf:RDF>

copied that to reif-addr.rdf ...

>   ------------------------------------------------------------------------
> _:id1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/1999/02/22-rdf-syntax-ns#Statement> .
> _:id1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://example.com/resource> .
> _:id1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://example.com/predicate> .
> _:id1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> "literal" .

2000/10/swap/test$ python2 ../cwm.py --rdf reif-attr.rdf --triples
 
    _:0     <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate>
"http://example.com/predicate" .
 
    _:0     <http://www.w3.org/1999/02/22-rdf-syntax-ns#object>
"literal" .
 
    _:0     <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> "
http://www.w3.org/1999/02/22-rdf-syntax-ns#Statement" .
 
    _:0     <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject>
"http://example.com/resource" .


Since there's evident divergence of interpretation/implementation,
please do add it to the test suite/issues list.

-- 
Dan Connolly, W3C http://www.w3.org/People/Connolly/
office: tel:+1-913-491-0501
mobile: mailto:connolly+pager@w3.org?subject=pls%20call%20+1-...

Received on Tuesday, 21 August 2001 11:29:41 UTC