From 3496bee8a867e285cc77a4c498baa4bf9f0487bb Mon Sep 17 00:00:00 2001 From: Jim Balhoff Date: Tue, 22 Feb 2022 15:33:36 -0500 Subject: [PATCH] Fix problematic SPARQL query ordering. (#403) --- 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