Property talk:P7699
Documentation
authority id at the National Library of Lithuania, part of VIAF (code LIH)
List of violations of this constraint: Database reports/Constraint violations/P7699#Single value, SPARQL
List of violations of this constraint: Database reports/Constraint violations/P7699#Unique value, SPARQL (every item), SPARQL (by value)
LNB:([A-Za-z0-9+/,]{3,4}|[DV]\*[0-9]{2,9});=[A-Za-z0-9+/ ]{2,3}
”: value must be formatted using this pattern (PCRE syntax). (Help)List of violations of this constraint: Database reports/Constraint violations/P7699#Format, SPARQL
List of violations of this constraint: Database reports/Constraint violations/P7699#Entity types
List of violations of this constraint: Database reports/Constraint violations/P7699#Scope, SPARQL
List of violations of this constraint: Database reports/Constraint violations/P7699#Label in 'lt' language, search, SPARQL
|
LIH justlinks.json
[edit]https://www.wikidata.org/w/index.php?title=Q96074977&diff=1199572682&oldid=1199572678 , coming from https://viaf.org/viaf/4500150470094004330009/justlinks.json ... link does not resolve. MrProperLawAndOrder (talk) 14:36, 5 June 2020 (UTC)
- in VIAF the link goes to
- but justlinks has
- "LIH":["LNB:2bf;=Ba"],
- MrProperLawAndOrder (talk) 14:47, 5 June 2020 (UTC)
- Hi, I saw this problem a few days ago when adding the url formater https://lnb.libis.lt/simpleSearch.do?doSearch=1&AI001=$1 , I see 3 solutions :
- Continue to add the identifier with ab underscore to work with viaf
- Replace the url formater with lnb.libis.lt and ask a bot to remove all underscore to get https://lnb.libis.lt/simpleSearch.do?doSearch=1&AI001=LNB:2bf;=Ba (but third-party formatter URL (P3303) will not work)
- Replace the url formater with a toolforge url ( https://wikidata-externalid-url.toolforge.org ) which will remove the underscore and redirect to lnb.libis.lt, and keep the viaf value with underscore on wikidata
- — eru [Talk] [french wiki] 16:03, 5 June 2020 (UTC)
- It seems to be more complicated, for Konstancija Petrikaitė-Tulienė (Q17296448) we have https://viaf.org/processed/LIH%7CLNB:V-1830;=0L and https://lnb.libis.lt/simpleSearch.do?doSearch=1&AI001=LNB:V*1830;=0L — eru [Talk] [french wiki] 16:40, 5 June 2020 (UTC)
- So, @MrProperLawAndOrder: thank you for noticing the problem! @Eru: I think the solution through Toolforge is probably the best, insomuch as it allows us to use both lnb.libis.lt URL (which should be marked as preferred) and VIAF URL (of course somewhat useful). I would keep the URLs in the form present in justlinks, which perfectly corresponds to that of lnb.libis.lt:
- https://viaf.org/processed/LIH%7CLNB:2_b__f_;=B_a_ // "LIH":["LNB:2bf;=Ba"] in justlinks = https://lnb.libis.lt/simpleSearch.do?doSearch=1&AI001=LNB:2bf;=Ba
- https://viaf.org/processed/LIH%7CLNB:V-1830;=0L // "LIH":["LNB:V*1830;=0L"] in justlinks = https://lnb.libis.lt/simpleSearch.do?doSearch=1&AI001=LNB:V*1830;=0L
- So, Toolforge should add the underscores around minuscule letters and convert * in -. Could work? --Epìdosis 19:20, 5 June 2020 (UTC)
- So, @MrProperLawAndOrder: thank you for noticing the problem! @Eru: I think the solution through Toolforge is probably the best, insomuch as it allows us to use both lnb.libis.lt URL (which should be marked as preferred) and VIAF URL (of course somewhat useful). I would keep the URLs in the form present in justlinks, which perfectly corresponds to that of lnb.libis.lt:
- It seems to be more complicated, for Konstancija Petrikaitė-Tulienė (Q17296448) we have https://viaf.org/processed/LIH%7CLNB:V-1830;=0L and https://lnb.libis.lt/simpleSearch.do?doSearch=1&AI001=LNB:V*1830;=0L — eru [Talk] [french wiki] 16:40, 5 June 2020 (UTC)
- Hi, I saw this problem a few days ago when adding the url formater https://lnb.libis.lt/simpleSearch.do?doSearch=1&AI001=$1 , I see 3 solutions :
@MrProperLawAndOrder, Eru: disagree with toolforge if used for the link to lnb. Third parties and WD itself using WD data would be forced to link to toolforge, that is one more dependency. If LNB and justlinks agree, then store the value as such. Toolforge for VIAF-processed-link is less of a problem, as it is only third party. MrProperLawAndOrder (talk) 19:57, 5 June 2020 (UTC)
- @MrProperLawAndOrder, Epìdosis: I didn't realize that underscores were added around lowercase lettre, so yes, I also thinks it's best to use lnb.libis.lt without toolforge, and ask the tool to convert to viaf format. — eru [Talk] [french wiki] 20:24, 5 June 2020 (UTC)
- OK, we all agree. Also my proposal was to use on Wikidata the URL of lnb.libis.lt+justlinks and to use Toolforge if possible for conversion to VIAF format. @Eru: If you want, I can apply this change to the property and to the existing values. --Epìdosis 20:30, 5 June 2020 (UTC)
- Good, first we need to operate toolforge with a urls like https://wikidata-externalid-url.toolforge.org/?p=7699&url_prefix=https://viaf.org/processed/LIH%7C&id=LNB:2bf;=Ba , I will create a issue on https://github.com/arthurpsmith/wikidata-tools/issues — eru [Talk] [french wiki] 20:44, 5 June 2020 (UTC)
- @MrProperLawAndOrder, Epìdosis: done https://github.com/arthurpsmith/wikidata-tools/issues/21 — eru [Talk] [french wiki] 20:56, 5 June 2020 (UTC)
- More examples seem to confirm the preceding rules, so very well: LNB:xLp;=CE = LNB:_x_L_p_;=CE // LNB:CNYr;=By = LNB:CNY_r_;=B_y_ --Epìdosis 21:01, 5 June 2020 (UTC)
- Property edited, I will now start the removal of _ from existing values. --Epìdosis 21:02, 5 June 2020 (UTC)
Done, all values fixed, partly manually, partly through this (running now). --Epìdosis 12:15, 7 June 2020 (UTC)
- Property edited, I will now start the removal of _ from existing values. --Epìdosis 21:02, 5 June 2020 (UTC)
- More examples seem to confirm the preceding rules, so very well: LNB:xLp;=CE = LNB:_x_L_p_;=CE // LNB:CNYr;=By = LNB:CNY_r_;=B_y_ --Epìdosis 21:01, 5 June 2020 (UTC)
- @MrProperLawAndOrder, Epìdosis: done https://github.com/arthurpsmith/wikidata-tools/issues/21 — eru [Talk] [french wiki] 20:56, 5 June 2020 (UTC)
- Good, first we need to operate toolforge with a urls like https://wikidata-externalid-url.toolforge.org/?p=7699&url_prefix=https://viaf.org/processed/LIH%7C&id=LNB:2bf;=Ba , I will create a issue on https://github.com/arthurpsmith/wikidata-tools/issues — eru [Talk] [french wiki] 20:44, 5 June 2020 (UTC)
- OK, we all agree. Also my proposal was to use on Wikidata the URL of lnb.libis.lt+justlinks and to use Toolforge if possible for conversion to VIAF format. @Eru: If you want, I can apply this change to the property and to the existing values. --Epìdosis 20:30, 5 June 2020 (UTC)
Done, toolforge has been updated and I have configured the third-party formatter URL (P3303) — eru [Talk] [french wiki] 16:38, 9 June 2020 (UTC)
Substitutions
[edit]Table of correspondence for the creation of Toolforge URL for VIAF, gradually updating as I find new things. --Epìdosis 21:18, 5 June 2020 (UTC)
LIH | VIAF | Example | Test |
---|---|---|---|
minuscule letter | _minuscule letter_ | https://www.wikidata.org/w/index.php?title=Q92619&type=revision&diff=1199834917&oldid=1171591716 | https://wikidata-externalid-url.toolforge.org/?p=7699&url_prefix=https://viaf.org/processed/LIH%7C&id=LNB:2bf;=Ba |
+ | __ | https://www.wikidata.org/w/index.php?title=Q670350&type=revision&diff=1199833681&oldid=1199833279 | https://wikidata-externalid-url.toolforge.org/?p=7699&url_prefix=https://viaf.org/processed/LIH%7C&id=LNB:O%2B%2B;=1A |
* | - | https://www.wikidata.org/w/index.php?title=Q231356&type=revision&diff=1199835889&oldid=1179303704 | https://wikidata-externalid-url.toolforge.org/?p=7699&url_prefix=https://viaf.org/processed/LIH%7C&id=LNB:V*159888436;=Bm |
/ | , | https://www.wikidata.org/w/index.php?title=Q923012&type=revision&diff=1199852577&oldid=1199852012 | https://wikidata-externalid-url.toolforge.org/?p=7699&url_prefix=https://viaf.org/processed/LIH%7C&id=LNB:/fy;=B6 |
Queries for finding values to be fixed
[edit]Firstly
#LIH to be fixed containing _
SELECT ?item ?lih WHERE {
?item wdt:P7699 ?lih .
filter(contains(str(?lih),"_"))
}
--Epìdosis 21:23, 5 June 2020 (UTC)
All values to be fixed:
#All LIH to be fixed
SELECT ?item ?lih WHERE {
?item wdt:P7699 ?lih .
FILTER(CONTAINS(STR(?lih),"_")||(CONTAINS(STR(?lih),"-"))||(CONTAINS(STR(?lih),",")))
}
ORDER BY ?lih
--Epìdosis 10:22, 7 June 2020 (UTC)
Updated the property constraint
[edit]Any values containing the "bad" characters get a constraint hint now. --Sotho Tal Ker (talk) 01:22, 13 June 2020 (UTC)
"But the id values are just crazy" had written @Vladimir Alexiev:
[edit]Ciao Epìdosis (batch creator) and Hello @MrProperLawAndOrder, Eru, Gerwoman, Pintoch:,
I haven't looked at everything, but I have already replaced 2 values: Switzerland (Q39) and Croatia (Q224). The identifier should be retrieved from the site itself. —Eihel (talk) 20:18, 7 June 2020 (UTC)
- Lithuania-related properties
- All Properties
- Properties with external-id-datatype
- Properties used on 10000+ items
- Properties with single value constraints
- Properties with unique value constraints
- Properties with format constraints
- Properties with entity type constraints
- Properties with scope constraints
- Properties with label language constraints