From 8ca3341a310c36cccba47fa98297b6ac4b803db6 Mon Sep 17 00:00:00 2001 From: Susanne Kunis Date: Tue, 25 Jul 2023 11:26:59 +0200 Subject: [PATCH] sparql query: avoid duplicate results with different data types --- .../fsimporter/mde/util/parser/OntologyParser_sparql.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/openmicroscopy/shoola/agents/fsimporter/mde/util/parser/OntologyParser_sparql.java b/src/main/java/org/openmicroscopy/shoola/agents/fsimporter/mde/util/parser/OntologyParser_sparql.java index 4886b098e..9e05ae55a 100644 --- a/src/main/java/org/openmicroscopy/shoola/agents/fsimporter/mde/util/parser/OntologyParser_sparql.java +++ b/src/main/java/org/openmicroscopy/shoola/agents/fsimporter/mde/util/parser/OntologyParser_sparql.java @@ -86,10 +86,10 @@ private String generateSparqlQuery(String url_term){ String queryString = "PREFIX rdfs: \n"+ - "SELECT DISTINCT ?subclass ?Label\n"+ + "SELECT DISTINCT ?subclass (STR(?subclassLabel) AS ?Label)\n"+ "WHERE {\n"+ " ?subclass rdfs:subClassOf <"+ontologyPURL+">.\n"+ - " ?subclass rdfs:label ?Label.\n"+ + " ?subclass rdfs:label ?subclassLabel.\n"+ //" FILTER (LANG(?Label)= 'en')\n"+ "}"; return queryString;