Skip to content

Commit

Permalink
fix: retain entire iris in dynamic field names
Browse files Browse the repository at this point in the history
this makes them easily reversible for highlighting fields that match

(previously used "sufficiently unique" iris like "://foo.example/blarg",
which works well enough, except it'd take knowledge to get the original)
  • Loading branch information
aaxelb committed Nov 27, 2024
1 parent fbb7a45 commit a0c2cda
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions share/search/index_strategy/_trovesearch_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,7 @@ def iris_synonyms(iris: typing.Iterable[str], rdfdoc: rdf.RdfGraph) -> set[str]:

def propertypath_as_keyword(path: Propertypath) -> str:
assert not is_globpath(path)
return json.dumps([
get_sufficiently_unique_iri(_iri)
for _iri in path
])
return json.dumps(path)


def b64(value: str) -> str:
Expand Down

0 comments on commit a0c2cda

Please sign in to comment.