1
0
mirror of https://github.com/gsi-upm/sitc synced 2025-01-08 04:01:27 +00:00

Compare commits

...

2 Commits

Author SHA1 Message Date
J. Fernando Sánchez
fd5aa4a1fd fix typo 2020-02-20 17:38:02 +01:00
J. Fernando Sánchez
396a7b17ca update RDF example 2020-02-20 17:36:07 +01:00

View File

@ -89,7 +89,7 @@
"editable": false, "editable": false,
"nbgrader": { "nbgrader": {
"cell_type": "markdown", "cell_type": "markdown",
"checksum": "5c2cccdf6463262a0f8bc89c64f97fb2", "checksum": "753edf07d500cc7f9cc9c5a4c0a1348e",
"grade": false, "grade": false,
"grade_id": "cell-d8db3c16cee92ac1", "grade_id": "cell-d8db3c16cee92ac1",
"locked": true, "locked": true,
@ -143,7 +143,15 @@
"\n", "\n",
"In the exercises, we will be using turtle notation, because it is very readable.\n", "In the exercises, we will be using turtle notation, because it is very readable.\n",
"\n", "\n",
"Here's an example of document in Turtle, taken from the Turtle specification:\n", "For instance, turtle allows us to re-use parts of a previous triple to avoid repetition.\n",
"Our previous example would look like this:\n",
"\n",
"```turtle\n",
"<http://example.org/Timmy> <http://example.org/hasDog> <http://example.org/Tobby> ;\n",
" <http://example.org/age> 7\n",
"```\n",
"\n",
"Here's another example of document in Turtle, taken from the Turtle specification:\n",
"\n", "\n",
"```turtle\n", "```turtle\n",
"@base <http://example.org/> .\n", "@base <http://example.org/> .\n",
@ -152,15 +160,13 @@
"@prefix foaf: <http://xmlns.com/foaf/0.1/> .\n", "@prefix foaf: <http://xmlns.com/foaf/0.1/> .\n",
"@prefix rel: <http://www.perceive.net/schemas/relationship/> .\n", "@prefix rel: <http://www.perceive.net/schemas/relationship/> .\n",
"\n", "\n",
"<#green-goblin>\n", "<#green-goblin> a foaf:Person ; # Green Goblin is a person\n",
" rel:enemyOf <#spiderman> ;\n", " foaf:name \"Green Goblin\" ;\n",
" a foaf:Person ; # in the context of the Marvel universe\n", " rel:enemyOf <#spiderman> . # Green Goblin is one of Spiderman's enemies \n",
" foaf:name \"Green Goblin\" .\n",
"\n", "\n",
"<#spiderman>\n", "<#spiderman> a foaf:Person ; # Spiderman is also a person\n",
" rel:enemyOf <#green-goblin> ;\n", " foaf:name \"Spiderman\", \"Человек-паук\"@ru . # Spiderman's name in Russian is Человек-паук\n",
" a foaf:Person ;\n", " rel:enemyOf <#green-goblin> ; \n",
" foaf:name \"Spiderman\", \"Человек-паук\"@ru .\n",
"```\n", "```\n",
"\n", "\n",
"\n", "\n",