Re: N3 vs. XML

[...]
> My question is: when the primer says "There is a problem with the XML
> serialization" of contexts, what does it mean?

I don't know, but if we take sensor.n3 being

####################################################################
@prefix log: <http://www.w3.org/2000/10/swap/log#>.
@prefix sensor: <foo:sensor#>.
@prefix math: <foo:math#>.
@prefix control: <foo:control#>.

  {sensor:thermostat  math:greaterThan "30"} log:implies
{control:furnace control:setTo "1"}.
####################################################################

then "python cwm.py sensor.n3 -rdf" produces

<!-- Processed by Id: cwm.py,v 1.43 2001/05/15 21:50:35 timbl Exp -->
<!--     using base file:/n3/sensor.n3-->#   Begining output.

<rdf:RDF xmlns:sensor="foo:sensor#"
    xmlns:control="foo:control#"
    xmlns="http://www.w3.org/2000/10/swap/log#"
    xmlns:math="foo:math#"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">

    <rdf:Description>
        <rdf:is rdf:parseType="Quote">
            <rdf:Description rdf:about="foo:sensor#thermostat">
                <math:greaterThan>30</math:greaterThan>
            </rdf:Description>
        </rdf:is>
        <implies rdf:parseType="Quote">
            <rdf:Description rdf:about="foo:control#furnace">
                <control:setTo>1</control:setTo>
            </rdf:Description>
        </implies>
    </rdf:Description>
</rdf:RDF>

--
Jos De Roo, AGFA http://www.agfa.com/w3c/jdroo/

Received on Friday, 18 May 2001 19:54:47 UTC