From 0a0b0acc8df02c18ca48412610e7cf5fbee31b88 Mon Sep 17 00:00:00 2001 From: Jim Balhoff Date: Tue, 22 Feb 2022 15:27:12 -0500 Subject: [PATCH] Fix problematic SPARQL query ordering. --- src/main/scala/org/monarchinitiative/dosdp/SPARQL.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/scala/org/monarchinitiative/dosdp/SPARQL.scala b/src/main/scala/org/monarchinitiative/dosdp/SPARQL.scala index e239119..8000a90 100644 --- a/src/main/scala/org/monarchinitiative/dosdp/SPARQL.scala +++ b/src/main/scala/org/monarchinitiative/dosdp/SPARQL.scala @@ -80,7 +80,7 @@ ORDER BY ?defined_class_label else ZIO.succeed(Nil) axiomTriples <- if (queryLogical) for { filledAxioms <- dosdp.filledLogicalAxioms(None, None) - triples <- ZIO.foreach(filledAxioms)(triples(_, props)) + triples <- ZIO.foreach(filledAxioms.to(Seq))(triples(_, props)) } yield triples.flatten else ZIO.succeed(Nil) varExpressions <- dosdp.varExpressions