{ "cells": [ { "cell_type": "markdown", "id": "cd3a682b-8538-49f9-88d2-f124125e06ab", "metadata": {}, "source": [ "# Query HDF metadata with SPARQL\n", "\n", "Metadata in form of JSON-LD can be queried using SPARQL: " ] }, { "cell_type": "code", "execution_count": 3, "id": "095506ba-475e-49b5-bf24-47e4780fad06", "metadata": {}, "outputs": [], "source": [ "import rdflib\n", "from ontolutils import SSNO, PIVMETA\n", "\n", "import h5rdmtoolbox as h5tbx\n", "from h5rdmtoolbox import jsonld" ] }, { "cell_type": "markdown", "id": "b16ad4a3-323c-4492-bae0-9a4cb6b20913", "metadata": {}, "source": [ "Example file:" ] }, { "cell_type": "code", "execution_count": 4, "id": "005a9671-2940-4745-ad7c-57acb5e7e405", "metadata": {}, "outputs": [ { "data": { "text/html": [ "
\n", "