summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--python-kgx.spec83
-rw-r--r--sources2
3 files changed, 74 insertions, 12 deletions
diff --git a/.gitignore b/.gitignore
index 492697f..61aa4e5 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
/kgx-2.0.8.tar.gz
+/kgx-2.1.0.tar.gz
diff --git a/python-kgx.spec b/python-kgx.spec
index e4f2cf3..6758d10 100644
--- a/python-kgx.spec
+++ b/python-kgx.spec
@@ -1,11 +1,11 @@
%global _empty_manifest_terminate_build 0
Name: python-kgx
-Version: 2.0.8
+Version: 2.1.0
Release: 1
Summary: A Python library and set of command line utilities for exchanging Knowledge Graphs (KGs) that conform to or are aligned to the Biolink Model.
License: BSD
URL: https://pypi.org/project/kgx/
-Source0: https://mirrors.nju.edu.cn/pypi/web/packages/df/35/3e2651fe36a0bc154ea8f559b8b9cbac3596915b79285f9465e4fb7fc0be/kgx-2.0.8.tar.gz
+Source0: https://mirrors.aliyun.com/pypi/web/packages/0d/6b/983f1ecccbf7efc900b9eb93081bfcb42a774673f0206d1cc5eb59e1a457/kgx-2.1.0.tar.gz
BuildArch: noarch
Requires: python3-Click
@@ -36,8 +36,6 @@ Requires: python3-pyyaml
Requires: python3-rdflib
Requires: python3-recommonmark
Requires: python3-shexjsg
-Requires: python3-sphinx-click
-Requires: python3-sphinx-rtd-theme
Requires: python3-stringcase
Requires: python3-terminaltables
Requires: python3-tox
@@ -78,6 +76,27 @@ The structure of this graph is expected to conform to the Biolink Model standard
In addition to the main code-base, KGX also provides a series of [command line operations](https://kgx.readthedocs.io/en/latest/examples.html#using-kgx-cli).
+### Example usage
+Validate:
+```bash
+poetry run kgx validate -i tsv tests/resources/merge/test2_nodes.tsv tests/resources/merge/test2_edges.tsv
+```
+
+Merge:
+```bash
+poetry run kgx merge —merge-config tests/resources/test-merge.yaml
+```
+
+Graph Summary:
+```bash
+poetry run kgx graph-summary -i tests/resources/graph_nodes.tsv -o summary.txt
+```
+
+Transform:
+```bash
+poetry run kgx transform —transform-config tests/resources/test-transform-tsv-rdf.yaml
+```
+
### Error Detection and Reporting
Non-redundant JSON-formatted structured error logging is now provided in KGX Transformer, Validator, GraphSummary and MetaKnowledgeGraph operations. See the various unit tests for the general design pattern (using the Validator as an example here):
@@ -250,6 +269,27 @@ The structure of this graph is expected to conform to the Biolink Model standard
In addition to the main code-base, KGX also provides a series of [command line operations](https://kgx.readthedocs.io/en/latest/examples.html#using-kgx-cli).
+### Example usage
+Validate:
+```bash
+poetry run kgx validate -i tsv tests/resources/merge/test2_nodes.tsv tests/resources/merge/test2_edges.tsv
+```
+
+Merge:
+```bash
+poetry run kgx merge —merge-config tests/resources/test-merge.yaml
+```
+
+Graph Summary:
+```bash
+poetry run kgx graph-summary -i tests/resources/graph_nodes.tsv -o summary.txt
+```
+
+Transform:
+```bash
+poetry run kgx transform —transform-config tests/resources/test-transform-tsv-rdf.yaml
+```
+
### Error Detection and Reporting
Non-redundant JSON-formatted structured error logging is now provided in KGX Transformer, Validator, GraphSummary and MetaKnowledgeGraph operations. See the various unit tests for the general design pattern (using the Validator as an example here):
@@ -419,6 +459,27 @@ The structure of this graph is expected to conform to the Biolink Model standard
In addition to the main code-base, KGX also provides a series of [command line operations](https://kgx.readthedocs.io/en/latest/examples.html#using-kgx-cli).
+### Example usage
+Validate:
+```bash
+poetry run kgx validate -i tsv tests/resources/merge/test2_nodes.tsv tests/resources/merge/test2_edges.tsv
+```
+
+Merge:
+```bash
+poetry run kgx merge —merge-config tests/resources/test-merge.yaml
+```
+
+Graph Summary:
+```bash
+poetry run kgx graph-summary -i tests/resources/graph_nodes.tsv -o summary.txt
+```
+
+Transform:
+```bash
+poetry run kgx transform —transform-config tests/resources/test-transform-tsv-rdf.yaml
+```
+
### Error Detection and Reporting
Non-redundant JSON-formatted structured error logging is now provided in KGX Transformer, Validator, GraphSummary and MetaKnowledgeGraph operations. See the various unit tests for the general design pattern (using the Validator as an example here):
@@ -551,7 +612,7 @@ then the tests that rely on them are skipped.
%prep
-%autosetup -n kgx-2.0.8
+%autosetup -n kgx-2.1.0
%build
%py3_build
@@ -565,20 +626,20 @@ if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
pushd %{buildroot}
if [ -d usr/lib ]; then
- find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
+ find usr/lib -type f -printf "\"/%h/%f\"\n" >> filelist.lst
fi
if [ -d usr/lib64 ]; then
- find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
+ find usr/lib64 -type f -printf "\"/%h/%f\"\n" >> filelist.lst
fi
if [ -d usr/bin ]; then
- find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
+ find usr/bin -type f -printf "\"/%h/%f\"\n" >> filelist.lst
fi
if [ -d usr/sbin ]; then
- find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
+ find usr/sbin -type f -printf "\"/%h/%f\"\n" >> filelist.lst
fi
touch doclist.lst
if [ -d usr/share/man ]; then
- find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
+ find usr/share/man -type f -printf "\"/%h/%f.gz\"\n" >> doclist.lst
fi
popd
mv %{buildroot}/filelist.lst .
@@ -591,5 +652,5 @@ mv %{buildroot}/doclist.lst .
%{_docdir}/*
%changelog
-* Thu May 18 2023 Python_Bot <Python_Bot@openeuler.org> - 2.0.8-1
+* Thu Jun 08 2023 Python_Bot <Python_Bot@openeuler.org> - 2.1.0-1
- Package Spec generated
diff --git a/sources b/sources
index 259fb12..c3fd328 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-183499525dd72854207b185e650f2c8f kgx-2.0.8.tar.gz
+63c0474eb5c58a825576b5c87a34a5cc kgx-2.1.0.tar.gz