Web 3.0 ExamplesThis is a featured page

Data stolen liberally from http://www.robertprice.co.uk/robblog/archive/2004/10/What_Is_An_RDF_Triple_.shtml - this page gives an excellent explanation of the data. Only the SPARQL query is mine!

RDF Example:
<foaf:knows>
<foaf:Person>
<foaf:nick>Cal</foaf:nick>
<foaf:name>Cal Henderson</foaf:name> <foaf:mbox_sha1sum>2971b1c2fd1d4f0e8f99c167cd85d522a614b07b</foaf:mbox_sha1sum>
<rdfs:seeAlso rdf:resource="http://www.iamcal.com/foaf.xml"/>
</foaf:Person>
</foaf:knows>

SPARQL Example

This SPARQL query selects the names of all the people I know:
PREFIX table: <http://www.foaf.fake/RH#>

SELECT ?name
FROM <http://www.foaf.fake/RH.rdf>

WHERE { ?element table:name ?name. }

Pulls out Cal Henderson from the above file

Triple Example

1 genid:ARP40722 http://www.w3.org/1999/02/22-rdf-syntax-ns#type http://xmlns.com/foaf/0.1/Person
2 genid:ARP40722 http://xmlns.com/foaf/0.1/nick "Cal"
3 genid:ARP40722 http://xmlns.com/foaf/0.1/name "Cal Henderson"
4 genid:ARP40722 http://xmlns.com/foaf/0.1/mbox_sha1sum "2971b1c2fd1d4f0e8f99c167cd85d522a614b07b"
5 genid:ARP40722 http://www.w3.org/2000/01/rdf-schema#seeAlso http://www.iamcal.com/foaf.xml
6 genid:me http://xmlns.com/foaf/0.1/knows genid:ARP40722



No user avatar
webgoddess
Latest page update: made by webgoddess , Sep 10 2008, 6:43 PM EDT (about this update About This Update webgoddess Edited by webgoddess

21 words added

view changes

- complete history)
Keyword tags: rdf semantic web sparql web 3.0
More Info: links to this page

Anonymous  (Get credit for your thread)


There are no threads for this page.  Be the first to start a new thread.

Related Content

  (what's this?Related ContentThanks to keyword tags, links to related pages and threads are added to the bottom of your pages. Up to 15 links are shown, determined by matching tags and by how recently the content was updated; keeping the most current at the top. Share your feedback on Wetpaint Central.)