Property talk:P7699

Latest comment: 3 years ago by Sotho Tal Ker in topic LIH justlinks.json

Documentation

National Library of Lithuania ID
authority id at the National Library of Lithuania, part of VIAF (code LIH)
Associated itemMartynas Mažvydas National Library of Lithuania (Q1635759)
Applicable "stated in" valueElektroninis katalogas (Q105945772)
Has qualityVIAF component (Q26921380)
Data typeExternal identifier
Allowed valuesLNB:([A-Za-z0-9+/]{3,4}|[DV]\*[0-9]{2,9});=[A-Za-z0-9+/]{2}
ExampleRamūnas Katilius (Q12670913)LNB:V*322149;=BH
Claude Monet (Q296)LNB:V*173438;=BM
Sourcehttps://lnb.libis.lt/showCustomPage.do?showByIdentificator=aiSearch
Formatter URLhttps://wikidata-externalid-url.toolforge.org/?p=7699&url_prefix=https://viaf.org/processed/LIH%7C&id=$1
Related to country  Lithuania (Q37) (See 24 others)
See alsoLIMIS person ID (P8805)
Lists
Proposal discussionProposal discussion
Current uses
Total53,549
Main statement53,483 out of 747,513 (7% complete)99.9% of uses
Qualifier2<0.1% of uses
Reference640.1% of uses
Search for values
[create Create a translatable help page (preferably in English) for this property to be included here]
Single value: this property generally contains a single value. (Help)
Exceptions are possible as rare values may exist. Exceptions can be specified using exception to constraint (P2303).
List of violations of this constraint: Database reports/Constraint violations/P7699#Single value, SPARQL
Distinct values: this property likely contains a value that is different from all other items. (Help)
Exceptions are possible as rare values may exist. Exceptions can be specified using exception to constraint (P2303).
List of violations of this constraint: Database reports/Constraint violations/P7699#Unique value, SPARQL (every item), SPARQL (by value)
Format “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)
Exceptions are possible as rare values may exist. Exceptions can be specified using exception to constraint (P2303).
List of violations of this constraint: Database reports/Constraint violations/P7699#Format, SPARQL
Allowed entity types are Wikibase item (Q29934200): the property may only be used on a certain entity type (Help)
Exceptions are possible as rare values may exist. Exceptions can be specified using exception to constraint (P2303).
List of violations of this constraint: Database reports/Constraint violations/P7699#Entity types
Scope is as main value (Q54828448), as reference (Q54828450): the property must be used by specified way only (Help)
Exceptions are possible as rare values may exist. Exceptions can be specified using exception to constraint (P2303).
List of violations of this constraint: Database reports/Constraint violations/P7699#Scope, 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)Reply

in VIAF the link goes to
but justlinks has
  • "LIH":["LNB:2bf;=Ba"],
MrProperLawAndOrder (talk) 14:47, 5 June 2020 (UTC)Reply
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 :
eru [Talk] [french wiki] 16:03, 5 June 2020 (UTC)Reply
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;=0Leru [Talk] [french wiki] 16:40, 5 June 2020 (UTC)Reply
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:
So, Toolforge should add the underscores around minuscule letters and convert * in -. Could work? --Epìdosis 19:20, 5 June 2020 (UTC)Reply

@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)Reply

@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)Reply
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)Reply
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/issueseru [Talk] [french wiki] 20:44, 5 June 2020 (UTC)Reply
@MrProperLawAndOrder, Epìdosis: done https://github.com/arthurpsmith/wikidata-tools/issues/21eru [Talk] [french wiki] 20:56, 5 June 2020 (UTC)Reply
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)Reply
Property edited, I will now start the removal of _ from existing values. --Epìdosis 21:02, 5 June 2020 (UTC)Reply
  Done, all values fixed, partly manually, partly through this (running now). --Epìdosis 12:15, 7 June 2020 (UTC)Reply

────────────────────────────────────────────────────────────────────────────────────────────────────   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)Reply

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)Reply

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),"_"))
}
Try it!

--Epìdosis 21:23, 5 June 2020 (UTC)Reply

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
Try it!

--Epìdosis 10:22, 7 June 2020 (UTC)Reply

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)Reply

"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)Reply

Return to "P7699" page.