This project helps you:
- Describe your Knowledge Graph (KG) using our metadata schema
- Validate your KG metadata using our SHACL shapes
- Publish your KG and make it discoverable by Google (instructions below)
The file "data/wikidata_hcls_metadata.ttl" in this repo is an example of specification conformance metadata generated for Wikidata KG. run the SHACL validation to check conformance of Wikidata metadata to proposed specification.
prepare the local environment
python -m venv .venv
activate the local environment
source .venv/bin/activate
install the python packages
python -m pip install -r requirements.txt
python validate.py -i data/wikidata_hcls_metadata.ttl -s shacl/full-hcls_shacl.ttl
Make your dataset discoverable via Google Dataset Search using the steps below.
Use the provided JSON-LD context/KG specification to define your KG metadata.
Embed your metadata in JSON-LD format inside a <script> block, see example index.hml for food health claim kg here https://github.com/MaastrichtU-IDS/food-claims-kg/blob/gh-pages/index.html
-
Place
index.htmlin your KG's GitHub repository. -
Go to Settings → Pages.
-
Under Source, choose:
- Branch:
gh-pages
- Branch:
-
Visit your public page at:
https://<username>.github.io/<repo-name>/Example:
\url{https://maastrichtu-ids.github.io/food-claims-kg/}
Visit Google Rich Results Test, enter the published URL, and verify structured data compatibility.
- Go to https://search.google.com/search-console
- Add the URL as a new property.
- Complete the verification process.
- Request indexing
- Optionally, submit a
sitemap.xmlfile to improve crawlability