diff --git a/context/data.json b/context/data.json index 2cda2392..10aa3577 100644 --- a/context/data.json +++ b/context/data.json @@ -1149,8 +1149,10 @@ "sh": "http://www.w3.org/ns/shacl#", "shsh": "http://www.w3.org/ns/shacl-shacl#", "size": { - "@id": "schema:size" - }, + "@id": "schema:size", + "@type": "xsd:integer" + } + "skos": "http://www.w3.org/2004/02/skos/core#", "sku": { "@id": "schema:sku" diff --git a/notebooks/query_minds_data.ipynb b/notebooks/query_minds_data.ipynb new file mode 100644 index 00000000..9ad9bcde --- /dev/null +++ b/notebooks/query_minds_data.ipynb @@ -0,0 +1,85 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "id": "dd530794", + "metadata": {}, + "source": [ + "# Querying MINDS Data with SPARQL (Mock)\n", + "\n", + "This notebook demonstrates how to query MINDS data using Python.\n", + "For now, it uses a small mock dataset to show the workflow.\n", + "When a public SPARQL endpoint is available, replace the mock\n", + "data with the actual query results.\n" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "id": "513c09b0", + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + " neuron size\n", + "0 Neuron_1 120\n", + "1 Neuron_2 150\n", + "2 Neuron_3 100\n" + ] + } + ], + "source": [ + "import pandas as pd\n", + "\n", + "# Mock dataset for demonstration\n", + "data = [\n", + " {\"neuron\": \"Neuron_1\", \"size\": 120},\n", + " {\"neuron\": \"Neuron_2\", \"size\": 150},\n", + " {\"neuron\": \"Neuron_3\", \"size\": 100},\n", + "]\n", + "\n", + "# Convert to DataFrame and display\n", + "df = pd.DataFrame(data)\n", + "print(df)\n" + ] + }, + { + "cell_type": "markdown", + "id": "51954529", + "metadata": {}, + "source": [ + "## How to replace with real SPARQL endpoint\n", + "\n", + "When the MINDS SPARQL endpoint is available:\n", + "\n", + "1. Install `SPARQLWrapper`:\n", + "\n", + "```python\n", + "!python -m pip install SPARQLWrapper\n" + ] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 3 (ipykernel)", + "language": "python", + "name": "python3" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 3 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython3", + "version": "3.14.2" + } + }, + "nbformat": 4, + "nbformat_minor": 5 +}