Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Data export of a glossary #43

Open
mrchristian opened this issue Aug 16, 2024 · 1 comment
Open

Data export of a glossary #43

mrchristian opened this issue Aug 16, 2024 · 1 comment
Assignees
Labels

Comments

@mrchristian
Copy link
Contributor

At present how could we show a data export of a glossary, say as; RDF, JSON, XML or something?

@whitecryst
Copy link

  1. Every semantic mediawiki query can produce csv or json file instead of visualize a table (i propose this way)
  2. we could install the wikibase export extension to export wikibase data to csv.
  3. one can use the API playground page to query data manually using semantic mediawiki syntax (thats what we use in the python notebooks)

i created an example at https://climatekg.semanticclimate.net/index.php?title=Test

The page content looks like this:
( replace [[P18::Sandbox]] with the vocabular you want to export. we could also provide a form to select the vocab

{{#ask:
[[P1::Term]]
[[has subobject::+]]
[[P18::Sandbox]]
|?P3=Begriff
|?P20=Status
|?P21=Akronym
|?P22=Tags
|?P17=Beitragende/r
|?P18=Vokabular
|?P10.P3=Unterklasse von
|?P23.P3=Ähnlich
|?P24.P3=Synonym
|?Wikibase description=Beschreibung
|?P26=Klartextbeschreibung
|mainlabel=Link
|format=csv
|sort=P3
|limit=10000}}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants