[ copied here and unpacked by danbri; should get originals from Aaron instead
danbri@w3.org ]
[ I've started correcting the .nt versions of 001, 002... ]
Examples from
http://www.w3.org/2000/xp/Group/1/08/29/soap12-part2.html in
RDF/N3 and RDF/N-Triples:
12345
6.789
Of Mans First Disobedience, and the Fruit
Of that Forbidden Tree, whose mortal tast
Brought Death into the World, and all our woe,
http://www.dartmouth.edu/~milton/reading_room/
@prefix xs: .
@prefix rdf: .
@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
.
_:0
.
_:0 "12345" .
_:1 _:3 _:0 .
_:6
.
_:6
.
_:6
"http://www.dartmouth.edu/x~milton/reading_room/" .
_:7 _:6 .
_:4
.
_:4
.
_:4 """
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
.
_:2
.
_:2 "6.789" .
Apple
1.56
Peach
1.48
@prefix : .
( [ a :Order ; :product "Apple" ; :price "1.56" ]
[ a :Order ; :product "Peach" ; :price "1.48" ]
) .
_:3 _:2 .
_:0
.
_:0 "Apple" .
_:0 "1.56" .
_:1 _:3 _:0 .
_:2
.
_:2 "Peach" .
_:2 "1.48" .
- r1c1
- r1c2
- r1c3
- r2c1
- r2c2
@prefix : <#> .
@prefix rdfs: .
@prefix rdf: .
@prefix xs: .
( <#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
_:array-1 .
_:3 _:3 .
_:0 _:1 _:array-1 .
_:1 _:array-2 .
_:6
.
_:6 "r1c3" .
_:6
.
_:7 _:6 .
_:4
.
_:4 "r1c2" .
_:4
.
_:5 _:7 _:4 .
_:8
.
_:8 "r2c1" .
_:8
.
_:9 _:11 _:8 .
_:9
_:array-2 .
_:9 _:9 .
.
_:10
.
_:10 "r2c2" .
_:10
.
_:11 _:10 .
_:array-1
_:3 .
_:array-1
_:array-1 .
_:array-1 _:5 _:2 .
_:array-2
_:9 .
_:array-2
_:array-2 .
_:array-2 _:11 _:8 .
_:2
.
_:2 "r1c1" .
_:2
.
Henry Ford
5th Ave
New York
NY
10010
Apple
1.56
Peach
1.48
@prefix : .
[ 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
.
_:0
"Henry Ford" .
_:0 _:1 .
_:0 _:3 .
_:1 "5th Ave" .
_:1 "New York" .
_:1 "NY" .
_:1 "10010" .
_:4
.
_:4 "Peach" .
_:4 "1.48" .
_:5 _:4 .
_:2
.
_:2 "Apple" .
_:2 "1.56" .
Apple
1.56
Peach
1.48
@prefix : .
[ :purchaseLineItems (
[ a :Order ; :product "Apple" ; :price "1.56" ]
[ a :Order ; :product "Peach" ; :price "1.48" ]
)
] .
_:3
.
_:3 "Peach" .
_:3 "1.48" .
_:0 _:2 .
_:1
.
_:1 "Apple" .
_:1 "1.56" .
_:4 _:3 .
_:2 _:4 _:1 .
--
"Aaron Swartz" | The Semantic Web
|
| i'm working to make it happen