From 7098431b7766c7eee3f232cc5ec92ddcd711a07d Mon Sep 17 00:00:00 2001 From: Fumiya Kubota Date: Wed, 27 Apr 2022 12:29:47 +0900 Subject: [PATCH] add pypi description --- docs/description.md | 20 ++++++++++++++++++++ pyproject.toml | 3 ++- 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 docs/description.md diff --git a/docs/description.md b/docs/description.md new file mode 100644 index 0000000..bc5aae0 --- /dev/null +++ b/docs/description.md @@ -0,0 +1,20 @@ +# UmakaParser + +This tool is to make a JSON file for [Umaka Viewer](https://umaka-viewer.dbcls.jp/). +​ +First, you need to prepare a metadata file in the [SPARQL Builder Meatadata (SBM)](http://www.sparqlbuilder.org/doc/sbm_2015sep/) format. +If you want to get such a metadata file, [TripleDataProfiler](https://bitbucket.org/yayamamo/tripledataprofiler/src/master/) can generate it for a SPARQL endpoint. +​ +Then, if you have ontology files for the target endpoint or RDF dataset, you need to make asset files by this tool as follows. +​ +`umakaparser --build-index [--dist ] ` +​ +If you have ontology files only in RDF/XML, this tool converts them into those in Turtle as follows. +​ +`umakaparser --convert ` +​ +Finally, this tool generates a JSON file that can be accepted by [Umaka Viewer](https://umaka-viewer.dbcls.jp/) as follows. +​ +`umakaparser --build [--a |--d ] ` +​ +The JSON file structure is [here](https://github.com/dbcls/umakaparser/wiki/Data-specification). diff --git a/pyproject.toml b/pyproject.toml index 9f4c2dc..ed0e1bd 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "umakaparser" -version = "0.1.8" +version = "0.2.2" description = "" authors = ["DBCLS"] license = "MIT" @@ -14,6 +14,7 @@ classifiers = [ 'Programming Language :: Python :: 3.9', 'License :: OSI Approved :: MIT License', ] +readme = "docs/description.md" [tool.poetry.dependencies] python = ">=3.7"