IRC channel #wod-pd in irc.freenode.net

Turtle Hacking Session

We are going to create some data and POST it to an RDF store

tools

How to write Turtle

Basic

Just triples with full-stops:

<http://example.com/Person/1> <http://xmlns.com/foaf/knows><http://example.com/Person/2> .

<http://example.com/Person/1>  <http://xmlns.com/foaf/0.1/name> ”Arnold Clark” .

Syntactic Sugar

    @prefix foaf:<http://xmlns.com/foaf/0.1/> .

    <http://example.com/Person/1> a foaf:Person ;
                                        foaf:name ”Arnold Clarke” ;
                                        foaf:nick ”arnieC”, ”DarkPrincess6969” .

A sample foaf Profile

    @prefix rdf:<http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
    @prefix foaf:<http://xmlns.com/foaf/0.1/> .
    @prefix owl:<http://www.w3.org/2002/07/owl#> .
    @prefix people:<http://api.talis.com/stores/wod-pd-sandbox/items/People/> .
    @prefix org:<http://api.talis.com/stores/wod-pd-sandbox/items/Organisations/> .
    @prefix conf:<http://api.talis.com/stores/wod-pd-sandbox/items/vocab/conf/> .
    @prefix veg:<http://www.mindswap.org/2003/vegetarian.owl#> .

    <http://api.talis.com/stores/wod-pd-sandbox/items/wod-pd-conference> 
                                    a conf:Conference ;
                                    foaf:name "Web Of Data Practitioners Days"
                                    foaf:homepage <http://webofdata.info/> .
    people:JoeBrown
                    a foaf:Person, veg:Ovo-LactoVegetarian;
                    foaf:name "Joe Brown" ;
                    foaf:knows people:JaneGreen , people:AndreasH , people:MartinBuhl ;
                    foaf:nick "JoeB" ;
                    foaf:gender "Male" ;
                    foaf:hasOnlineAccount <http://twitter.com/joeB>, <http://last.fm/user/joeB> ;
                    foaf:img <http://example.com/joeb.jpg> ;
                    foaf:homepage <http://example.com/joeB.html> ;
                    foaf:topic_interest <http://dbpedia.org/resource/Semantic_Web>, <http://dbpedia.org/resource/Web>
                    owl:sameAs <http://dbtune.org/last-fm/joeB> ;
                    conf:attended <http://api.talis.com/stores/wod-pd-sandbox/items/wod-pd-conference> .

    org:MadeUpCompany a foaf:Organisation ;
                        foaf:name "Made-Up Company" ;
                        foaf:homepage <http://example.com/madeUpCompany.html> ;
                        foaf:member people:JoeBrown .

SPARQL Hacking Session

Things to try:

  1. DESCRIBE Yourself
  2. DESCRIBE resources related to you .
  3. CONSTRUCT an RDF graph consisting of your description, and the names of the people you know .
  4. Find people with the same foaf:topic_interest as you .
  5. if you have <myURI> owl:sameAs <myURI2> in your description, CONSTRUCT an RDF Graph attaching all the properties of myURI2 to myURI
  6. Find people that foaf:know you, but that you don’t foaf:know (yet!)

References