Skip to content

Commit

Permalink
Merge pull request #490 from biolink/fix_command_line_parquet
Browse files Browse the repository at this point in the history
add "parquet source" mapped to "GraphSource" to support parquet sink support
  • Loading branch information
sierra-moxon authored Apr 15, 2024
2 parents 23ed566 + b02b789 commit 45203eb
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 4 deletions.
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

0 comments on commit 45203eb

Please sign in to comment.