Metadata-Version: 2.1
Name: umakaparser
Version: 0.2.3
Summary: 
Home-page: http://umaka-viewer.dbcls.jp/
License: MIT
Keywords: dbcls,rdf
Author: DBCLS
Requires-Python: >=3.7
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Requires-Dist: click (>=8.0,<9.0)
Requires-Dist: isodate (>=0.6.0,<0.7.0)
Requires-Dist: pyparsing (>=3.0,<4.0)
Requires-Dist: python-i18n (>=0.3.9,<0.4.0)
Requires-Dist: rdflib (>=6.0.0,<7.0.0)
Requires-Dist: tqdm (>=4.52.0,<5.0.0)
Project-URL: Repository, https://github.com/dbcls/umakaparser
Description-Content-Type: text/markdown

# 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 <Path to put an asset file>] <ontology files in Turtle>`  
​  
If you have ontology files only in RDF/XML, this tool converts them into those in Turtle as follows.  
​  
`umakaparser --convert <files in RDF/XML>`  
​  
Finally, this tool generates a JSON file that can be accepted by [Umaka Viewer](https://umaka-viewer.dbcls.jp/) as follows.  
​  
`umakaparser --build [--a <Path to asset files>|--d <Path to put a generated JSON file>] <an SBM file>`  
​  
The JSON file structure is [here](https://github.com/dbcls/umakaparser/wiki/Data-specification).

