Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/nakamura196/vsdx-rdf

a Python library for extracting RDF data from Visio files (.vsdx)
https://github.com/nakamura196/vsdx-rdf

python rdf visio

Last synced: 3 months ago
JSON representation

a Python library for extracting RDF data from Visio files (.vsdx)

Awesome Lists containing this project

README

        

vsdx-rdf
================

vsdx-rdf is a Python library for extracting RDF data from Visio files
(.vsdx). It is based on the [vsdx](https://pypi.org/project/vsdx/)
library, which is a Python library for reading and writing Visio files.

## Install

``` sh
pip install git+https://github.com/nakamura196/vsdx-rdf.git
```

## How to use

In the following example, we extract RDF data from a Visio file and
print it.

``` python
INPUT_FILE = "./data/input/sample/ex.vsdx"
OUTPUT_FILE = "./data/output"

Client.convert(INPUT_FILE, OUTPUT_FILE)
```

Processing: ./data/input/sample/ex.vsdx

depth (int): Optional; the depth of the graph to download, 0 by default.

``` python
INPUT_FILE = "./data/input/sample/*.vsdx"
OUTPUT_FILE = "./data/output_extra"

Client.convert(INPUT_FILE, OUTPUT_FILE, depth=1, verbose=False)
```

Processing: ./data/input/sample/ex.vsdx