Converting your Knowledge Graph TSV/CSV to a Resource Description Framework (RDF) For Interoperability
<p>Now we read the tsv format into a dataframe. The predicate is the category that the node is assigned too. For example, <a href="https://pubs.acs.org/doi/10.1021/jm4017625" rel="noopener ugc nofollow" target="_blank"><strong>RingsInDrugs</strong></a>, is the most common ring systems in Drugs and it belongs to the Medicinal Chemistry category in our graph.</p>
<pre>
df = pd.read_csv(
'global_chem.tsv',
delimiter='\t',
header=None,
names=['name', 'smiles', 'node', 'predicate', 'path']
)</pre>
<p>First we create the graph where each chemical name is connected to a node.</p>
<p><a href="https://sharifsuliman.medium.com/converting-your-knowledge-graph-tsv-csv-to-a-resource-description-framework-rdf-for-e3e7305519bd"><strong>Visit Now</strong></a></p>