Biomedical knowledge graph construction of Sus scrofa and its application in anti-PRRSV traditional Chinese medicine discovery

As a new data management paradigm, knowledge graphs can integrate multiple data sources and achieve quick responses, reasoning and better predictions in drug discovery. Characterized by powerful contagion and a high rate of morbidity and mortality, porcine reproductive and respiratory syndrome (PRRS) is a common infectious disease in the global swine industry that causes economically great losses. Traditional Chinese medicine (TCM) has advantages in low adverse effects and a relatively affordable cost of application, and TCM is therefore conceived as a possibility to treat PRRS under the current circumstance that there is a lack of safe and effective approaches. Here, we constructed a knowledge graph containing common biomedical data from humans and Sus Scrofa as well as information from thousands of TCMs. Subsequently, we validated the effectiveness of the Sus Scrofa knowledge graph by the t-SNE algorithm and selected the optimal model (i.e., transR) from six typical models, namely, transE, transR, DistMult, ComplEx, RESCAL and RotatE, according to five indicators, namely, MRR, MR, HITS@1, HITS@3 and HITS@10. Based on embedding vectors trained by the optimal model, anti-PRRSV TCMs were predicted by two paths, namely, VHC-Herb and VHPC-Herb, and potential anti-PRRSV TCMs were identified by retrieving the HERB database according to the pharmacological properties corresponding to symptoms of PRRS. Ultimately, Dan Shen’s ( Salvia miltiorrhiza Bunge ) capacity to resist PRRSV infection was validated by a cell experiment in which the inhibition rate of PRRSV exceeded 90% when the concentrations of Dan Shen extract were 0.004, 0.008, 0.016 and 0.032 mg/mL. In summary, this is the first report on the Sus Scrofa knowledge graph including TCM information, and our study reflects the important application values of deep learning on graphs in the swine industry as well as providing accessible TCM resources for PRRS.


