diff --git a/sphinx/_static/css/custom.css b/sphinx/_static/css/custom.css index a4e8548..c6d2b5d 100644 --- a/sphinx/_static/css/custom.css +++ b/sphinx/_static/css/custom.css @@ -32,3 +32,8 @@ html[data-theme=dark] table.element-table tr:nth-child(odd) td{ html[data-theme=dark] table.element-table tr:nth-child(even) td{ background-color: black; } +/* this fixes darkmode within the json-ld playground iframe +by inverting all colors if darkmode is active */ +html[data-theme="dark"] iframe[src*="json-ld.org/playground"] { + filter: invert(0.9); +} \ No newline at end of file diff --git a/sphinx/example_linked_data_battery_cell_metadata.ipynb b/sphinx/example_linked_data_battery_cell_metadata.ipynb index d4784d3..eb2470c 100644 --- a/sphinx/example_linked_data_battery_cell_metadata.ipynb +++ b/sphinx/example_linked_data_battery_cell_metadata.ipynb @@ -17,7 +17,7 @@ { "cell_type": "markdown", "source": [ - "# Example: Battery Cell Metadata\n", + "# Example: Simple Battery Cell Metadata\n", "\n", "Let's describe an instance of a simple CR2032 coin cell with a capacity defined in a specification sheet from the manufacturer!\n", "\n", @@ -29,7 +29,7 @@ "- How to run a simple query using SPARQL **[Moderate]** \n", "- How to use the ontology to fetch more information from other sources **[Advanced]** \n", "\n", - "A live version of this notebook is available on Google Colab [here](https://colab.research.google.com/drive/19PxdZDPcKda8Ji6Nyzsz-_8KJFgNkmCa?usp=sharing)\n" + "A live version of this notebook is available on Google Colab [here](https://colab.research.google.com/drive/10F5YRAnO5ubY4Ut3uEjv5rLqvr_GRFC5?usp=sharing)\n" ], "metadata": { "id": "1wseTQGaB4x9" @@ -69,7 +69,7 @@ "metadata": { "id": "gohQKEBrF2QP" }, - "execution_count": 18, + "execution_count": 34, "outputs": [] }, { @@ -100,7 +100,7 @@ "metadata": { "id": "wk4sFl_eA2ML" }, - "execution_count": 19, + "execution_count": 35, "outputs": [] }, { @@ -141,24 +141,24 @@ "base_uri": "https://localhost:8080/" }, "id": "zWibLw6NIrrq", - "outputId": "24978463-9827-40cf-f2ce-3e3571716041" + "outputId": "09dfdeb2-3bc8-49c9-d2cb-0803401cf66f" }, - "execution_count": 20, + "execution_count": 36, "outputs": [ { "output_type": "stream", "name": "stdout", "text": [ - "(rdflib.term.BNode('N491d2c676a3c42338d5fc6ebcb269501'), rdflib.term.URIRef('https://schema.org/name'), rdflib.term.Literal('My CR2032 Coin Cell'))\n", - "(rdflib.term.BNode('Naa9fd38d24544ac3a7101338c3355212'), rdflib.term.URIRef('http://www.w3.org/1999/02/22-rdf-syntax-ns#type'), rdflib.term.URIRef('http://emmo.info/emmo#EMMO_18d180e4_5e3e_42f7_820c_e08951223486'))\n", - "(rdflib.term.BNode('N491d2c676a3c42338d5fc6ebcb269501'), rdflib.term.URIRef('http://emmo.info/emmo#EMMO_e1097637_70d2_4895_973f_2396f04fa204'), rdflib.term.BNode('Naa471c53140a4ece8ea782629323d435'))\n", - "(rdflib.term.BNode('N491d2c676a3c42338d5fc6ebcb269501'), rdflib.term.URIRef('https://schema.org/manufacturer'), rdflib.term.URIRef('https://www.wikidata.org/wiki/Q3041255'))\n", - "(rdflib.term.BNode('Naa471c53140a4ece8ea782629323d435'), rdflib.term.URIRef('http://emmo.info/emmo#EMMO_bed1d005_b04e_4a90_94cf_02bc678a8569'), rdflib.term.URIRef('emmo:MilliAmpereHour'))\n", - "(rdflib.term.BNode('N491d2c676a3c42338d5fc6ebcb269501'), rdflib.term.URIRef('http://www.w3.org/1999/02/22-rdf-syntax-ns#type'), rdflib.term.URIRef('http://emmo.info/battery#battery_b61b96ac_f2f4_4b74_82d5_565fe3a2d88b'))\n", - "(rdflib.term.BNode('Naa9fd38d24544ac3a7101338c3355212'), rdflib.term.URIRef('http://emmo.info/emmo#EMMO_faf79f53_749d_40b2_807c_d34244c192f4'), rdflib.term.Literal('230', datatype=rdflib.term.URIRef('http://www.w3.org/2001/XMLSchema#integer')))\n", - "(rdflib.term.BNode('Naa471c53140a4ece8ea782629323d435'), rdflib.term.URIRef('http://www.w3.org/1999/02/22-rdf-syntax-ns#type'), rdflib.term.URIRef('file:///content/NominalCapacity'))\n", - "(rdflib.term.BNode('Naa471c53140a4ece8ea782629323d435'), rdflib.term.URIRef('http://emmo.info/emmo#EMMO_8ef3cd6d_ae58_4a8d_9fc0_ad8f49015cd0'), rdflib.term.BNode('Naa9fd38d24544ac3a7101338c3355212'))\n", - "(rdflib.term.BNode('Naa471c53140a4ece8ea782629323d435'), rdflib.term.URIRef('http://www.w3.org/1999/02/22-rdf-syntax-ns#type'), rdflib.term.URIRef('http://emmo.info/emmo#EMMO_d8aa8e1f_b650_416d_88a0_5118de945456'))\n", + "(rdflib.term.BNode('N0e334dbcbe344cd791c0c0b88375c497'), rdflib.term.URIRef('http://emmo.info/emmo#EMMO_faf79f53_749d_40b2_807c_d34244c192f4'), rdflib.term.Literal('230', datatype=rdflib.term.URIRef('http://www.w3.org/2001/XMLSchema#integer')))\n", + "(rdflib.term.BNode('N60da2e4d15f44eb58cb2133c48842d95'), rdflib.term.URIRef('https://schema.org/manufacturer'), rdflib.term.URIRef('https://www.wikidata.org/wiki/Q3041255'))\n", + "(rdflib.term.BNode('Nd3a2a6d51f994876bf7791d4d9b3dda5'), rdflib.term.URIRef('http://www.w3.org/1999/02/22-rdf-syntax-ns#type'), rdflib.term.URIRef('file:///content/NominalCapacity'))\n", + "(rdflib.term.BNode('Nd3a2a6d51f994876bf7791d4d9b3dda5'), rdflib.term.URIRef('http://emmo.info/emmo#EMMO_bed1d005_b04e_4a90_94cf_02bc678a8569'), rdflib.term.URIRef('http://emmo.info/emmo#MilliAmpereHour'))\n", + "(rdflib.term.BNode('N60da2e4d15f44eb58cb2133c48842d95'), rdflib.term.URIRef('https://schema.org/name'), rdflib.term.Literal('My CR2032 Coin Cell'))\n", + "(rdflib.term.BNode('Nd3a2a6d51f994876bf7791d4d9b3dda5'), rdflib.term.URIRef('http://www.w3.org/1999/02/22-rdf-syntax-ns#type'), rdflib.term.URIRef('http://emmo.info/emmo#EMMO_d8aa8e1f_b650_416d_88a0_5118de945456'))\n", + "(rdflib.term.BNode('Nd3a2a6d51f994876bf7791d4d9b3dda5'), rdflib.term.URIRef('http://emmo.info/emmo#EMMO_8ef3cd6d_ae58_4a8d_9fc0_ad8f49015cd0'), rdflib.term.BNode('N0e334dbcbe344cd791c0c0b88375c497'))\n", + "(rdflib.term.BNode('N60da2e4d15f44eb58cb2133c48842d95'), rdflib.term.URIRef('http://emmo.info/emmo#EMMO_e1097637_70d2_4895_973f_2396f04fa204'), rdflib.term.BNode('Nd3a2a6d51f994876bf7791d4d9b3dda5'))\n", + "(rdflib.term.BNode('N60da2e4d15f44eb58cb2133c48842d95'), rdflib.term.URIRef('http://www.w3.org/1999/02/22-rdf-syntax-ns#type'), rdflib.term.URIRef('http://emmo.info/battery#battery_b61b96ac_f2f4_4b74_82d5_565fe3a2d88b'))\n", + "(rdflib.term.BNode('N0e334dbcbe344cd791c0c0b88375c497'), rdflib.term.URIRef('http://www.w3.org/1999/02/22-rdf-syntax-ns#type'), rdflib.term.URIRef('http://emmo.info/emmo#EMMO_18d180e4_5e3e_42f7_820c_e08951223486'))\n", "(rdflib.term.URIRef('https://www.wikidata.org/wiki/Q3041255'), rdflib.term.URIRef('https://schema.org/name'), rdflib.term.Literal('SINTEF'))\n" ] } @@ -231,9 +231,9 @@ "base_uri": "https://localhost:8080/" }, "id": "6bXHGG4cI-kr", - "outputId": "9687c3f2-fe23-4e67-e072-5912481c1a73" + "outputId": "ddb69b5a-8fd8-4216-f521-8dec92022bad" }, - "execution_count": 21, + "execution_count": 37, "outputs": [ { "output_type": "stream", @@ -291,9 +291,9 @@ "base_uri": "https://localhost:8080/" }, "id": "ntT1Rf_yM6sZ", - "outputId": "6ef4d480-f3a5-4c2c-c9ef-a54ac2fa1fc0" + "outputId": "2dd24edb-94ed-41fa-e4e5-7e2376780dd3" }, - "execution_count": 22, + "execution_count": 38, "outputs": [ { "output_type": "stream", @@ -346,9 +346,9 @@ "base_uri": "https://localhost:8080/" }, "id": "zTBOZAf-dWQQ", - "outputId": "cbc9309c-a718-4188-e049-9ecb8d025da3" + "outputId": "e5ab5940-155a-4847-8c92-2f8154a306db" }, - "execution_count": 23, + "execution_count": 39, "outputs": [ { "output_type": "stream", @@ -397,9 +397,9 @@ "height": 339 }, "id": "T7bkBY0sNqNY", - "outputId": "c006b1b5-ee78-4d87-978e-ba1925667946" + "outputId": "6940b0d9-e644-4dca-c3a7-3bdc58650773" }, - "execution_count": 24, + "execution_count": 40, "outputs": [ { "output_type": "stream", @@ -460,9 +460,9 @@ "base_uri": "https://localhost:8080/" }, "id": "nAAC5bo8FLD6", - "outputId": "5962f7cf-4272-442a-beeb-0106b87ea790" + "outputId": "a6ddbace-7aad-4384-a18c-e76b33c1bbc7" }, - "execution_count": 25, + "execution_count": 41, "outputs": [ { "output_type": "stream", @@ -479,7 +479,7 @@ "metadata": { "id": "T1qUAeCDVNq3" }, - "execution_count": 25, + "execution_count": 41, "outputs": [] } ] diff --git a/sphinx/examples.rst b/sphinx/examples.rst index e628aef..27b80f3 100644 --- a/sphinx/examples.rst +++ b/sphinx/examples.rst @@ -13,9 +13,9 @@ Here are some examples to help you get started. You are free to re-use or modify .. grid-item-card:: :link: example_linked_data_battery_cell_metadata.html - :octicon:`ruby;1em;sd-text-info` Zinc Powder + :octicon:`diff;1em;sd-text-info` Simple Battery Cell Metadata ^^^^^^^^^^^ - A zinc powder material from a manufacturer with properties defined in a specification sheet. + Metadata for a simple CR2032 coin cell, combined with some exercises for working with Linked Data. .. grid-item-card:: :link: example_zinc_electrode.html