Skip to content

v0.4.1: relation, boolean, validator, and SPARQL-variable fixes

Choose a tag to compare

@cyanheads cyanheads released this 01 Jul 00:45
v0.4.1
a1b508e

relation, boolean, validator, and SPARQL-variable fixes

Four result-interpretation bug fixes across the CELLAR-backed tools and resources.

Fixed:

  • eurlex_get_relations amended_by and consolidated_version resolved — both mapped to zero-triple CDM predicates and always returned no_relations; now traverse the incoming amends and act_consolidated_consolidates predicates. Each type is queried with its own LIMIT so a dense type like cites no longer starves rarer ones. The eurlex://document/{celexNumber}/relations resource shared the same broken map and is fixed too. (#19)
  • eurlex_get_document and the eurlex://document/{celexNumber} resource now report in_force correctly — CELLAR xsd:boolean lexicals "1"/"0" are recognized via CellarSparqlService.parseBoolean(). (#20)
  • eurlex_lookup_celex returns found:false for a well-formed but nonexistent identifier instead of throwing not_found. (#22)
  • eurlex_query_sparql reports the projected SELECT variables (head.vars) on empty result sets; the description notes CELEX needs FILTER(STR(?celex) = "..."). (#23)

154 tests pass; bun run devcheck clean.