Skip to content

Commit 74fd811

Browse files
committed
Added label output for matched terms.
1 parent 4d9b519 commit 74fd811

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/scala/org/monarchinitiative/dosdp/SPARQL.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ ${triplesFor(dosdp).mkString("\n")}
5959
case (variable, named: OWLClass) => Seq(s"?${DOSDP.processedVariable(variable)} rdfs:subClassOf* <${named.getIRI}> .")
6060
case (variable, expression) => Seq(s"?${DOSDP.processedVariable(variable)} rdfs:subClassOf ${expression.asOMN} .")
6161
}
62-
val labelTriples = axiomVariables(dosdp).map(v => s"OPTIONAL { ?$v rdfs:label ${v}__label . }")
62+
val labelTriples = axiomVariables(dosdp).map(v => s"OPTIONAL { $v rdfs:label ${v}__label . }")
6363
axiomTriples ++ variableTriples ++ labelTriples
6464
}
6565

0 commit comments

Comments
 (0)