feat(metadata): Spalten-Metadaten (CSVW) im JSON-LD (PR8)#44
Merged
Conversation
Qualifiziert tabellarische Daten vollständig: die per-Spalten-Metadaten eines DataFrame (Einheit/Label/dtype je Spalte) werden als geordnete csvw:column-Liste in den JSON-LD-/RDF-/Sidecar-Export aufgenommen. - vocab.py: csvw-Namespace + Terme columns (csvw:column, @list) und datatype (csvw:datatype). - semantic.py: column_node(attr) (Spalte -> {name, datatype(xsd), unit, label, description}); to_jsonld(columns=) ergänzt geordnete Spaltenliste; rdf_from_doc() und write_sidecar_doc() serialisieren ein vorgefertigtes Doc (mit Spalten). - sclass/dataframe.py: to_jsonld/to_turtle/write_sidecar überschrieben; Spalten in echter df-Reihenfolge (nicht alphabetisch sortiert). Tests test_semantic_columns.py. Coverage 100%.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Qualifiziert tabellarische Daten vollständig: die per-Spalten-Metadaten eines
DataFrame(Einheit/Label/dtype je Spalte) erscheinen jetzt als geordnetecsvw:column-Liste im JSON-LD/RDF/Sidecar.Änderungen
vocab.py:csvw-Namespace + Termecolumns(csvw:column,@list) unddatatype(csvw:datatype).semantic.py:column_node(attr)→{name, datatype(xsd), unitRef/symbol, label, description};to_jsonld(columns=)ergänzt die geordnete Spaltenliste;rdf_from_doc()/write_sidecar_doc()serialisieren ein vorgefertigtes Doc.sclass/dataframe.py:to_jsonld/to_turtle/write_sidecarüberschrieben — Spalten in echter df-Reihenfolge (nicht alphabetisch).Beispiel
Tests/Coverage
tests/test_semantic_columns.py. 465 passed, 9 skipped, Coverage 100 %.