1
0
mirror of https://github.com/gsi-upm/sitc synced 2024-11-21 22:12:30 +00:00

update RDF example

This commit is contained in:
J. Fernando Sánchez 2020-02-20 17:36:07 +01:00
parent 2248188219
commit 396a7b17ca

View File

@ -89,7 +89,7 @@
"editable": false, "editable": false,
"nbgrader": { "nbgrader": {
"cell_type": "markdown", "cell_type": "markdown",
"checksum": "5c2cccdf6463262a0f8bc89c64f97fb2", "checksum": "27164b58076ba5ec8929d9652528a1bb",
"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 (in the universe of Marvel)\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 enemy \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",