W3C home > Mailing lists > Public > public-cwm-bugs@w3.org > November 2004

weirdness with literal or formula predicates

From: Yosi Scharf <syosi@mit.edu>
Date: Fri, 26 Nov 2004 11:38:04 -0500
Message-ID: <41A75BEC.8020504@mit.edu>
To: public-cwm-bugs@w3.org

As far as I know, neither rdf nor n3 allows for literals as predicates. 
It simply has no meaning.

however,
echo ':a "hello" :c .' | cwm
returns with no error.

Further,
 echo ':a "hello" :c .' | cwm --n3 --rdf

returns the meaningless

<!-- Processed by Id: cwm.py,v 1.165 2004/11/19 01:58:39 syosi Exp -->
<!--     using base 
file:/home/syosi/cvs-trunk/WWW/2000/10/swap/test/syntax/-->


<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">

    <rdf:Description rdf:about="#a">
        <hello xmlns=""
            rdf:resource="#c"/>
    </rdf:Description>
</rdf:RDF>

a bug in the rdf serializer.

Further,
 echo '{:a :b :c} {:e :f :g} :c . ' | cwm

returns    {
        :a     :b :c .

        }     <.run-1101486963.472887p16600#_g4> :c .

Which is not throwing an error, merely exposing some of cwm's internals


Yosi
Received on Friday, 26 November 2004 16:38:37 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 19:52:00 UTC