'File format to construct context of concepts library using python
I want to work with formal concept analysis using python, I found this library: https://concepts.readthedocs.io/en/stable/manual.html. Firstly we need to put context as input to concepts library (let's call it Table 1). For my data, I have Sparql Endpoint I found that I can consume it with sparqlWrapper: https://sparqlwrapper.readthedocs.io/en/latest/main.html After submitting my data to Sparql Query, the endpoints returns json file (jsonExample.png). enter image description here I need to iterate over URIS which are json files in order to construct the Table 1 (by writing URIS object in first cases of lines of first column and write theirs properties + values (of properties) in first line and of course if property+value already exists we don't duplicate it in the first line). you can notice different formats for inputs of the library (csv,cxt,string and json) in the documentation: https://concepts.readthedocs.io/en/stable/manual.html. now my question is what's the best format to work with in order to construct the context and add it as input to concepts library in order to work FCA ? (json, csv, cxt or string).
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
