From 9332fd6f80b9a69fd42704a47bd373252d018d8c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=2E=20Fernando=20S=C3=A1nchez?= Date: Thu, 21 Feb 2019 12:29:44 +0100 Subject: [PATCH] Fix typos. Delete date from copyright notice --- lod/01_SPARQL_Introduction.ipynb | 145 ++++------------------------ lod/02_SPARQL_Custom_Endpoint.ipynb | 6 +- 2 files changed, 22 insertions(+), 129 deletions(-) diff --git a/lod/01_SPARQL_Introduction.ipynb b/lod/01_SPARQL_Introduction.ipynb index 3a05c2e..b478c62 100755 --- a/lod/01_SPARQL_Introduction.ipynb +++ b/lod/01_SPARQL_Introduction.ipynb @@ -27,18 +27,7 @@ }, { "cell_type": "markdown", - "metadata": { - "deletable": false, - "editable": false, - "nbgrader": { - "checksum": "6a78a7c2cbcad6ec014af585a381f1ff", - "grade": false, - "grade_id": "cell-0cd673883ee592d1", - "locked": true, - "schema_version": 1, - "solution": false - } - }, + "metadata": {}, "source": [ "## Introduction to Linked Open Data\n", "\n", @@ -48,23 +37,12 @@ "This is the first in a series of notebooks about SPARQL, which consists of:\n", "\n", "* This notebook, which introduces basic concepts using a small public dataset.\n", - "* [A notebook with queries to a custom dataset](02_SPARQL_Custom_Endpoint.ipynb), which links to the RDF exercises and it is out of the scope of this laboratory. You can consult it if you are interested.\n" + "* [A notebook with queries to a custom dataset](02_SPARQL_Custom_Endpoint.ipynb), which links to the RDF exercises and it is out of the scope of this course. You can consult it if you are interested." ] }, { "cell_type": "markdown", - "metadata": { - "deletable": false, - "editable": false, - "nbgrader": { - "checksum": "bc0ca2e21254707344c60f895cb204b4", - "grade": false, - "grade_id": "cell-10264483046abcc4", - "locked": true, - "schema_version": 1, - "solution": false - } - }, + "metadata": {}, "source": [ "## Objectives\n", "\n", @@ -161,7 +139,7 @@ }, { "cell_type": "code", - "execution_count": 1, + "execution_count": null, "metadata": { "deletable": false, "editable": false, @@ -174,17 +152,7 @@ "solution": false } }, - "outputs": [ - { - "data": { - "application/javascript": [ - "IPython.CodeCell.options_default.highlight_modes['magic_sparql'] = {'reg':[/^%%sparql/]};" - ] - }, - "metadata": {}, - "output_type": "display_data" - } - ], + "outputs": [], "source": [ "from helpers import sparql, solution, show_photos" ] @@ -340,7 +308,7 @@ }, { "cell_type": "code", - "execution_count": 2, + "execution_count": null, "metadata": { "deletable": false, "editable": false, @@ -353,21 +321,7 @@ "solution": false } }, - "outputs": [ - { - "data": { - "text/html": [ - "
entitytype
http://learningsparql.com/ns/musician/RaymondBrownhttp://learningsparql.com/ns/schema/Musician
http://learningsparql.com/ns/musician/PaulMcCartneyhttp://learningsparql.com/ns/schema/Musician
http://learningsparql.com/ns/musician/PeteBesthttp://learningsparql.com/ns/schema/Musician
http://learningsparql.com/ns/musician/GeorgeHarrisonhttp://learningsparql.com/ns/schema/Musician
http://learningsparql.com/ns/musician/JohnLennonhttp://learningsparql.com/ns/schema/Musician
http://learningsparql.com/ns/musician/RingoStarrhttp://learningsparql.com/ns/schema/Musician
http://learningsparql.com/ns/musician/KeithMoonhttp://learningsparql.com/ns/schema/Musician
http://learningsparql.com/ns/musician/TonySheridanhttp://learningsparql.com/ns/schema/Musician
http://learningsparql.com/ns/musician/GeorgeMartinhttp://learningsparql.com/ns/schema/Musician
http://learningsparql.com/ns/musician/DennisMcConnellhttp://learningsparql.com/ns/schema/Musician
" - ], - "text/plain": [ - "" - ] - }, - "execution_count": 2, - "metadata": {}, - "output_type": "execute_result" - } - ], + "outputs": [], "source": [ "%%sparql http://fuseki.cluster.gsi.dit.upm.es/sitc/\n", "\n", @@ -398,7 +352,7 @@ }, { "cell_type": "code", - "execution_count": 4, + "execution_count": null, "metadata": {}, "outputs": [], "source": [ @@ -410,18 +364,18 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "Now, use the same concepts to write a query that gets the **list of entities and their properties**. You can remove DISTICT and observe what happens. \n", + "Now, use the same concepts to write a query that gets the **list of entities (subjects) and their properties (predicates)**.\n", "\n", - "**Hint**: review the previous query and see how to use the variable ?prop." + "**Hint**: review the previous query. In there, we fixed a property (`a`, i.e. `rdfs:type`) and used a variable for the objects. Now we are insterested properties, regardless of the value (object)." ] }, { "cell_type": "code", - "execution_count": 5, + "execution_count": null, "metadata": { "deletable": false, "nbgrader": { - "checksum": "3414fee2b6ccfc90a87a62697b35fbda", + "checksum": "69e016b0224f410f03f6217ac30c03a8", "grade": false, "grade_id": "cell-6e904d692b5facad", "locked": false, @@ -429,25 +383,11 @@ "solution": true } }, - "outputs": [ - { - "data": { - "text/html": [ - "
entityprop
" - ], - "text/plain": [ - "" - ] - }, - "execution_count": 5, - "metadata": {}, - "output_type": "execute_result" - } - ], + "outputs": [], "source": [ "%%sparql http://fuseki.cluster.gsi.dit.upm.es/sitc/\n", "\n", - "SELECT DISTINCT ?entity ?prop\n", + "SELECT ?entity ?prop\n", "WHERE {\n", "# YOUR ANSWER HERE\n", "}\n", @@ -625,23 +565,9 @@ }, { "cell_type": "code", - "execution_count": 7, + "execution_count": null, "metadata": {}, - "outputs": [ - { - "data": { - "text/html": [ - "
prop
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
http://www.w3.org/2000/01/rdf-schema#label
" - ], - "text/plain": [ - "" - ] - }, - "execution_count": 7, - "metadata": {}, - "output_type": "execute_result" - } - ], + "outputs": [], "source": [ "%%sparql http://fuseki.cluster.gsi.dit.upm.es/sitc/\n", "\n", @@ -937,7 +863,7 @@ }, { "cell_type": "code", - "execution_count": 11, + "execution_count": null, "metadata": { "deletable": false, "nbgrader": { @@ -949,21 +875,7 @@ "solution": true } }, - "outputs": [ - { - "data": { - "text/html": [ - "
musician
Alan Branscombe
Alan Civil
Alan Dalziel
Alan Holmes
Alan Loveday
Alex Nifosi
Alf Bicknell
Alf Reece
Alfred Waters
Allan Grant
Allen Ford
Amrit Gajjar
Andrew McGee
Andy White
Anil Bhagwat
Anna Joshi
Art Ellefson
Ashish Khan
Barrie Cameron
Basil Tschaikov
Bernard Davis
Bernard George
Bernard Miller
Bert Courtley
Bill Jackman
Bill Monro
Bill Povey
Billy Preston
Bram Martin
Brian Jones
Buddhadev Kansara
Chris Thomas
Christopher Taylor
Clifford Seville
Colin Hanton
Cyril MacArthur
D Bradley
D Griffiths
Danny Moss
David Glyde
David Mason
David Mason and three others
David McCallum
David Sanderman
David Smith
David Wolfsthal
Dennis McConnell
Dennis Vigay
Dennis Walton
Derek Collins
Derek Jacobs
Derek Simpson
Derek Watkins
Dick Morgan
Don Honeywill
Don Lang
Donald Weekes
Duncan Campbell
Eddie Kramer
Eddie Thornton
Eldon Fox
Elgar Howarth
Eric Bowie
Eric Clapton
Eric Morecambe
Erich Gruenberg
Ernest Scott
Ernie Wise
Evan Watkins
F Dachtler
Francie Schwartz
Francisco Gabarro
Frank Clarke
Frank Reidy
Fred Lucas
Freddy Clayton
Frederick Alexander
G Mallen
Gary Leeds and more
Gayleen Pease
Geoff Emerick
George Harrison
George Martin
Gordon Lewin
Gordon Pearce
Graham Nash
Granville Jones
Greg Bowen
Gwynne Edwards
Hans Geiger
Hariprasad Chaurasia/SR Kenkare
Harold Jackson
Harry Klein
Harry Spain
Henry Datyner
Henry MacKenzie
Henry Myerscough
Hunter Davies
Ian Hamer
Ingrid Thomas
Irene King
J Fraser
J Power
J Smith
Jack Brymer
Jack Ellory
Jack Emblow
Jack Fallon
Jack Greene
Jack Holmes
Jack Richards
Jack Rothstein
Jackie Lomax
James W Buck
Jane Asher
Jeff Lynne
Jill Utting
Jim Chester
John Burden
John 'Duff' Lowe
John Hall
John Jezzard
John Lee
John Lennon
John Marston
John McCartney
John Meek
John O'Neill
John Ronayne
John Sharpe
John Underwood
John Wilbraham
Johnnie Scott
José Luis Garcia
Julien Gaillard
June Day
Jurgen Hess
Keith Cummings
Keith Moon
Keith Richards
Ken Barrie
Kenneth Essex
Kenny Powell
Leo Birnbaum
Leon Calvert
Les Condon
Les Maddox
Linda McCartney
Lionel Bentley
Lionel Ross
Lizzie Bravo
Lou Sofier
Louis Stevens
Mahapurush Misra
Mal Evans
Manny Winters
Marianne Faithfull
Marijke Koger
Michael Barnes
Mick Jagger
Mike McCartney
Mike Redway
Mike Vickers
Mike Winfield
Monty Montgomery
Morris Miller
N Fawcett
Natwar Soni
Neil Aspinall
Neil Sanders
Nicky Hopkins
Norman Jones
Norman Lederman
Norman Smith
Other musicians
P Goody
Pat Whitmore
Patrick Halling
Pattie Harrison
Paul Harvey
Paul McCartney
Paul Scherman
Peggie Allen
Personnel unknown; instruments include
Pete Best
Peter Beavan
Peter Coe
Peter Willison
Ralph Elman
Ray Swinfield
Raymond Brown
Raymond Newman
Raymond Premru
Reginald Kilbey
Rex Morris
Richard Taylor
Rij Ram Desad
Ringo Starr
Robert Burns
Roger Lord
Ronald Chamberlain
Ronald Thomas
Ronnie Hughes
Ronnie Ross
Ronnie Scott
Ross Gilmour
Roy Copestake
Sharad Ghosh/Hanuman Jadev
Sheila Bromberg
Sidney Sax
Stanley Reynolds
Stanley Roderick
Stanley Woods
Stephen Shingles
Stuart Sutcliffe
Sylvia King
T Moore
Ted Barker
Terry Doran
Terry Weil
Tom (surname unknown)
Tony Fisher
Tony Gilbert
Tony Randall
Tony Sheridan
Tony Tunstall
Trevor Williams
Tristan Fry
Uncredited
Unknown
Unknown musician
Val Stockwell
Various others
Victor Spinetti
Wendy Horan
Yoko Ono
including Maureen Starkey
unknown
" - ], - "text/plain": [ - "" - ] - }, - "execution_count": 11, - "metadata": {}, - "output_type": "execute_result" - } - ], + "outputs": [], "source": [ "%%sparql http://fuseki.cluster.gsi.dit.upm.es/sitc/\n", "\n", @@ -1908,7 +1820,7 @@ "## Licence\n", "The notebook is freely licensed under under the [Creative Commons Attribution Share-Alike license](https://creativecommons.org/licenses/by/2.0/). \n", "\n", - "© 2018 Universidad Politécnica de Madrid." + "© Universidad Politécnica de Madrid." ] } ], @@ -1928,24 +1840,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.5.5" - }, - "latex_envs": { - "LaTeX_envs_menu_present": true, - "autocomplete": true, - "bibliofile": "biblio.bib", - "cite_by": "apalike", - "current_citInitial": 1, - "eqLabelWithNumbers": true, - "eqNumInitial": 1, - "hotkeys": { - "equation": "Ctrl-E", - "itemize": "Ctrl-I" - }, - "labels_anchors": false, - "latex_user_defs": false, - "report_style_numbering": false, - "user_envs_cfg": false + "version": "3.7.2" } }, "nbformat": 4, diff --git a/lod/02_SPARQL_Custom_Endpoint.ipynb b/lod/02_SPARQL_Custom_Endpoint.ipynb index a4726d0..3e95636 100644 --- a/lod/02_SPARQL_Custom_Endpoint.ipynb +++ b/lod/02_SPARQL_Custom_Endpoint.ipynb @@ -222,9 +222,7 @@ "source": [ "Your task is to design five queries to answer the questions in the description, and run each of them in at least three graphs, other than the `synthetic` graph.\n", "\n", - "To design the queries, you can either use what you know about the schema.org vocabularies, or explore subjects, predicates and objects in each of the graphs.\n", - "\n", - "You will get a better understanding if you follow the exploratory path.\n", + "To design the queries, what you know about the schema.org vocabularies, or explore subjects, predicates and objects in each of the graphs.\n", "\n", "Here's an example to get the entities and their types in a graph:" ] @@ -431,7 +429,7 @@ "## Licence\n", "The notebook is freely licensed under under the [Creative Commons Attribution Share-Alike license](https://creativecommons.org/licenses/by/2.0/). \n", "\n", - "© 2018 Universidad Politécnica de Madrid." + "© Universidad Politécnica de Madrid." ] } ],