Property talk:P1386

From Wikidata
Jump to navigation Jump to search

Documentation

Japanese High School Code
identifier for a high school in Japan
DescriptionHighschool identification code for Japanese public schools
Associated itemNational Center for University Entrance Examinations (Q1770587)
Has qualitycheck digit (Q1337960)
Data typeExternal identifier
Template parameter"高校コード" in jp:template:日本の高等学校 - Q20703208
DomainJapanese high school (Q56351315), college of technology in Japan (Q841248), Secondary education school of Japan (Q11366867) or special needs school in Japan (Q43271061)
Allowed values\d{5}[A-HJK]
ExampleIno Business High School (Q11672444) → 39119A
Tokyo Metropolitan College of Industrial Technology (Q11525550) → 13493H
no label (Q11445041) → 29001H
Sourcehttps://www.dnc.ac.jp/albums/abm.php?d=253&f=abm00002334.pdf&n=H31_%E9%AB%98%E7%AD%89%E5%AD%A6%E6%A0%A1%E7%AD%89%E3%82%B3%E3%83%BC%E3%83%89%E8%A1%A8.pdf
Related to country Japan (Q17) (See 145 others)
Lists
Proposal discussionProposal discussion
Current uses
Total6,197
Main statement6,194 out of 6,109 (101% complete)>99.9% of uses
Qualifier3<0.1% of uses
Search for values
[create Create a translatable help page (preferably in English) for this property to be included here]
Label required in languages: ja: Entities using this property should have labels in one of the following languages: ja (Help)
List of violations of this constraint: Database reports/Constraint violations/P1386#Label in 'ja' language, hourly updated report, search, 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/P1386#Entity types
Scope is as main value (Q54828448): 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/P1386#Scope, SPARQL
Item “instance of (P31): Items with this property should also have “instance of (P31)”. (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/P1386#Item P31, search, SPARQL
Item “country (P17): Japan (Q17): Items with this property should also have “country (P17): Japan (Q17)”. (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/P1386#Item P17, search, SPARQL
Format “\d{5}[A-HJK]: 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/P1386#Format, 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/P1386#Unique value, SPARQL (every item), SPARQL (by value)
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/P1386#Single value, SPARQL
Invalid Japanese High School Code
Japanese High School Code that have wrong checksum (no authentic documents) (Help)
Violations query: SELECT ?item ?value { { ?item wdt:P1386 ?value } UNION { ?statement pq:P1386 ?value . ?item ?p ?statement . ?prop wikibase:claim ?p } UNION { ?ref pr:P1386 ?value . ?statement prov:wasDerivedFrom ?ref . ?item ?p ?statement . ?prop wikibase:claim ?p } . FILTER( STRLEN(?value) = 6 ) . BIND( xsd:integer(SUBSTR(?value, 1, 1)) * 6 + xsd:integer(SUBSTR(?value, 2, 1)) * 5 + xsd:integer(SUBSTR(?value, 3, 1)) * 4 + xsd:integer(SUBSTR(?value, 4, 1)) * 3 + xsd:integer(SUBSTR(?value, 5, 1)) * 2 AS ?checksum) . BIND( ?checksum - FLOOR(?checksum / 11) * 11 AS ?checknum ) . FILTER( SUBSTR(?value, 6, 1) != SUBSTR("AAKJHGFEDCB", ?checknum + 1, 1) ) } ORDER BY ?value
List of this constraint violations: Database reports/Complex constraint violations/P1386#Invalid Japanese High School Code