Navigation Menu

Skip to content

Commit

Permalink
bug fixed in the seed generator sparql
Browse files Browse the repository at this point in the history
  • Loading branch information
fmoghaddam committed Dec 3, 2020
1 parent 023f9a1 commit 1b697d4
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -32,7 +32,7 @@ object FeatureExtractingSparqlGenerator {
def createSeedFetchingSparql(seedVarName: String, seedWhereClause: String, sortedByLinks: Boolean): String = {
val seedFetchingSparql = sortedByLinks match {
case true => f"SELECT DISTINCT $seedVarName \nWHERE { $seedWhereClause \n\tOptional { $seedVarName ?p ?o. } } \ngroup by $seedVarName ORDER BY DESC ( count(?p) ) "
case false => f"SELECT DISTINCT $seedVarName \n WHERE { $seedWhereClause} }"
case false => f"SELECT DISTINCT $seedVarName \n WHERE { $seedWhereClause} "
}
println(f"the generated seed fetching sparql is:\n$seedFetchingSparql")
seedFetchingSparql
Expand Down

0 comments on commit 1b697d4

Please sign in to comment.