Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions context/data.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
85 changes: 85 additions & 0 deletions notebooks/query_minds_data.ipynb
Original file line number Diff line number Diff line change
@@ -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
}