TIBHannover / semantic-glossar

CPS: Semantic glossary creation pipeline
https://tibhannover.github.io/semantic-glossar/
MIT License
1 stars 5 forks source link

Data export of a glossary #43

Open mrchristian opened 2 months ago

mrchristian commented 2 months ago

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

whitecryst commented 2 months ago
  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}}