Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apostrophes #29

Closed
elespdn opened this issue Feb 19, 2020 · 2 comments
Closed

Apostrophes #29

elespdn opened this issue Feb 19, 2020 · 2 comments

Comments

@elespdn
Copy link
Contributor

elespdn commented Feb 19, 2020

In search results:

l’année != l'année

Portrait de l'apiculteur != Portrait de l’apiculteur

@elespdn
Copy link
Contributor Author

elespdn commented Feb 21, 2020

@elespdn
Copy link
Contributor Author

elespdn commented Oct 5, 2022

replace dactylo apostrophe with typographafic apostrophe everywhere in data, as following:

PREFIX knora-base: <http://www.knora.org/ontology/knora-base#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
with <http://www.knora.org/data/0112/roud-oeuvres>
delete {
      ?resource knora-base:valueHasString ?string
}
insert {
      ?resource knora-base:valueHasString ?new_string
}
where { 
      ?resource knora-base:valueHasString ?string .
      filter(regex(?string, "'"))
      bind(replace(?string, "'", "’") AS ?new_string)
}

And then replace them also when launching the query, as following

this.searchText = this.searchText.replace("'","’")
this.dataService.fullTextSearchPaged(this.searchText)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant