Overview
I created the following page for publishing RDF data.
https://sukilam-educational-metadata.github.io/
In particular, from the following page, you can search RDF data using SPARQL and Snorql. For Snorql, I am using “Snorql for Japan Search”. Please try the query examples at the bottom of the page.
https://sukilam-educational-metadata.github.io/snorql/
When publishing this page, I obtained persistent identifiers using w3id.org and set up redirects to Snorql, so this is a personal note for future reference.
Preparing the SPARQL Endpoint
I built a SPARQL endpoint using Dydra.
Preparing Snorql
For information about Snorql for Japan Search, please refer to the following.
https://www.kanzaki.com/works/ld/jpsearch/snorql_ldb-about
For downloading Snorql, please refer to the following.
/en/posts/6b7c5484b2f161/#snorqlの設定
For customizing Snorql, please refer to the following.
Preparing the Publication Page
This time, I created a publication page using GitHub Pages. First, I created the following organization account.
https://github.com/sukilam-educational-metadata
Then I created the following repository.
https://github.com/sukilam-educational-metadata/sukilam-educational-metadata.github.io
By enabling GitHub Pages, you can access the publication page from the following URL.
https://sukilam-educational-metadata.github.io/

By also configuring the previously prepared Snorql, you can access Snorql from the following URL.
https://sukilam-educational-metadata.github.io/snorql/

Obtaining Persistent Identifiers with w3id.org
Finally, I will explain how to obtain persistent identifiers using w3id.org. For using w3id.org, I referred to the following.
https://www.jstage.jst.go.jp/article/jkg/68/7/68_361/_pdf
First, fork the following site.
https://github.com/perma-id/w3id.org
Then, I submitted the following pull request.
https://github.com/perma-id/w3id.org/pull/3126/files
By writing the following, when you access https://w3id.org/sukilam-educational-metadata/学年/小6, you are redirected to https://sukilam-educational-metadata.github.io/snorql/?describe=https://w3id.org/sukilam-educational-metadata/学年/小6.
(Note: There is much room for improvement in this configuration.)
Discussion
The advantage of using Snorql (SPARQL endpoint) for redirects is that pages can be dynamically generated for each URI. On the other hand, this creates a dependency on the SPARQL endpoint (Dydra in this case). Therefore, for more stable long-term operation, preparing static pages for each URI may be more appropriate.
It seems best to choose the appropriate method depending on the use case and operational environment.
Summary
I hope this serves as a useful reference for publishing RDF and LOD.