Introduction
Currently, profiting from the development of modern advanced biotechnology and a great reduction in its use cost, a massive amount of biological data is generated at an exponential rate, so it is an important issue for biologists to store and integrate heterogeneous biomedical data and extract helpful information.The application of knowledge graphs (KGs) to the biological domain can meet the above demand to some degree and have a positive influence on the swine industry.In 2012, Google officially proposed the conception of KG, whose original purpose was aimed at optimization of search results, improvement of search quality and better user experience (Singhal 2012).As a heterogeneous data presentation, KG consists of varieties of entities (nodes) and corresponding edges (relations), and it is represented as "head entityrelation-tail entity" triplets that facilitate the integration of multiple data sources (Hogan et al. 2021).Due to the storage of considerable data and differences between relations, KGs can fulfill quick responses and reasoning as well as perform better predictions (Bonner et al. 2022).KG is developing rapidly with great application potential in agricultural biological recommender systems, information retrieval, and human-computer interaction (Chen et al. 2020;MacLean 2021).For instance, AgroLD, a knowledge graph for plant sciences established by the University of Montpellier, integrated over one hundred datasets from 15 data sources and contained 900 million triples, and its target is to provide a domain-specific knowledge platform to solve complex biological problems about the implication of genes in multiple aspects (Larmande et al. 2022).Against the backdrop of swine health, nodes can denote critical elements such as genes, proteins, and chemicals in a KG where edges capture different categories of associations between nodes.However, there is no standardized KG integrating biomedical data related to swine health, which hinders the informatization and intelligence of this field to a certain extent.
With the increase in number and the expansion of scale in swine production, health problems gradually become prominent.Porcine reproductive and respiratory syndrome (PRRS) is one of the most important diseases threatening the prosperity of the global swine industry.Characterized by powerful contagion and a high rate of morbidity and mortality, PRRS is a common viral infectious disease that was first discovered in the United States in 1987 and subsequently in Europe and Asia in the early 1990s (Keffaber 1989;Wensvoort et al. 1991;Baron et al. 1992;Chang et al. 1993;Kuwahara et al. 1994;Cho and Dee 2006).It occurs in pigs of all ages and breeds, and the clinical manifestations of PRRS mainly include pyrexia, diarrhea, tachypnea, dyspnea, cough, lethargy, anorexia, and reduced growth performance along with secondary bacterial infections (Cho and Dee 2006;Karniychuk et al. 2010), resulting in reproductive disorders or failure in sows, lowered semen quality in boars, and respiratory disease in piglets (Wang et al. 2022).Porcine reproductive and respiratory syndrome virus (PRRSV) is the etiological agent of PRRS.Belonging to the family Arteriviridae of the order Nidovirales, PRRSV is a single-stranded and positive-sense RNA virus that includes an envelope and a genome of 15.4 kb in size (Snijder et al. 2013).There are two kinds of isolates in terms of their genotypes: European genotype isolate (EU; type I) and North American genotype isolate (NA; type II) (Yin et al. 2021).Because of the extremely frequent mutation and recombination of PRRSV, the goal of controlling and eliminating it is difficult to achieve (Sha et al. 2022).PRRS caused by PRRSV therefore exerts a highly serious influence on the benefits of the global swine industry and leads to economically great losses, restricting sustainable development of this field (Cui et al. 2021).Obviously, it is a high priority to search for effective approaches to relieve and even cure PRRS.
The measure for prophylaxis and treatment of swine diseases, such as PRRS, is to make full use of antibiotics and chemical synthetic drugs (Tantituvanont et al. 2009;Li et al. 2017).However, overuse of antibiotics for a long time leads to a series of negative problems, such as drug resistance in pathogenic microorganisms and drug residues in pork products, which may threaten public health (Holman and Chénier 2015;Mencía-Ares et al. 2021;Soares et al. 2022).Although chemical synthetic drugs function quickly for disease, their frequent use also has adverse or side effects (Karimi et al. 2015).In addition, vaccination, including the injection of attenuated and inactivated vaccines, has become one of the main strategies to prevent and treat PRRS, whereas it cannot constrain the occurrence and spread of PRRSV and offers effective protection because of the high rate of mutation and recombination of PRRSV (Dokland 2010;Zhang et al. 2022).
With a characteristic and unique theoretical architecture and sufficient clinical experience, Traditional Chinese Medicine (TCM) has a long history in disease prevention and treatment, and it is regarded as a valuable medicinal resource known to China and gradually to the world (Gong et al. 2014;Cui et al. 2021).Studies have shown that, with the advantages of low toxicity for creatures, few drug residues in pork, and little drug resistance in pathogenic microorganisms, TCMs possess multiple pharmacological activities, such as anti-inflammatory, antipyretic and antiviral activities, and some TCMs make a certain positive difference in animal production performance (Gong et al. 2014;Abdallah et al. 2019).Simultaneously, TCMs have relatively affordable applied costs, accessible resources and convenience of use (Hsu and Chung 2012).The above results show that TCMs provide abundant and beneficial drug resources for the prevention and treatment of swine diseases such as PRRS and have brilliant development prospects in the future.
In this study, to compensate for the vacancy of KGs in swine health, we constructed a Sus scrofa knowledge graph that not only includes conventional swine biomedical data but also integrates thousands of TCMs.After effectiveness validation of the Sus Scrofa knowledge graph, the optimal embedding model was selected from six classical models, and its embedding vectors were used to predict anti-PRRSV TCMs.By reviewing the HERB database, potential TCMs were identified based on their pharmacological activity corresponding to symptoms of PRRS.Finally, Dan Shen (Salvia miltiorrhiza Bunge) was chosen to experimentally validate its capacity to resist PRRSV infection.In summary, our research built a Sus scrofa knowledge graph, which is the first report on swine health KGs with TCM information, and successfully predicted anti-PRRSV TCMs, reflecting the application value of deep learning on graphs in the global swine industry and providing drug resources for swine health problems such as PRRS.

Construction of Sus Scrofa knowledge graph
In this study, we first constructed a Sus scrofa knowledge graph that integrates and normalizes swine health information from six existing biomedical databases, including the Ensembl database, KEGG database, STITCH database, STRING database, TCMID database and HVIDB database.The Sus Scrofa knowledge graph is a comprehensive biological knowledge graph that not only includes various kinds of human biological data and swine biomedical information involving genes, proteins, biological processes, and chemicals but also adds to the gene and protein homologous relations between humans and swine as well as the interaction between human proteins and virus proteins.In addition, it is important and characteristic for Sus Scrofa knowledge graph to contain thousands of TCMs and their ingredients.The Sus Scrofa knowledge graph includes 393,840 entities of 9 entity types and 4,631,878 relations of 16 relation types.Among 393,840 entities, there are 5,872 TCM entities, 233,586 chemical entities, 2092 virus protein entities, 89,468 human-relevant entities and 62,822 swine-related entities.A total of 89,468 human-relevant entities were composed of 73,231 proteins, 347 pathways and 15,890 genes.A total of 62,822 swine-related entities comprised 46,064 proteins, 343 pathways and 16,415 genes.In terms of 16 relation types, there are 5 relation types of interaction, including 752,626 protein-chemical associations in humans, 892,290 protein-protein associations in humans, 149,532 human protein-virus protein associations, 1,789,600 proteinchemical associations in swine, and 825,275 protein-protein associations in swine.Sixteen relation types also had 6 relation types for pathways, including 33,280 pathwaygene associations, 3,715 pathway-compound associations, and 1,663 pathway-pathway associations in humans and 33,292 pathway-gene associations, 3,698 pathway-compound associations, and 1,641 pathway-pathway associations in swine.The rest of the relation types and their numbers are 25,818 gene-protein associations in humans, 31,895 gene-protein associations in swine, 12,293 human gene-swine gene associations (homologous relations), 45,270 human protein-swine protein associations (homologous relations) and 29,990 herb-compound associations.

