diff --git a/app/rdf/query-latest-cube-iri.ts b/app/rdf/query-latest-cube-iri.ts index 5e257bbb8..11b0b1bd6 100644 --- a/app/rdf/query-latest-cube-iri.ts +++ b/app/rdf/query-latest-cube-iri.ts @@ -34,8 +34,7 @@ SELECT ?iri WHERE { ?versionHistory schema:hasPart ?iri . ?iri schema:version ?version . ?iri schema:creativeWorkStatus ?status . - ?oldIri schema:creativeWorkStatus ?oldStatus . - FILTER(NOT EXISTS { ?iri schema:expires ?expires . } && ?status IN (?oldStatus, )) + FILTER(NOT EXISTS { ?iri schema:expires ?expires . } && ?status = ) } } }