Closed zwelz3 closed 3 years ago
After discussion with Santiago, we have decided that the following pattern should be sufficient:
if isinstance(cls.node_iris, (list, tuple)):
node_iris = pd.concat(
[query.run_query(rdf_graph) for query in cls.node_iris],
ignore_index=True,
)
else:
# run_query
Monolithic queries are difficult to define, challenging to maintain, and in some cases less performant than multiple separate queries.
This ticket investigates a way to allow for
N
number of queries of each type for theipyradiant.rdf2nx.RDF2NX
converter. This would allow users to specify multiple queries that satisfy a stage of the process (e.g.NodeIRIs
). The process should usenx.compose
to aggregate results and pass them through the normalRDF2NX
process.Blocked by #50/#58