- From: Aaron Swartz <aswartz@upclink.com>
- Date: Fri, 7 Sep 2001 15:47:38 -0500
- To: www-archive@w3.org
- Cc: danbri@w3.org
Examples from
http://www.w3.org/2000/xp/Group/1/08/29/soap12-part2.html in
RDF/N3 and RDF/N-Triples:
<enc:Array xmlns:enc="http://www.w3.org/2001/06/soap-encoding"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
enc:arrayType="xs:anyType[4]">
<thing xsi:type="xs:int">12345</thing>
<thing xsi:type="xs:decimal">6.789</thing>
<thing xsi:type="xs:string">
Of Mans First Disobedience, and the Fruit
Of that Forbidden Tree, whose mortal tast
Brought Death into the World, and all our woe,
</thing>
<thing xsi:type="xs:anyURI">
http://www.dartmouth.edu/~milton/reading_room/
</thing>
</enc:Array>
@prefix xs: <http://www.w3.org/2001/XMLSchema> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix : <#> .
( [ a :Thing ; a xs:int ; rdf:value "12345" ]
[ a :Thing ; a xs:decimal ; rdf:value "6.789" ]
[ a :Thing ; a xs:string ; rdf:value """
Of Mans First Disobedience, and the Fruit
Of that Forbidden Tree, whose mortal tast
Brought Death into the World, and all our woe,
""" ]
[ a :Think ; a xs:anyURI ; rdf:value
"http://www.dartmouth.edu/~milton/reading_room/" ]
) .
_:3 _:5 _:2 .
_:0 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type>
<file:/Users/aaronsw/Projects/cwm/soap.n3#Thing> .
_:0 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type>
<http://www.w3.org/2001/XMLSchemaint> .
_:0 <http://www.w3.org/1999/02/22-rdf-syntax-ns#value> "12345" .
_:1 _:3 _:0 .
_:6 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type>
<file:/Users/aaronsw/Projects/cwm/soap.n3#Think> .
_:6 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type>
<http://www.w3.org/2001/XMLSchemaanyURI> .
_:6 <http://www.w3.org/1999/02/22-rdf-syntax-ns#value>
"http://www.dartmouth.edu/x~milton/reading_room/" .
_:7 <http://www.daml.org/2001/03/daml+oil#nil> _:6 .
_:4 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type>
<file:/Users/aaronsw/Projects/cwm/soap.n3#Thing> .
_:4 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type>
<http://www.w3.org/2001/XMLSchemastring> .
_:4 <http://www.w3.org/1999/02/22-rdf-syntax-ns#value> """
Of Mans First Disobedience, and the Fruit
Of that Forbidden Tree, whose mortal tast
Brought Death into the World, and all our woe,
""" .
_:5 _:7 _:4 .
_:2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type>
<file:/Users/aaronsw/Projects/cwm/soap.n3#Thing> .
_:2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type>
<http://www.w3.org/2001/XMLSchemadecimal> .
_:2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#value> "6.789" .
<enc:Array xmlns:enc="http://www.w3.org/2001/06/soap-encoding"
xmlns:xyz="http://example.org/2001/06/Orders"
enc:arrayType="xyz:Order[2]">
<Order>
<Product>Apple</Product>
<Price>1.56</Price>
</Order>
<Order>
<Product>Peach</Product>
<Price>1.48</Price>
</Order>
</enc:Array>
@prefix : <http://example.org/2001/06/Orders#> .
( [ a :Order ; :product "Apple" ; :price "1.56" ]
[ a :Order ; :product "Peach" ; :price "1.48" ]
) .
_:3 <http://www.daml.org/2001/03/daml+oil#nil> _:2 .
_:0 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type>
<http://example.org/2001/06/Orders#Order> .
_:0 <http://example.org/2001/06/Orders#product> "Apple" .
_:0 <http://example.org/2001/06/Orders#price> "1.56" .
_:1 _:3 _:0 .
_:2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type>
<http://example.org/2001/06/Orders#Order> .
_:2 <http://example.org/2001/06/Orders#product> "Peach" .
_:2 <http://example.org/2001/06/Orders#price> "1.48" .
<enc:Array xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:enc="http://www.w3.org/2001/06/soap-encoding"
enc:arrayType="xs:string[][2]" >
<item href="#array-1"/>
<item href="#array-2"/>
</enc:Array>
<enc:Array xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:enc="http://www.w3.org/2001/06/soap-encoding"
id="array-1"
enc:arrayType="xs:string[2]">
<item>r1c1</item>
<item>r1c2</item>
<item>r1c3</item>
</enc:Array>
<enc:Array xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:enc="http://www.w3.org/2001/06/soap-encoding"
id="array-2"
enc:arrayType="xs:string[2]">
<item>r2c1</item>
<item>r2c2</item>
</enc:Array>
@prefix : <#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xs: <http://www.w3.org/2001/XMLSchema> .
( <#array-1> <#array-2> ) .
<#array-1> = ( [ a :Item ; rdf:value "r1c1" ]
[ a :Item ; rdf:value "r1c2" ]
[ a :Item ; rdf:value "r1c3" ]
)
<#array-2> = ( [ a :Item ; rdf:value "r2c1" ]
[ a :Item ; rdf:value "r2c2" ]
)
:Item rdfs:subClassOf xs:string .
_:3 _:5 _:2 .
_:3 <http://www.daml.org/2001/03/daml+oil#equivalentTo>
_:array-1 .
_:3 <http://www.daml.org/2001/03/daml+oil#equivalentTo> _:3 .
_:0 _:1 _:array-1 .
_:1 <http://www.daml.org/2001/03/daml+oil#nil> _:array-2 .
_:6 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type>
<file:/Users/aaronsw/Projects/cwm/soap.n3#Item> .
_:6 <http://www.w3.org/1999/02/22-rdf-syntax-ns#value> "r1c3" .
_:6 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type>
<http://www.w3.org/2001/XMLSchemastring> .
_:7 <http://www.daml.org/2001/03/daml+oil#nil> _:6 .
_:4 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type>
<file:/Users/aaronsw/Projects/cwm/soap.n3#Item> .
_:4 <http://www.w3.org/1999/02/22-rdf-syntax-ns#value> "r1c2" .
_:4 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type>
<http://www.w3.org/2001/XMLSchemastring> .
_:5 _:7 _:4 .
_:8 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type>
<file:/Users/aaronsw/Projects/cwm/soap.n3#Item> .
_:8 <http://www.w3.org/1999/02/22-rdf-syntax-ns#value> "r2c1" .
_:8 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type>
<http://www.w3.org/2001/XMLSchemastring> .
_:9 _:11 _:8 .
_:9 <http://www.daml.org/2001/03/daml+oil#equivalentTo>
_:array-2 .
_:9 <http://www.daml.org/2001/03/daml+oil#equivalentTo> _:9 .
<file:/Users/aaronsw/Projects/cwm/soap.n3#Item>
<http://www.w3.org/2000/01/rdf-schema#subClassOf>
<http://www.w3.org/2001/XMLSchemastring> .
_:10 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type>
<file:/Users/aaronsw/Projects/cwm/soap.n3#Item> .
_:10 <http://www.w3.org/1999/02/22-rdf-syntax-ns#value> "r2c2" .
_:10 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type>
<http://www.w3.org/2001/XMLSchemastring> .
_:11 <http://www.daml.org/2001/03/daml+oil#nil> _:10 .
_:array-1
<http://www.daml.org/2001/03/daml+oil#equivalentTo> _:3 .
_:array-1
<http://www.daml.org/2001/03/daml+oil#equivalentTo> _:array-1 .
_:array-1 _:5 _:2 .
_:array-2
<http://www.daml.org/2001/03/daml+oil#equivalentTo> _:9 .
_:array-2
<http://www.daml.org/2001/03/daml+oil#equivalentTo> _:array-2 .
_:array-2 _:11 _:8 .
_:2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type>
<file:/Users/aaronsw/Projects/cwm/soap.n3#Item> .
_:2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#value> "r1c1" .
_:2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type>
<http://www.w3.org/2001/XMLSchemastring> .
<xyz:PurchaseOrder xmlns:xyz="http://example.org/2001/06/Orders" >
<CustomerName>Henry Ford</CustomerName>
<ShipTo>
<Street>5th Ave</Street>
<City>New York</City>
<State>NY</State>
<Zip>10010</Zip>
</ShipTo>
<PurchaseLineItems
xmlns:enc="http://www.w3.org/2001/06/soap-encoding"
enc:arrayType="xyz:Order[2]">
<Order>
<Product>Apple</Product>
<Price>1.56</Price>
</Order>
<Order>
<Product>Peach</Product>
<Price>1.48</Price>
</Order>
</PurchaseLineItems>
</xyz:PurchaseOrder>
@prefix : <http://example.org/2001/06/Orders#> .
[ a :PurchaseOrder ;
:customerName "Henry Ford" ;
:shipTo [
:street "5th Ave" ;
:city "New York" ;
:state "NY" ;
:zip "10010" ;
] ;
:purchaseLineItems (
[ a :Order ; :product "Apple" ; :price "1.56" ]
[ a :Order ; :product "Peach" ; :price "1.48" ]
)
] .
_:3 _:5 _:2 .
_:0 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type>
<http://example.org/2001/06/Orders#PurchaseOrder> .
_:0 <http://example.org/2001/06/Orders#customerName>
"Henry Ford" .
_:0 <http://example.org/2001/06/Orders#shipTo> _:1 .
_:0 <http://example.org/2001/06/Orders#purchaseLineItems> _:3 .
_:1 <http://example.org/2001/06/Orders#street> "5th Ave" .
_:1 <http://example.org/2001/06/Orders#city> "New York" .
_:1 <http://example.org/2001/06/Orders#state> "NY" .
_:1 <http://example.org/2001/06/Orders#zip> "10010" .
_:4 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type>
<http://example.org/2001/06/Orders#Order> .
_:4 <http://example.org/2001/06/Orders#product> "Peach" .
_:4 <http://example.org/2001/06/Orders#price> "1.48" .
_:5 <http://www.daml.org/2001/03/daml+oil#nil> _:4 .
_:2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type>
<http://example.org/2001/06/Orders#Order> .
_:2 <http://example.org/2001/06/Orders#product> "Apple" .
_:2 <http://example.org/2001/06/Orders#price> "1.56" .
<PurchaseLineItems>
<Order>
<Product>Apple</Product>
<Price>1.56</Price>
</Order>
<Order>
<Product>Peach</Product>
<Price>1.48</Price>
</Order>
</PurchaseLineItems>
@prefix : <http://example.org/2001/06/Orders#> .
[ :purchaseLineItems (
[ a :Order ; :product "Apple" ; :price "1.56" ]
[ a :Order ; :product "Peach" ; :price "1.48" ]
)
] .
_:3 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type>
<http://example.org/2001/06/Orders#Order> .
_:3 <http://example.org/2001/06/Orders#product> "Peach" .
_:3 <http://example.org/2001/06/Orders#price> "1.48" .
_:0 <http://example.org/2001/06/Orders#purchaseLineItems> _:2 .
_:1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type>
<http://example.org/2001/06/Orders#Order> .
_:1 <http://example.org/2001/06/Orders#product> "Apple" .
_:1 <http://example.org/2001/06/Orders#price> "1.56" .
_:4 <http://www.daml.org/2001/03/daml+oil#nil> _:3 .
_:2 _:4 _:1 .
--
"Aaron Swartz" | The Semantic Web
<mailto:me@aaronsw.com> | <http://logicerror.com/semanticWeb-long>
<http://www.aaronsw.com/> | i'm working to make it happen
Received on Friday, 7 September 2001 16:47:44 UTC