Framework - nokia/minifold GitHub Wiki

Connectors

minifold connectors and functions
File Connector Function Overview
csv.py CsvConnector N/A Wrap a CSV file.
dblp.py DblpConnector N/A Wrap a DBLP server.
download.py DownloadConnector download Download a web page.
entries_connector.py EntriesConnector N/A Wrap a list of homogeneous python dicts.
google_scholar.py GoogleScholarConnector N/A Wrap Google Scholar.
hal.py HalConnector N/A Wrap a HAL server.
html_table.py HtmlTableConnector html_table Wrap an table stored in an HTML file (e.g. LibreOffice Calc export) according to a list of column names.
ldap.py LdapConnector N/A Wrap a LDAP server. The DN is resolved according to the FROM clause of the Query.
mongo.py MongoConnector N/A Wrap a Mongo database.
twitter.py TwitterConnector N/A Wrap Twitter.

Operators

minifold operators
File Connector Function SQL equivalent Overview
group_by.py GroupByConnector group_by GROUP BY Group entries according to a subset of attributes in a dict.
join_if.py JoinIfConnector join_if {LEFT,RIGHT} OUTER JOIN Merge list of dictionnaries based on matching (key,value) attributes. Implements standard SQL joins.
lambdas.py LambdasConnector lambdas VIEW Generate additional (key,value) in each entry, based on its content.
natural_join.py NaturalJoinConnector natural_join NATURAL JOIN Merge list of dictionnaries based on matching (key,value) attributes.
rename.py RenameConnector rename AS Rename queries and entries to make the bridge between two ontologies.
select.py SelectConnector select SELECT Keep only a subset of the entries' attributes.
sort_by.py SortByConnector sort_by SORT BY Sort entries based on a tuple of attributes. Entries are sorted according to lexicographical order.
unique.py UniqueConnector unique DISTINCT Remove duplicated entries according to a subset of their attributes.
unnest.py UnnestConnector unnest unnest Translate an entry containing a list into a list of entries (one entry per list entry)
where.py WhereConnector where WHERE Filters entries according to a given lambda function.

Caching

minifold cache connectors
File Connector Overview
cache.py JsonCacheConnector Cache a stream of records using a local json file.
cache.py PickleCacheConnector Cache a stream of records using a local pickle file.
cached.py JsonCachedConnector Wrap a json-based cache stored on the local storage.
cached.py PickleCachedConnector Wrap a pickle-based cache stored on the local storage.
⚠️ **GitHub.com Fallback** ⚠️