NFDI4Culture / cp4c

Computational Publication: Computational Publishing for Collections - ADA CP Prototype #1 - Nov 22
https://nfdi4culture.github.io/cp4c/
GNU General Public License v3.0
1 stars 1 forks source link

Digital sources (suggestions) #8

Closed mrchristian closed 1 year ago

mrchristian commented 2 years ago

Suggested objects, queries, computes

--

mrchristian commented 2 years ago

Link to issue #1

mrchristian commented 2 years ago

Relies on services:

SimonXIX commented 2 years ago

Great, thanks.

Image: I've updated the code already written in linked_open_data.ipynb to pull the image for Q505 as suggested. That works well if you run the Notebook in Jupyter Labs and then render in Quarto to produce the static page.

Query: One issue I was having with running SPARQL queries against https://query.wbworkshop.tibwiki.io is that I couldn't find the SPARQL endpoint URL. At Wikidata, this is https://query.wikidata.org/bigdata/namespace/wdq/sparql, for example, but I couldn't find the equivalent for the NFDI4Culture Wikibase instance. For now, I've got Python code in the Notebook to pull from Wikidata as a test.

I'll have a look at the others hopefully this week.

mrchristian commented 2 years ago

Hey good one. Yep I was onbly suggesting above as options, and realised you'd already be on it. I'll ask about the endpoint for you.

Fee free to render the Quarto book and push onto GitHub pages - or I can have a go tomorrow AM.

luguenth commented 2 years ago

Hey there, the SPARQL endpoint for wbworkshop should be:

https://query.wbworkshop.tibwiki.io/proxy/wdqs/bigdata/namespace/wdq/sparql

SimonXIX commented 2 years ago

Hey good one. Yep I was onbly suggesting above as options, and realised you'd already be on it. I'll ask about the endpoint for you.

Fee free to render the Quarto book and push onto GitHub pages - or I can have a go tomorrow AM.

Hi Simon. I ran the Jupyter Notebook, rendered the output in Quarto, and pushed to GitHub Pages. I wasn't able to push from home due to the large file size of the image but I'm on campus today and used their more robust bandwidth to push successfully.

mrchristian commented 2 years ago

I think your looking for endpoint here https://query.wbworkshop.tibwiki.io/

mrchristian commented 2 years ago

I'll have play tomorrow, Quart allows multi-format output, as well as display code, hide code, dropdown code display options - on rendering. FYI I change repo name and the Quarto settings need updating. I'll check in tomorrow morning.