<http://www.w3.org/2000/01/rdf-schema#label> "Dupont, Sylvie"
<http://www.w3.org/2000/01/rdf-schema#label> "Dupont, Sylvie"^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#langString>
edu.cornell.mannlib.vitro.webapp.edit.n3editing.configuration.generators.RDFSLabelGenerator.getRangeLang().
I am able to partially reproduce the issue you are describing. I am loading an RDF (n3) file that contains two individuals, which have each of the following labels:
> rdfs:label "With, Lang"@en-US ;
> rdfs:label "Without, Lang" ;
Before updating either of them, the "Site Admin"/"SPARQL query" service, returns:
> | <http://www.w3.org/2000/01/rdf-schema#label> | "With, Lang"@en-US
> | <http://www.w3.org/2000/01/rdf-schema#label> | "Without, Lang"
After updating both of them, the "Site Admin"/"SPARQL query" service, returns:
> | <http://www.w3.org/2000/01/rdf-schema#label> | "With, Lang-update"^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#langString>
> | <http://www.w3.org/2000/01/rdf-schema#label> | "Without, Lang-update"
Although I am not seeing the addition of the "langString" type on labels that do not initially contain a language annotation, it does seem unexpected that we lose the language annotation and gain the type when a label does initially include a language annotation.
The logic is in the RDFSLabelGenerator class (as you noted).
https://github.com/vivo-project/Vitro/blob/master/api/src/main/java/edu/cornell/mannlib/vitro/webapp/edit/n3editing/configuration/generators/RDFSLabelGenerator.java#L226-L229
..and that logic has been in this class since the beginning, in 2011:
https://github.com/vivo-project/Vitro/commit/b623d7847c5b3430aa053c4e2cc955843d343535#diff-1e9082588a5f1b81f1b50922279bf112R267-R271
What is the behavior that you would expect? That the field would not lose its language annotation? That the field would not gain a language type? That the field would remain completely unchanged?
Regards,
Andrew
________________________________________
From: vivo...@googlegroups.com <vivo...@googlegroups.com> on behalf of J. Dornbusch <joachim....@ehess.fr>
Sent: Monday, March 16, 2020 6:22 AM
To: VIVO Tech
Subject: [vivo-tech] Problem when saving labels
Hello everyone,
<http://www.w3.org/2000/01/rdf-schema#label> "Dupont, Sylvie"
becomes
edu.cornell.mannlib.vitro.webapp.edit.n3editing.configuration.generators.RDFSLabelGenerator.getRangeLang().
Thanks
Joachim
--
You received this message because you are subscribed to the Google Groups "VIVO Tech" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vivo-tech+...@googlegroups.com<mailto:vivo-tech+...@googlegroups.com>.
To view this discussion on the web visit https://groups.google.com/d/msgid/vivo-tech/e0518ce0-aea0-436c-b580-6d8e08ab9772%40googlegroups.com<https://groups.google.com/d/msgid/vivo-tech/e0518ce0-aea0-436c-b580-6d8e08ab9772%40googlegroups.com?utm_medium=email&utm_source=footer>.
ORDER BY <collated> ?subclass </collated> (fn:lower-case(?personName))
2020-03-18 07:14:20,324 [WARN ] (Log.java:warn:80) lcase: Not a string literal: "User, Name Mod"^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#langString>
} ORDER BY <collated> ?subclass </collated> (fn:lower-case(STR(?personName)))
To unsubscribe from this group and stop receiving emails from it, send an email to vivo...@googlegroups.com<mailto:vivo-tech+unsubscribe@googlegroups.com>.
| <http://www.w3.org/2000/01/rdf-schema#label> | "Center for Social Analysis and Mathematics"@en | <http://vitro.mannlib.cornell.edu/default/vitro-kb-2> |
| <http://www.w3.org/2000/01/rdf-schema#label> | "Centre d'analyses et de mathématiques sociales"@fr | <http://vitro.mannlib.cornell.edu/default/vitro-kb-2>
| <http://www.w3.org/2000/01/rdf-schema#label> | "Center for Southeast Asian Studies"@en | <http://vitro.mannlib.cornell.edu/default/vitro-kb-2> |
| <http://www.w3.org/2000/01/rdf-schema#label> | "Centre d'Asie du Sud-Est"@fr | <http://vitro.mannlib.cornell.edu/default/vitro-kb-2> |
| <http://www.w3.org/2000/01/rdf-schema#label> | "Center for Social Analysis and Mathematics - test"^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#langString>
Hello Joachim,
Can you verify the following fix by Benjamin addresses the issue you were seeing:
https://github.com/vivo-project/Vitro/pull/175
Thanks,
Andrew
________________________________________
From: vivo...@googlegroups.com <vivo...@googlegroups.com> on behalf of J. Dornbusch <joachim....@ehess.fr>
Sent: Monday, March 16, 2020 6:22 AM
To: VIVO Tech
Subject: [vivo-tech] Problem when saving labels
Hello everyone,
Some users notice that when they edit a person's photo or name, it moves up to the top of the list of laboratory members, which breaks the alphabetical order.
I notice that after saving, the label that was set through the API turns into a langstring without langtag.
<http://www.w3.org/2000/01/rdf-schema#label> "Dupont, Sylvie"
becomes
<http://www.w3.org/2000/01/rdf-schema#label> "Dupont, Sylvie"^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#langString>
It seems that when Vivo updates the label it looks for a langtag in the current value and if it doesn't find one, it turns the string into a langstring all the same. I can see this behavior in
edu.cornell.mannlib.vitro.webapp.edit.n3editing.configuration.generators.RDFSLabelGenerator.getRangeLang().
What is the way out of this situation ?
Thanks
Joachim
--
You received this message because you are subscribed to the Google Groups "VIVO Tech" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vivo...@googlegroups.com<mailto:vivo-tech+unsubscribe@googlegroups.com>.
On Jul 21, 2020, at 1:03 AM, J. Dornbusch <joachim....@ehess.fr> wrote:
Hello Andrew,
It is difficult for me to validate this modification because the bug is old and quite complex.What I can tell you is that in Vivo 1.10, with those language tagged labels, injected through the API :
| <http://www.w3.org/2000/01/rdf-schema#label> | "Center for Social Analysis and Mathematics"@en | <http://vitro.mannlib.cornell.edu/default/vitro-kb-2> | | <http://www.w3.org/2000/01/rdf-schema#label> | "Centre d'analyses et de mathématiques sociales"@fr | <http://vitro.mannlib.cornell.edu/default/vitro-kb-2>
or| <http://www.w3.org/2000/01/rdf-schema#label> | "Center for Southeast Asian Studies"@en | <http://vitro.mannlib.cornell.edu/default/vitro-kb-2> | | <http://www.w3.org/2000/01/rdf-schema#label> | "Centre d'Asie du Sud-Est"@fr | <http://vitro.mannlib.cornell.edu/default/vitro-kb-2> |
1. It is impossible to edit one of the existing labels through the main UI.
<unable_to_edit_label.png>
To unsubscribe from this group and stop receiving emails from it, send an email to vivo-tech+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vivo-tech/308a63a7-246a-4a1f-928e-ba067ce76319o%40googlegroups.com.
<unable_to_edit_label.png>
Confidentiality note: This e-mail may contain confidential information from Clarivate. If you are not the intended recipient, be aware that any disclosure, copying, distribution or use of the contents of this e-mail is strictly prohibited. If you have received this e-mail in error, please delete this e-mail and notify the sender immediately.