Validation of Sus Scrofa knowledge graph
Subsequently, six knowledge graph embedding models, including TransE, TransR, RESCAL, DistMult, Com-plEx and RotatE, were used to acquire vector representations or embeddings of entities and relations in the Sus Scrofa knowledge graph.The T-distributed stochastic neighbor embedding (t-SNE) algorithm, a dimensionality reduction method, can alter high-dimensional vectors to graphical representations in a two-dimensional space.For t-SNE, adjacent nodes possess similar embedding representations.The t-SNE algorithm was adopted to visualize the effectiveness of entities and relations embedding representations that were learned by these six models.Figures 1, 2, 3, 4, 5 and 6 suggest that the embedding vectors of the identical type of entities and relations in the Sus Scrofa knowledge graph have comparably good colocalization in a two-dimensional graph, reflecting the effectiveness of the Sus Scrofa knowledge graph to some degree.

Selection of the optimal model and its embeddings
For six classical knowledge graph embedding models, the embedding dimension of entities and relations were all set at 400.In addition, their batch size, learning rate (lr) and round were set at 2048, 0.1 and 49, respectively, to train the models.The optimal model was chosen from the above six models for predictions of anti-PRRSV TCMs by embedding, which was generated by the selected model.Five indicators, including MRR, MR, HITS@1, HITS@3 and HITS@10, were used to measure the model's training effects.Table 1 shows that the MRR of transR is 0.73, which is the largest value in the six models, and the MR of transR is 55.07, which is smaller than the other values.For the HITS@n indicators, transR achieves the best values on HITS@1, HITS@3 and HITS@10, which are 0.66, 0.77 and 0.86, respectively.TransR can therefore be regarded as an optimal model, and its embeddings of entities and relations were employed to predict anti-PRRSV TCMs.

