Commit graph

261 commits

Author SHA1 Message Date
8b2e150e32
use qualified by root in faux property to provide into FauxObjectPropertyWrapper (#360)
Co-authored-by: Georgy Litvinov <georgy.litvinov@tib.eu>
2023-02-02 14:24:10 +01:00
2873bba81d
fixed faux property display order (#359)
Co-authored-by: Georgy Litvinov <georgy.litvinov@tib.eu>
2023-01-24 14:21:46 +02:00
7dabc6b2ab
fixed check for redundant possible object properties (#358)
Co-authored-by: Georgy Litvinov <georgy.litvinov@tib.eu>
2023-01-24 14:09:57 +02:00
a7215cc932
fix for faux data property ranges (#357)
Co-authored-by: Georgy Litvinov <georgy.litvinov@tib.eu>
2023-01-24 13:54:31 +02:00
7d84e61003
Merge pull request #356 from chenejac/3393_parametersWithApostrophie
support for combining parameters and apostrophe
2022-12-22 13:49:00 +01:00
a0a1a6664b
Faux data properties and fixes for current faux properties view (#352)
* Faux data properties

* Use not disjointed classes for faux properties domain and range options

* Fix faux object property shadowing real property
List faux data properties
List faux properties which base properties domain don't match current subject

* Write exception to log in VClassDaoJena

* filter faux properties returned in possiblePropInstForIndividual

* safety checks added

* extracted getBaseLabel method, fixed base labels for data properties

* fix for prev commit

* Formatting fixes

* More formatting fixes

* More formatting fixes

* More formatting fixes

* More formatting fixes

* More formatting fixes

Co-authored-by: Georgy Litvinov <georgy.litvinov@tib.eu>
2022-12-16 11:40:49 +01:00
Dragan Ivanovic
fce6dc6f78 reorganization of the code - extraction of a method for preprocessing input strings for MethodFormat.format method 2022-12-16 11:40:10 +01:00
Dragan Ivanovic
311744ef64 support for combining parameters and apostrophe 2022-12-16 10:16:34 +01:00
Dragan Ivanovic
ae2509837e adding curly braces for all if statements 2022-12-13 14:37:23 +01:00
Dragan Ivanovic
6312b966f2 adding support for private subtags in the language tags, replacement of toString() method with toLanguageTag() method, adding checks for locale.stripExtensions() where it was neccessary, adding information about private tag in the drop down selection of a UI language 2022-12-13 11:37:56 +01:00
Dragan Ivanovic
62cbcca8dc support for private subtag (x) 2022-12-13 11:37:56 +01:00
Dragan Ivanovic
3f03ddfd1f adding English as default language 2022-12-06 11:26:35 +01:00
Dragan Ivanovic
b8ddb05937 property files not mandatory anymore, message kept as info instead of warning 2022-11-28 08:43:56 +01:00
9e3a3f7451
[i18b sprint] 3760 translations loading (#341)
* renamed I18nBundle

* added I18nBundle interface

* Added translation provider

* prototype of TranslationConverter

* convert all properties

* fixes

* added caching

* Removed obsolete code

* Improved logging

* fixed getting already existing label

* Fix to get RDF Service for configuration models

* fix translation request query

* added INTERFACE_I18N_FIRSTTIME_BACKUP model

* converter test added

* formatting fixes

* Translation provider tests added

* cleanups, added cache test for translation provider

* fix: get theme info from web app dao factory as sparql queries on both content and configuration models not supported
2022-11-25 16:25:58 +02:00
4acb10fc3f
remove only langtag literals (#349) 2022-11-23 09:38:27 +01:00
57d93285ff
fix: removed 'other' hack from forms (#328) 2022-11-15 20:33:01 +01:00
403cd6507a
[ i18n sprint ] Decouple email templates and translations (#334)
* Decouple email templates and translations

* provide siteName variable to error templates
2022-11-08 11:35:41 +01:00
7857968f2c
remove terms of use controller 2022-10-12 13:02:12 +02:00
Dragan Ivanovic
3df2fbe5fc
fixing the issue with type of match property (changed from string to boolean) (#325) 2022-08-25 16:32:11 +02:00
df3c4a88ae
Issue/vivo 3606 : add language-specific sorting and label fields to search index (#321)
* Add select query document modifier with dynamic target field; use locale-specific sort fields when available.

* Add i18nized labels to index for autocomplete

* Remove lowercasing from label query

* Improved document modifier for multilingual field with defined suffix name

* Improved document modifier for multilingual field with defined suffix name

* refact: reverted access modifier changes

* Lowercase label in documentModifierI18nSort in case old solr schema is used which doesn't have lowercase filter

* fix: fixed queries and locale names

* fix: renamed new document modifier

* fix: use linkedHashMap to retain map sort fields order

* refact: extracted buildAndExecuteVClassQuery(List<String> classUris, int page, int pageSize, String alpha, VitroRequest vreq)

* fix: removed unused import

* fix: constant name aligned with other suffix

Co-authored-by: Brian Lowe <brian@ontocale.com>
2022-08-23 16:23:43 +02:00
6ad364f9ee
fix: VIVO-3738 use language specific webapp dao factory (#324)
Co-authored-by: Georgy Litvinov <georgy.litvinov@tib.eu>
2022-08-19 15:13:45 +03:00
f8c38b8233
Issue/VIVO 3739 : fix for data property editing form (#323)
* fix: compare blank node id with uri safely
2022-08-19 15:13:06 +03:00
ce680d9cd7
fix: use public description in data property template model (#322)
Co-authored-by: Georgy Litvinov <georgy.litvinov@tib.eu>
2022-08-17 16:57:00 +03:00
3a14872c7c
fix: float validation regex (#318)
Co-authored-by: Georgy Litvinov <georgy.litvinov@tib.eu>
2022-07-25 14:56:20 +03:00
1168d1961a
fix: allow self editors to create individuals in faux property forms (#317) 2022-07-12 09:52:18 +02:00
b6d3b60530
proper fix to have the same substitutions as in RDFServiceTDB (#316) 2022-07-07 17:37:34 +02:00
6c95f5ab38
fix: retain language tags on editing data properties with backend editor (#315)
* fix: retain language tags on editing data properties with backend editor

* fix: replace label in backend editor in default language. Avoid side effect of removing all other labels.
2022-07-07 13:25:27 +02:00
acd2bf6a59
fix: workaround for jena bug. Treat integer and int equally while creating hash (#314) 2022-07-06 13:13:28 +02:00
ceebd3e422
fix: process string and untyped literals differently (#296)
* fix: process string and untyped literals differently

* fix for prev commit

* review fixes

* fix: generators fixes

* chore: removed unused imports
2022-07-04 22:10:20 +02:00
Georgy Litvinov
c2dffb52b6 fix calculation of pages in individual list 2022-06-01 10:15:22 +02:00
Dragan Ivanovic
fb4594ed3e
Merge pull request #292 from brianjlowe/issue/VIVO-3713
VIVO-3713 Avoid excessive use of resources when ABox firsttime data are changed
2022-05-28 08:44:33 +02:00
Brian Lowe
ce82c237a3 address review comments and add additional cleanup 2022-05-27 17:55:08 +03:00
Brian Lowe
530ad7d39c Rename all portal blank nodes with the same URI 2022-05-27 17:41:50 +03:00
Brian Lowe
fc4d618be5 Add test using empty backup 2022-05-27 12:03:31 +03:00
Brian Lowe
f1ef775d95 Use limited diff when checking for local overrides of firsttime data. Add unit test for firsttime update behavior. 2022-05-26 20:22:07 +03:00
ff285fb80d
Added code for deleting individuals (#213)
* Added code for deleting individuals

* Allow admins delete individuals

* Fixed delete individual url params

* Improved query safety

* refact: fixed constants' names, fixed mistakes, removed useless code

* refact: refactored sparql queries

* fix: fixed error logging mistakes

* fix: use CONSTRUCT instead of DESCRIBE as less potentionally problematic, lookup for mostSpecificTypes

* feat: add delete link in vitro individual profile if individual is editable

* fix: renamed individualURI to individualUri and added safety check

* fix: use ABox model to construct triples to delete
2022-05-20 21:28:29 +02:00
c41853440f
I18n regression fix (#289)
* fix: get back language filtering for sparql construct query

* feat: LanguageFilteringRDFService sparqlConstructQuery tests added
2022-05-20 15:29:59 +03:00
Benjamin Gross
3cd323bfb1 Timestamped filename for named graph output 2022-05-06 10:16:37 -06:00
ebc9237cc6
Upload documents in Vitro|VIVO (#251)
* feat: introduced file upload

* fix: added file upload config settings

* fix: reverted auto formatting of upload file helper

* fix: replaced missed condition

* Improved naming, internationalization, removed file extensions as misleading information

* Fixed wrong bytes number representing 10Mb

* fix: show no media types allowed if no media types defined in runtime.properties

* fix: Add vitro-languages-home-core as installer dependency to have Vitro RDF internationalization files

* fix: change vitro-languages-core-home dependency type from tar.gz to pom
2022-04-14 16:16:50 +02:00
eff04e0979
Add password authentification on external smtp servers (#240)
* Add SMTP Authentification

* refactor: restrict access to getEmailSession()

* fix: FreemarkerEmailFactory test, defined protocols if TLS port is used to send email

* fix: add check for TLSv1.3 support
2022-04-14 16:14:38 +02:00
Ben
733a88ddcb
Add POST body support to update api (#252) 2022-04-07 16:34:34 +02:00
Veljko Maksimovic
b8944fb3bf
Creating Locale with specified Language script (#250)
* Creating a util function to convert Locale string to Locale, but take language script into consideration

* emptz commit to trigger auto build
2022-04-07 16:23:19 +02:00
bbd714ceb9
Online translation (#241)
* Online translation added to Developer panel settings

* Added special characters conversion on file import and export for online translations

* fix: Parse text nodes separately

* fix: broken js on page prevents working developer panel

* fix: workaround for online translations using freemarker template models

* fix: safe way to convert array of objects to array of strings

* fix: convert char codes on read/write property files

* refact: corrected constant names
2022-04-07 16:21:49 +02:00
4ec81b3466
fix: move stream reset inside loop so that every listener gets the same state until a better approach is implemented (copy of c3aa9c5) 2022-02-24 19:36:29 +01:00
Ralph O'Flinn
fc8b92fcf6
Rel 1.12.1 alpha (#249)
* Update issue templates

* Run unit tests in alphabetical order (#244)

* fix: unit tests VIVO-2003 (#245)

* updates to outdated urls

Co-authored-by: Dragan Ivanovic <chenejac@uns.ac.rs>
Co-authored-by: Brian Lowe <brian@ontocale.com>
Co-authored-by: Georgy Litvinov <git@litvinovg.pro>
2021-10-12 10:40:25 -05:00
9565fbd925
Merge pull request #232 from brianjlowe/issue/VIVO-1983
[VIVO-1983] Limit label management values to current locale
2021-06-17 23:33:44 +02:00
Brian Lowe
762388e88b Retrieve locales used in label statements instead of only selectable locales 2021-06-16 22:02:48 +03:00
1e7cc745bc
Merge pull request #236 from brianjlowe/issue/VIVO-1985
[VIVO-1985] Compare locales of equal rank alphabetically to provide consistent fallback
2021-06-16 20:16:39 +02:00
Brian Lowe
93fd5a5f39 Retrieve locales used in label statements instead of only selectable locales 2021-06-16 21:16:24 +03:00
Brian Lowe
33ae07dcbf Use language-neutral model to match data property statements to literal hashes. 2021-06-10 13:05:02 +03:00