W3C home > Mailing lists > Public > www-rdf-logic@w3.org > May 2001

Re: N3 vs. XML

From: <jos.deroo.jd@belgium.agfa.com>
Date: Sat, 19 May 2001 01:54:26 +0100
To: drew.mcdermott@yale.edu
Cc: www-rdf-logic@w3.org
Message-Id: <OFFD10F7F7.21F26FF2-ON41256A51.0003A536@bayer-ag.com>


[...]
> 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

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:45:38 UTC