Predictions of anti-PRRSV TCMs
The predictions of anti-PRRSV TCMs were obtained by using embedding vectors of entities and relations in the Sus Scrofa knowledge graph, and the top 20 TCMs in the two paths of VHPC-Herb and VHC-Herb were selected to find their associations with PRRS and identify potential anti-PRRSV TCMs (Tables S3 and S4).
PRRS is also known as "blue ear disease" due to color changes in the ears of sick pigs from light pink to blue.After infection with PRRSV, sick swine are susceptible to secondary viral and bacterial diseases, and the clinical symptoms of PRRSV therefore vary from swine to swine.Specifically, the manifestations in swines of most ages and breeds cover pyrexia, diarrhea, tachypnea, dyspnea, cough, lethargy, anorexia, and reduced growth performance (Cho and Dee 2006;Karniychuk et al. 2010), finally resulting in reproductive disorders or failure in sows, lowered semen quality in boars, and respiratory disease in piglets (Wang et al. 2022).
The HERB database (referred to "BenCaoZuJian" as Chinese name, http:// herb.ac.cn/) is a high-throughput experiment-and reference-guided database of TCM that   (Fang et al. 2021).By reviewing the HERB database, our research determined potential anti-PRRSV TCMs based on whether their pharmacological activity corresponded to the symptoms of PRRS.
In the path of VPHC-Herb, most of the top 20 TCMs were common TCMs, of which 14 TCMs were regarded as potential anti-PRRSV TCMs (Table 2).In the path of VHC-Herb, 11 TCMs can be considered as possibly effective herbs because of their pharmacological activity targeting clinical manifestations of PRRS (Table 3).
Comparing two paths, in terms of 14 TCMs in VHPC-Herb, 11 TCMs in VHC-Herb and their indications, VHPC-Herb can be perceived as a more useful path to some degree because it recognizes more quantities of promising anti-PRRSV TCMs and aims at more symptoms of PRRS.Specifically, VHPC-Herb includes homologous associations between human proteins and swine proteins from which this approach can cover more information and knowledge of swine and make connections between TCMs and swine.In addition, five TCMs, namely, Citrus reticulata, Raphanus sativus, Lonicera japonica, Elsholtzia splendens and Bupleurum chinense, were predicted both in VHPC-Herb and VHC-Herb, and all of them were identified by the HERB database as potential anti-PRRSV.It is generally known in the biological field that homologous proteins in different species can sometimes interact with the same compound and

Validation of the anti-PRRSV pharmacological activity of Dan Shen
Dan Shen, also called Salvia miltiorrhiza Bunge (SM) as a scientific name, belongs to the Lamiaceae family, which was first stated in "The Herbal Classic of Shen Nong" during the Eastern Han Dynasty approximately 2000 years ago.It is a popular, valuable, widely used medicinal herb in traditional Chinese medicine whose main medicinal parts are dry roots and rhizomes.In traditional use, Dan Shen possesses diverse functions, including promoting blood flow to remove blood stasis and stimulate menstrual discharge, cooling blood to ease the mind and relieve dysphoria, clearing heat to remove carbuncles and relieving pain.To the best of our knowledge, Dan Shen contains different kinds of chemical compounds, such as diterpenoid quinones, hydrophilic phenolic acids, and essential oil constituents, in which the two former compounds principally play bioactive roles.The various pharmacological activities of Dan Shen are important to point out, which is either used independently or combined with other TCMs.These pharmacological activities include anti-inflammatory, antioxidant, anti-hepatocyte injury, anti-neuropathic pain and other therapeutic effects, making Dan Shen an herbal therapy for various indications (Su et al. 2015;Jia et al. 2019).Therefore, our research chose Dan Shen to experimentally validate its therapeutic effect on PRRS and accelerate the development of drug discovery in the swine health field.
The Marc-145 cell line is vulnerable to PRRSV.Our experiment first conducted a toxicity test of Dan Shen extract in which different concentrations of Dan Shen extract were applied to the Marc-145 cell line to determine the concentration range of Dan Shen extract under the circumstance that the cell survival rate was more than 90%.As shown in Fig. 7A and Table S5, the survival rate of the Marc-145 cell line is up to 90% at concentrations ranging from 0.004 mg/mL to 0.032 mg/mL, which suggests that Dan Shen extract has low toxicity to the Marc-145 cell line in such a concentration range and is therefore employed for follow-up study.
Subsequently, our research detected the PRRSV inhibition rate resulting from Dan Shen extract in the Marc-145 cell line at survivable concentrations.Figure 7B illustrates that the inhibition rate of PRRSV exceeded 90% when the concentrations of Dan Shen extract were 0.004, 0.008, 0.016 and 0.032 mg/mL.These results suggested that Dan Shen can take an inhibitory action to control the life cycle of PRRSV, further having the capability to resist PRRSV infection within cells.

Discussion
With the cross-integration of BT and IT in the background, multiple kinds of technology are applied to the agricultural biological production domain, and a new data management paradigm represented by KG adopts a graph data structure to model and record biological data (Hogan et al. 2021).For the swine industry, the application of KGs is beneficial for aggregating a large amount of useful knowledge and achieving more accurate objectlevel searches and predictions, which accelerates the mechanization and intellectualization of swine breeding and facilitates the development of swine production.However, there is currently no swine KG with knowledge of TCMs.Here, we established a Sus Scrofa knowledge graph that contained varieties of biomedical data in humans and swine, homologous information between In the swine production field, PRRS, also known as 'blue ears' disease, is one of the most important diseases affecting the growth of the global swine industry, leading to great economic losses (Cui et al. 2021).PRRS is caused by PRRSV, whose high frequency rate of mutation and recombination makes it difficult for researchers to control it (Sha et al. 2022).Therefore, it is a high priority to look for a useful approach to relieve and even cure PRRS, and TCMs are generally conceived as helpful methods.
TCM develops a unique theoretical system, and it has a long history in clinical practice and experience to ameliorate the health of human beings and animals (Gong et al. 2014;Cui et al. 2021).On the one hand, TCMs are characterized by their low toxicity, few drug residues in livestock products and little drug resistance in pathogens (Gong et al. 2014;Abdallah et al. 2019).On the other hand, they have comparably low applied cost and great convenience (Hsu and Chung 2012).Therefore, TCM is a valuable drug resource library with enormous potential and good development prospects.
Based on embedding vectors of the constructed Sus Scrofa knowledge graph trained by the optimal model, namely, transR selected from six classical models (transE, transR, DistMult, ComplEx, RESCAL, RotatE), anti-PRRSV TCMs were predicted by the VHPC-Herb path and VHC-Herb path.Most predicted herbs are common TCMs in China, Japan, Korea and other places.By retrieving the HERB database, possibly effective anti-PRRSV TCMs were recognized according to pharmacological activity corresponding to clinical manifestations of PRRS.Fourteen potential TCMs were identified in the VHPC-Herb path, and 11 TCMs were identified in the VHC-Herb path.We also compared the predicted results of the VHPC-Herb and VHC-Herb paths and analyzed and explained the reasons.Finally, Dan Shen (rank 2 in VHPC-Herb path) was selected to validate its efficacy by experiment because of its multiple pharmacological properties, chemical constituents and traditional use, and the experiment demonstrated that Dan Shen possessed anti-PRRSV bioactive roles.
The Sus Scrofa knowledge graph includes biological data about humans, swine and varieties of viruses, such as genes, proteins, pathways, chemicals and their associations, as well as information on thousands of TCMs.It collates multiple types of data by graph structure and is applied to machine learning algorithms to obtain new insights into swine health research, such as drug discovery aimed at swine diseases.The two paths for predictions, namely, VHC-Herb and VHPC-Herb, maintain a balance between more information and a shorter path length, which represent more knowledge and higher accuracy, respectively.
One limitation is that the Sus Scrofa knowledge graph merely integrates diverse types of TCMs and their ingredients and that it lacks dosage information.It is generally known that the effects of TCMs are not only related to their categories but also to dose and compatibility, so we suggest that researchers make use of TCMs according to the actual situation (Zha et al. 2015).Another limitation of this study is that the edges of the Sus scrofa knowledge graph describe rough information of associations between two entities, so the predictions of TCMs represent a certain connection with PRRSV, and we need to determine whether it is a positive or negative effect that one certain TCM exerts on the treatment of PRRS.For example, MAI JIAO, a predicted common TCM ranking 19 in the VHPC-Herb path, has the function of contracting the uterus, which may aggravate the condition of miscarriage when used in farrowing sows with PRRS.Another case in our study is QIAN NIU ZI (rank 1 in VHC-Herb path), whose therapeutic class is Drastic Purgatives, which has adverse effects on swine with diarrhea infected by PRRSV.Both MAI JIAO and QIAN NIU ZI are annotated by the HERB database.In addition, except for Dan Shen, whether a TCM can be considered a potential anti-PRRSV TCM is only based on its pharmacological property, without performing experimental verification.The efficacy of these TCMs should be explored experimentally in the future.

Conclusion
In summary, we constructed a Sus Scrofa knowledge graph, and based on it, we successfully predicted and determined potential anti-PRRSV TCMs where the efficacy of Dan Shen was validated experimentally.The Sus Scrofa knowledge graph is the first reported swine health KG, including information on thousands of TCMs.Through the application of the Sus scrofa knowledge graph for the prediction of TCMs, our study shows the enormous utilization potential of deep learning on graphs in the global swine industry and provides significant medicinal resources for swine diseases, which greatly promotes the development of traditional Chinese veterinary medicine (TCVM).

Methods
Figure 8 shows the workflow for construction of the Sus Scrofa knowledge graph and prediction of anti-PRRSV TCMs.Our workflow consists of five main steps: (1) data gathering; (2) construction of the Sus Scrofa knowledge graph; (3) optimal model selection from six classical models; (4) anti-PRRSV TCM prediction; and ( 5) identification of potential anti-PRRSV TCMs.All steps are depicted in detail as follows.

Data sources
We obtained four types of associations from the Ensembl database (https:// www.ensem bl.org) using a powerful tool called BioMart, which performed cross-database annotations.The four types of associations included gene-protein associations in humans and swine as well as gene and protein homologous relations between humans and swine.We collected six types of associations from the Kyoto Encyclopedia of Genes and Genomes database (KEGG, https:// www.genome.jp/ kegg/) by API.These six types of associations were involved in biological pathways in humans and swine, including pathwaygene associations, pathway-compound associations and pathway-pathway associations.The interactions between proteins in both humans and swine were downloaded from the STRING database (https:// string-db.org/), which integrates all known and predicted associations between proteins in more than 1,400 organisms, including both physical interactions and functional associations (Szklarczyk et al. 2021).Protein-chemical associations in both humans and swine came from the STITCH database (http:// stitch.embl.de/), which contains data on drug (chemical)-target (protein) relationships and binding affinities (Kuhn et al. 2010).The Human-Virus Interaction Database (HVIDB, http:// zzdlab.com/ hvidb) is a comprehensive database for human-virus protein-protein interactions and provides online PPI prediction tools (Yang et al. 2021), and we used information on interactions between human proteins and virus proteins from HVIDB as human protein-virus protein associations in our knowledge graph.The Traditional Chinese Medicine Integrated Database (TCMID, http:// www.megab ionet.org/ tcmid/) is a comprehensive database designed for TCM standardization and modernization, and it has been highly acknowledged among scholars and pharmacologists in the TCM domain (Huang et al. 2018).From TCMID, we gathered information about the chemical ingredients of TCMs as herb-compound associations in the Sus scrofa knowledge graph.

Data processing and construction of Sus Scrofa knowledge graph
Due to the limitation of BioMart, we could not obtain homologous gene information named by NCBI gene (formerly Entrezgene) ID (e.g.,4535).Therefore, we first obtained homologous gene information named Gene stable ID (e.g., ENSG00000198888) and gene ID mapping between NCBI gene ID and Gene stable ID in human and swine, and then we merged the above three information files to obtain homologous gene information named NCBI gene ID.The compound of pathwaycompound associations, herb-compound associations and protein-chemical associations are represented by KEGG compound ID (e.g., C00001), compound chemical name (e.g., parthenolide) and STITCH compound ID (e.g., CIDm00010457), respectively.To align the entities of compounds from different sources, we conducted ID mapping by aliases files from the STITCH database and finally transformed the other two representations into STITCH compound ID.The human proteins are described by protein stable ID, and we used the ID mapping tool provided by the UniProt database (https:// www.unipr ot.org/) to convert UniProt protein ID (e.g., P62277) in human protein-virus protein associations to protein stable ID (e.g., ENSP00000435777).In addition, according to binding affinities, the interaction between proteins and protein-chemical associations in human and swine were further filtered, and their combined scores over 400 were selected and used to ensure the effectiveness of interactions.
Other entity types without processing have unique representations when gathered from the database, whose nomenclature in the Sus Scrofa knowledge graph used ID or name from the corresponding databases.Entity and relation representations are shown in Tables S1 and S2, respectively.
Then, we organized the above data into "head entityrelation-tail entity" triplets and stored them in a 'tsv' format file, completing the construction of the Sus scrofa knowledge graph.

Embedding generation of KGs and evaluation of training models
A deep graph library-knowledge graph (DGL-KE) is an open-source package developed by Amazon Web (See figure on next page.)Fig. 8 Workflow of the construction of the Sus scrofa knowledge graph and the prediction of anti-PRRSV TCM.In this study, we collected and integrated varieties of biomedical data from humans and swine as well as TCM information to construct a Sus scrofa knowledge graph.Then, six models were adopted to generate embedding vectors of the Sus scrofa knowledge graph from which the optimal embedding model was selected according to evaluation indicators, and its embedding vectors were used to predict anti-PRRSV TCMs.By reviewing the HERB database, potential anti-PRRSV TCMs were identified based on their pharmacological activity corresponding to symptoms of PRRS Services AI Shanghai Lablet for efficient computation of knowledge graph embeddings, which can accelerate training on large-scale knowledge graphs by using multiprocessing, multi-GPU, and distributed parallelism and ultimately achieve high operation efficiency.Furthermore, DGL-KE is extensible and uncomplicated to use, and it covers a series of classical models, including TransE, TransR, DistMult, ComplEx, RESCAL and RotatE (Zheng et al. 2020).
TransE: TransE is a well-known knowledge graph representation learning method used to map entities and relations to low-dimensional vector representations.It is based on the fundamental assumption that relations in a knowledge graph can be interpreted as translations from one entity vector to another.TransE learns vector representations by minimizing the distance between the translated entity vectors and the actual relation vectors.Specifically, given a triplet (h, r, t) where h is the head entity, r is the relation, and t is the tail entity, TransE represents this triplet in vector form.It predicts the tail entity vector by adding the head entity vector and the relation vector, i.e., h + r ≈ t .For each triple (h, r, t) , TransE defines the scoring function as follows: where � •� 1/2 represents the L 1 or L 2 norm, h ∈ R d and t ∈ R d represent the vector representations of the head and tail entities, respectively, and r ∈ R d represents the vector representation of the relation (Bordes et al. 2013).
TransR: In TransE, entities and relations are represented as vectors in the same embedding space.It does not explicitly handle hierarchical relations because it assumes that all relations are treated equally, and the model focuses on capturing the translation patterns between entities.In contrast, TransR introduces a separate relation-specific projection matrix for each relation.Entities are represented in an entity space, while relations are represented in a relation space.The projection matrix maps the entity embeddings from the entity space to the relation space.This allows TransR to capture the semantic properties of hierarchical relations more effectively.Given a triplet (h, r, t) , the scoring function for TransR is defined as follows: where h ⊥ = M r h , t ⊥ = M r t , and M r ∈ R k×d is the pro- jection matrix from the entity space to the relation space (Lin et al. 2015).
DisMult: DistMult is a popular knowledge graph representation learning model.It models the relations between entities using a symmetric bilinear function.In DistMult, each entity and relation are represented as embedding vectors in a continuous vector space.The model predicts the likelihood of a triple by computing the score as the dot product of the embeddings: Here, diag(r) represents a diagonal matrix with the elements of the relation vector r on its diagonal (Yang et al. 2015).
ComplEx: ComplEx is a model based on complex-valued vectors that extends DistMult by introducing complex operations.It represents entities and relationships using complex-valued vectors and predicts the score of a triple by computing the Hermitian product (complex conjugate multiplication) between the vectors.More specifically, ComplEx performs multiplication operations on the complex-valued vectors of the head entity, relation, and tail entity and takes the real part as the predicted score: where h ∈ C d and t ∈ C d represent the vector represen- tations of the head and tail entities, respectively, while r ∈ C d represents the vector representation of the rela- tion.t is the conjugate of t , and Re(•) represents taking the real part of a complex number.
Therefore, ComplEx has the ability to better capture the symmetric and anti-symmetric relationships in knowledge graphs compared to DistMult.It is also advantageous in modeling multiple types of relationships accurately due to the multidimensional representation power of complex-valued vectors.However, ComplEx requires more computational resources and training time than DistMult (Trouillon et al. 2016).
RESCAL: RESCAL is based on tensor decomposition and aims to capture complex interactions between entities and relationships.Specifically, RESCAL represents the knowledge graph as a three-dimensional tensor, where each element corresponds to the strength of the relationship between entity pairs.By decomposing this tensor, embeddings of entities and relationships can be obtained.In RES-CAL, the knowledge graph (KG) is formed by a large tensor X , where if a triplet exists in the KG, X htr is denoted as 1; otherwise, it is 0. The score function is defined as: where M r ∈ R d×d , [M r ] ij represents the (i, j)-th ele- ment of matrix M r , and [h] i and [t] j represent the i-th and j-th components of vectors h and t , respectively.The objective is to decompose X into entity embeddings and relationship embeddings to make X htr close to h T M r t (Nickel et al. 2011). (3 RotatE: In RotatE, each relation is represented as a complex-valued rotation in a multidimensional space.The head and tail entities are also represented as By applying elementwise rotating operations on the head entity vector, the relationship vector, and the complex conjugate of the tail entity vector, RotatE measures the plausibility of a triplet in the knowledge graph.Given a triplet (h, r, t) , where we expect t = h • r and the magni- tude |r i = 1| .Therefore, for each dimension in the com- plex space, the expectation is that t i = h i r i , where t i , h i , and r i ∈ C .Its score function is defined as: where t ∈ C d , h ∈ C d and r ∈ C d are the embeddings (Sun et al. 2019).
In this study, the DGL-KE package was adopted to generate low-dimensional embedding vector representations of entities and relations in the Sus Scrofa knowledge graph.Before training, the triples were split into training/valid/test sets at a 9:0.5:0.5 ratio.Then, we conducted the abovementioned six models over the Sus Scrofa knowledge graph to obtain embedding vectors by using DGL-KE.
General indicators to evaluate the performance of knowledge graph embedding models included MRR, MR, HITS@1, HITS@3 and HITS@10.Based on these indicators, six models, namely, transE, transR, DistMult, Com-plEx and RotatE, were evaluated, and the optimal model was selected to predict anti-PRRSV TCMs by its generated embedding vectors.

Anti-PRRSV TCM prediction
Subsequently, our research predicted anti-PRRSV TCMs, which was achieved by the prediction of the interactions between the proteins of PRRSV and TCMs.Due to the absence of the above interactions in the Sus Scrofa knowledge graph, two paths, called VHC-Herb and VHPC-Herb, were used to handle this problem and (6) f r (h, t) =� h • r − t � perform prediction.Specifically, VHC-Herb started from the proteins of PRRSV, passed through human proteins and chemicals successively, and finally reached TCMs.The routine included viral protein-human protein associations, human protein-chemical interactions, and TCMchemical relationships (Fig. 9A).VHPC-Herb started from the proteins of PRRSV, passed through human proteins, swine proteins and chemicals successively, and eventually arrived at TCMs.The routine included viral protein-human protein associations, human proteinswine protein homologous relationships, swine proteinchemical interactions, and TCM-chemical relationships (Fig. 9B).In fact, the prediction of anti-PRRSV TCMs can be perceived as a knowledge graph completion problem.This problem can be represented as a ranking task, which is essentially the task of learning a prediction function that scores high on true triplets and low on false triplets.In this study, transR was considered the optimal model according to evaluation indicators, and the prediction method of transR was therefore introduced in this section.The edge scores of transR were calculated using the following algorithm: where γ is the margin separating the positive and nega- tive triplets and � • � 2 2 represents the L2 norm.Note that here, LogSigmoid is used to make all scores less than 0, so the larger a score is, the stronger the corresponding association between entities is.
In the process of prediction in both the VHC-Herb and VHPC-Herb paths, we sorted the edge scores in descending order and chose the top 20 entities for the next step.Finally, the top 20 TCMs in the two paths were chosen to determine whether they were possibly effective anti-PRRSV TCMs.By reviewing the HERB database, a

Preparation of Dan extract
Dan Shen was purchased from JinYeZi Pharmaceutical Co. Ltd. (Hebei, China).
First, we weighed 20 g of Dan Shen and crushed it into a dry powder, which was then soaked for 12 h in 10 volumes of absolute ethanol.Next, Dan Shen and its soaking solution, whose total volume was 200 mL, were heated and refluxed for 2 h, and we recovered the filtrate.After that, we added 200 mL of absolute ethanol to the Dan Shen residue for secondary heating and reflux and recovered the filtrate again.Finally, after heating and refluxing twice, the two filtrates were mixed, and rotary evaporation was conducted until powder of the Dan Shen extract was obtained.

Toxicity test of Dan Shen extract on the Marc-145 cell line
Marc-145 cells, provided by the School of Animal Science and Technology, School of Animal Medicine, Huazhong Agricultural University, were maintained in DMEM supplemented with 10% fetal bovine serum (FBS) and 1% penicillin-streptomycin. PRRSV strain CH-1a was obtained from the School of Animal Science and Technology, School of Animal Medicine, Huazhong Agricultural University, and amplified in Marc-145 cells.The viral titer was measured by a plaque assay.The steps of the toxicity test are as follows: (1) Seeding of Marc-145 cells We seeded Marc-145 cells into cell suspensions using DMEM containing 10% FBS and seeded 10,000 Marc-145 cells per well into a 96-well cell culture plate, with a seeding volume of 100 µL per well.(2) Marc-145 cells cultured after cell seeding were cultivated in a cell culture incubator with 37°C and 5% carbon dioxide for 24 h.(3) The Dan Shen extract was dissolved in DMSO and diluted gradiently in DMEM containing 2% FBS to final concentrations of 1, 0.5, 0.25, 0.125, 0.0625, 0.032, 0.015, 0.008 and 0.004 mg/mL, and then we added prepared media with different concentrations of Dan Shen extract into the 96-well cell culture plate.Simultaneously, we regarded wells with DMEM containing 2% FBS as the control group and wells without cells and Dan Shen extract as the blank group.Every group was repeated in three wells, and they were put in a cell culture incubator with 37°C and 5% carbon dioxide for 48 h.(4) Measurement of absorbance We added 10 μL of CCK-8 solution to every well (be careful not to generate air bubbles) and set the 96-well cell culture plate in an incubator for 1-4 h, and then we measured the absorbance at 450 nm by a microplate reader.(5) Calculation of the cell survival rate According to absorbance, the Marc-145 cell survival rate in different concentrations of Dan Shen extract was determined by the following formula: where CSR represents the Marc-145 cell survival rate, and E, C, and B denote the optical density (OD) values of the experimental groups, control groups and blank groups, respectively.
(3) Addition of Dan Shen extract and inoculation of PRRSV Dan Shen extract was dissolved in DMSO and diluted gradiently in DMEM containing 2% FBS and 100 × TCID50 PRRSV to final concentrations of 0.032, 0.015, 0.008 and 0.004 mg/mL, respectively, and then we added the mentioned prepared media into the 96-well cell culture plate.Simultaneously, we regarded wells with DMEM containing 2% FBS and PRRSV but no Dan Shen extract as the virus control group and wells with DMEM containing only 2% FBS as the cell control group.Every group was repeated in three wells, and they were cultivated in a cell culture incubator with 37°C and 5% carbon dioxide for 48 h.(5) Calculation of the PRRSV inhibition rate of Dan Shen According to absorbance, the PRRSV inhibition rate in different concentrations of Dan Shen extract was determined by the following formula: where IR represents the PRRSV inhibition rate, and T, C, and V denote the optical density (OD) values of the Dan Shen treatment groups, cell control groups and virus control groups, respectively.

Fig. 1
Fig. 1 The embedding vector visualization of the TransE model based on the t-SNE algorithm.A The embedding visualization of entities in Sus Scrofa KG; B The embedding visualization of relations in Sus Scrofa KG

Fig. 2
Fig. 2 The embedding vector visualization of the TransR model based on the t-SNE algorithm.A The embedding visualization of entities in Sus Scrofa KG; B The embedding visualization of relations in Sus Scrofa KG

Fig. 5
Fig. 5 The embedding vector visualization of the ComplEx model based on the t-SNE algorithm.A The embedding visualization of entities in Sus Scrofa KG; B The embedding visualization of relations in Sus Scrofa KG

Fig. 7
Fig. 7 Experimental results of the anti-PRRSV pharmacological activity of Dan Shen.A Toxicity test of Dan Shen; B PRRSV inhibition rate of Dan Shen

Table 1
The evaluation indicators of models generating embedding vectors.The maximal of every indicator is highlighted in bold was jointly established by Beijing University of Chinese Medicine, Institute of Computing Technology of Chinese Academy of Sciences and Institute of Nephrology, West China Hospital of Sichuan University.Information and knowledge of the most common TCMs, such as their functions, indications, clinical manifestations and therapeutic class, can be retrieved from the HERB database

Table 2
Potential anti-PRRSV effects in the VHPC-Herb path

Table 3
Potential anti-PRRSV effects in the VHC-Herb path