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

add "parquet source" mapped to "GraphSource" to support parquet sink support #490

Merged
merged 2 commits into from
Apr 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions docs/reference/sink.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,3 +142,18 @@ formatted JSON.
:inherited-members:
:show-inheritance:
```


## kgx.sink.parquet_sink

`ParquetSink` is responsible for writing data as Parquet table files.

KGX writes two separate files - one for nodes and another for edges.


```eval_rst
.. automodule:: kgx.sink.parquet_sink
:members:
:inherited-members:
:show-inheritance:
```
12 changes: 8 additions & 4 deletions kgx/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
"""
KGX Package
"""
__version__ = "2.1.0"
# use importlib.metadata to read the version provided
# by the package during installation. Do not hardcode
# the version in the code
try:
import importlib.metadata as importlib_metadata
except ModuleNotFoundError:
import importlib_metadata
__version__ = importlib_metadata.version(__name__)
1 change: 1 addition & 0 deletions kgx/transformer.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
"nt": RdfSource,
"owl": OwlSource,
"sssom": SssomSource,
"parquet": GraphSource,
}

SINK_MAP = {
Expand Down
Loading