TAP: Towards a Web of Data
R.V.Guha
IBM Research, Almaden
guha @ us.ibm.com
|
Rob McCool
KSL, Stanford University
robm @ ksl.stanford.edu
|
Appendix
Here are the SOAP messages associated with the examples of GetData presented in the
paper.
Example: GetData(<Yo-Yo Ma>, birthplace) => <Paris>
Request
<SOAP-ENV:Envelope
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
xmlns:a="http://tap.stanford.edu/2002/05/GetDataSchema"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:tap="http://tap.stanford.edu/data/">
<SOAP-ENV:Body>
<a:GetData>
<rdf:Resource rdf:about="http://tap.stanford.edu/data/MusicianMa,_Yo-Yo"/>
<tap:birthplace/>
</a:GetData>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Response
<SOAP-ENV:Envelope
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:a="http://tap.stanford.edu/2002/05/GetDataSchema"
xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:xsd="http://www.w3.org/1999/XMLSchema"
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
xmlns:tap="http://tap.stanford.edu/data/">
<SOAP-ENV:Body>
<a:Data>
<tap:Musician rdf:ID="http://tap.stanford.edu/data/MusicianMa,_Yo-Yo">
<tap:birthplace>
<tap:City rdf:ID="http://tap.stanford.edu/data/CityParis,_France">
<rdfs:label xml:lang="en">Paris</rdfs:label>
</tap:City>
</tap:birthplace>
</tap:Musician>
</a:Data>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Example: GetData(<Paris>, temperature) => 57 F
Request
<SOAP-ENV:Envelope
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:a="http://tap.stanford.edu/2002/05/GetDataSchema"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:tap="http://tap.stanford.edu/data/">
<SOAP-ENV:Body>
<a:GetData>
<tap:City rdf:about=""http://tap.stanford.edu/data/">CityParis,_France"/>
<tap:temperature/>
</a:GetData>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Response
<SOAP-ENV:Envelope
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:a="http://tap.stanford.edu/2002/05/GetDataSchema"
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:tap="http://tap.stanford.edu/data/">
<SOAP-ENV:Body>
<a:Data>
<tap:City rdf:about="http://tap.stanford.edu/data/CityParis,_France">
<tap:temperature>57 F</tap:temperature>
</tap:City>
</a:Data>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Example: GetData(<Paris>, locatedIn) => <France>
<SOAP-ENV:Envelope
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
xmlns:a="http://tap.stanford.edu/2002/05/GetDataSchema"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:tap="http://tap.stanford.edu/data/">
<SOAP-ENV:Body>
<a:GetData>
<tap:City rdf:resource="http://tap.stanford.edu/data/CityParis,_France"/>
<tap:locatedIn/>
</a:GetData>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Response
<SOAP-ENV:Envelope
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:a="http://tap.stanford.edu/2002/05/GetDataSchema"
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:tap="http://tap.stanford.edu/data/"
xmlns:cdnow="http://localhost:8000/cgi-bin/cdnow.cgi/">
<SOAP-ENV:Body>
<a:Data>
<tap:City rdf:ID="http://tap.stanford.edu/data/CityParis,_France">
<tap:locatedIn>
<tap:Country rdf:ID="http://tap.stanford.edu/data/CountryFrance">
<tap:longFormName>French Republic</tap:longFormName>
<tap:placeLetterCode>FR</tap:placeLetterCode>
<rdfs:label xml:lang="en">France</rdfs:label>
<tap:adjective>French</tap:adjective>
</tap:Country>
</tap:locatedIn>
</tap:City>
</a:Data>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
|