- From: Henry Story <henry.story@bblfish.net>
- Date: Wed, 30 Mar 2005 16:23:50 +0200
- To: 'SWIG' <semantic-web@w3.org>
I wrote the N3 below
On 29 Mar 2005, at 15:22, Henry Story wrote:
> [ a :Entry;
>   :alternative [ owl:sameAs <http://bblfish.net/blog/page5.html#42>;
>                  arch:representation [
>                   				   :type "text/html";  # note [3]
>                                    :lang  "en";
>                                    :length "450"
>                                   ]
>                 ]
> ].
to represent the following graph
>
> _e1--is-a-> <Entry>
>  |--alternative-> <http://bblfish.net/blog/page5.html#42>
>                   |--representation-->_r
>                                       |--type--> "text/html"
>                                       |--lang--> "en"
>                                       |-length-> 450
Perhaps it would have been clearer to use the '=' sign?
----------8<-------------------------------------------
@prefix : <http://example.com/atom/> .
@prefix arch: <http://sw.nokia.com/WebArch-1/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
[ a :Entry;
   :alternative [ = <http://bblfish.net/blog/page5.html#42>;
                  arch:representation [
                                  :type "text/html";  # note [3]
                                    :lang  "en";
                                    :length "450"
                                   ]
                 ]
].
----------8<-------------------------------------------
Which seems to come out ok using cwm.py
----------8<-------------------------------------------
hjs@bblfish:0$ cwm.py --n3 tmp.n3 --rdf
<!-- Processed by Id: cwm.py,v 1.164 2004/10/28 17:41:59 timbl Exp -->
<!--     using base file:/Users/hjs/tmp.n3-->
<rdf:RDF xmlns="http://example.com/atom/"
     xmlns:arch="http://sw.nokia.com/WebArch-1/"
     xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
     <rdf:Description rdf:about="http://bblfish.net/blog/page5.html#42">
         <arch:representation rdf:parseType="Resource">
             <lang>en</lang>
             <length>450</length>
             <type>text/html</type>
         </arch:representation>
     </rdf:Description>
     <rdf:Description>
         <rdf:type rdf:resource="http://example.com/atom/Entry"/>
         <alternative 
rdf:resource="http://bblfish.net/blog/page5.html#42"/>
     </rdf:Description>
</rdf:RDF>
----------8<-------------------------------------------
Henry Story
Received on Wednesday, 30 March 2005 14:23:54 UTC