Skip to content

Commit

Permalink
Fix WhereBuilder
Browse files Browse the repository at this point in the history
  • Loading branch information
tfrancart committed Nov 22, 2024
1 parent cd113df commit 36b44bb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/sparnatural/generators/sparql/WhereBuilder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,11 @@ export default class WhereBuilder{
const hasEndClass = (
!this.#specProvider.getEntity(this.#grpWrapper.CriteriaGroup.EndClassGroup.getTypeSelected()).isLiteralEntity()
&&
!this.#specProvider.getProperty(this.#grpWrapper.CriteriaGroup.ObjectPropertyGroup.getTypeSelected()).omitClassCriteria()
(
this.#grpWrapper.CriteriaGroup.ObjectPropertyGroup.getTypeSelected() == null
||
!this.#specProvider.getProperty(this.#grpWrapper.CriteriaGroup.ObjectPropertyGroup.getTypeSelected()).omitClassCriteria()
)
);
const hasIntersectionTriple = (this.#intersectionPtrn)

Expand Down

0 comments on commit 36b44bb

Please sign in to comment.