Skip to content
This repository has been archived by the owner on May 23, 2024. It is now read-only.

Commit

Permalink
Replaced originalKS with primaryKS for clarity.
Browse files Browse the repository at this point in the history
  • Loading branch information
gaurav committed Mar 31, 2023
1 parent c294136 commit 226ecfc
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/main/scala/org/renci/cam/QueryService.scala
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ import io.circe.syntax._
import org.apache.jena.query.QuerySolution
import org.apache.jena.rdf.model.Resource
import org.phenoscape.sparql.SPARQLInterpolation._
import org.renci.cam.Biolink.{biolinkData, BiolinkData}
import org.renci.cam.Biolink.{BiolinkData, biolinkData}
import org.renci.cam.HttpClient.HttpClient
import org.renci.cam.SPARQLQueryExecutor.SPARQLCache
import org.renci.cam.Util.IterableSPARQLOps
import org.renci.cam.domain.PredicateMappings.{getBiolinkQualifiedPredicates, mapQueryEdgePredicates}
import org.renci.cam.domain._
import zio.config.{getConfig, ZConfig}
import zio.{config => _, Has, RIO, Task, UIO, ZIO}
import zio.config.{ZConfig, getConfig}
import zio.{Has, RIO, Task, UIO, ZIO, config => _}

import java.math.BigInteger
import java.nio.charset.StandardCharsets
Expand Down Expand Up @@ -199,7 +199,7 @@ object QueryService extends LazyLogging {
appConfig <- getConfig[AppConfig]

// Generate the attributes we will need to produce the edge output.
originalKS <- ZIO
primaryKS <- ZIO
.fromOption(biolinkData.predicates.find(p => p.shorthand == "primary_knowledge_source"))
.orElseFail(new Exception("could not get biolink:primary_knowledge_source"))
aggregatorKS <- ZIO
Expand Down Expand Up @@ -237,7 +237,7 @@ object QueryService extends LazyLogging {
}
originalKSAttributes = originalKnowledgeSources.map { case (derivedFrom, inforesKS) =>
TRAPIAttribute(Some("infores:cam-kp"),
originalKS.iri,
primaryKS.iri,
None,
List(inforesKS),
Some(infoResBiolinkClass.iri),
Expand Down

0 comments on commit 226ecfc

Please sign in to comment.