weirdness with literal or formula predicates

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