diff --git a/README.md b/README.md index d275ee6..edf2317 100644 --- a/README.md +++ b/README.md @@ -39,7 +39,7 @@ A number of command line parameters are available to configure the application. | Parameter | Mandatory | Default Value | Example | Description | | ------------------------- | --------- | ------------------------------------------- | ------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------- | | APPLICATION_PORT | | 8080 | | The port the application will run on | -| CORE_OWL_URL | | http://purl.org/nampi/owl/core | | The location of the NAMPI-Core ontology | +| CORE_OWL_URL | | http://purl.org/nampi/owl/core | | The location of the NAMPI-Core ontology | | DATA_BASE_URL | | The URL used in the current Servlet Request | https://example.com/nampi/data | The URL to use when creating internal links or new database individuals. When omitted, the current servlet request is used | | DATA_URL | \* | | http://localhost:3030/data | The URL to the data dataset where the original data will be stored | | DEFAULT_LIMIT | | 20 | | The default result number to return when requesting from a collection endpoint like '/persons | @@ -139,3 +139,7 @@ Access Token Endpoint: `[Keycloak URL]/realms/nampi/protocol/openid-connect/toke Authorization Endpoint: `[Keycloak URL]/auth/realms/nampi/protocol/openid-connect/auth` Access Token Endpoint: `[Keycloak URL]/auth/realms/nampi/protocol/openid-connect/token` + +## API use + +Note: Comma in Literals need to be URL Encoded to %2C: instead of `Lastname, Firstname@en`, `Lastname%2C Firstname@en` needs to be used. diff --git a/pom.xml b/pom.xml index 50e4536..4f5e0fa 100644 --- a/pom.xml +++ b/pom.xml @@ -9,7 +9,7 @@ eu.nampi backend - 0.3.1 + 0.3.2 nampi-backend The NAMPI backend diff --git a/src/main/java/eu/nampi/backend/converter/StringToLiteralConverter.java b/src/main/java/eu/nampi/backend/converter/StringToLiteralConverter.java index b9d2f90..473325d 100644 --- a/src/main/java/eu/nampi/backend/converter/StringToLiteralConverter.java +++ b/src/main/java/eu/nampi/backend/converter/StringToLiteralConverter.java @@ -16,6 +16,7 @@ public class StringToLiteralConverter implements Converter { @Override public Literal convert(String string) { + string = string.replace("%2C", ","); // Only tries to match languages if the string contains an "@" if (string.contains("@")) { // Tries a faster simple pattern