Skip to content

Commit

Permalink
Merge pull request #1216 from NatLibFi/fix-notation-label-performance
Browse files Browse the repository at this point in the history
Fix performance problems in query for notation label
  • Loading branch information
osma authored Oct 6, 2021
2 parents 2b00744 + e2c5ebf commit 47c93be
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions model/sparql/GenericSparql.php
Original file line number Diff line number Diff line change
Expand Up @@ -431,9 +431,9 @@ private function generateConceptInfoQuery($uris, $arrayClass, $vocabs) {
{
?uri ?p ?o .
OPTIONAL {
FILTER(?p = skos:notation)
FILTER(isLiteral(?o))
BIND(datatype(?o) AS ?dt)
?uri skos:notation ?nVal .
FILTER(isLiteral(?nVal))
BIND(datatype(?nVal) AS ?dt)
?dt rdfs:label ?dtlabel
}
OPTIONAL {
Expand Down

0 comments on commit 47c93be

Please sign in to comment.