====== RDF ====== ===== Before the lab ===== See [[.:rdf1]]. ===== Lab instructions 2 ===== ==== semantic vocabularies ==== Predefined properties for describing some domain are called semantic vocabularies. - Have a look at [[http://www.w3schools.com/rdf/rdf_dublin.asp|rdf_dublin]] for describing documents. * create a dublin core file for your favourite book - Read about the [[http://www.foaf-project.org/original-intro| Friend of a Friend]] project * create your own foaf file as directed on the page [[http://wiki.foaf-project.org/w/FoafExamples| Foaf Examples]] * add at least ten friends of yours - give at least information about their e-mail addresses, homepages and age. * for start you can use [[http://www.ldodds.com/foaf/foaf-a-matic| foaf-a-matic]] to create minimalFoafDocument ==== SPARQL ==== === Reading === * [[http://jena.sourceforge.net/ARQ/Tutorial/ | SPARQL tutorial]] * [[http://www.w3.org/2004/Talks/17Dec-sparql/intro/all.html | Introduction To RDF Query With SPARQL ]] * [[http://www.w3.org/TR/rdf-sparql-query/| Documentation from w3.org ]] === Basics === - Go to the [[http://hyperdata.org/sparql/demo/| sparql demo page]], analyze and run existing examples - Run [[http://www.ldodds.com/projects/twinkle/| Twinkle ]] (**on charon: type ''twinkle'' in a terminal**) and execute queries on your foaf file to retrieve : * friends who have name and e-mail defined * friends who have name and e-mail defined and optional homepage * friends who have name and e-mail defined and optional homepage, sorted by name descending * friends whose name starts with 'K' * friends who are older than 18 years old * friends whose name starts with 'K' or are older than 18 years old, make search caseinsensitive * friends having e-mails on student.agh.edu.pl server * name of friends, who have homepage or e-mail on student.agh.edu.pl server === DBpedia=== - Analyze and run example queries from [[http://wiki.dbpedia.org/OnlineAccess| here ]] - Ask DbPedia about: * Universites in Krakow * Polish football players ===== Komentarze ===== Z braku lepszego miejsca tutaj studenci wpisują komentarze natury ogólnej do tego lab. 8-)