Property talk:P6460

Documentation

Swedish Organization Number
sequence of two numberpairs that is unique to a Swedish company or organization given out by the responsible government department
Associated itemSwedish Companies Registration Office (Q891249)
Data typeExternal identifier
Domainorganization (Q43229)
Allowed values(\d{8}\-\d{4})
ExampleKlarna (Q1165072)556737-0431
Arla Foods (Q674575)556579-4400
Vionlabs (Q60685966)556804-5420
Paradox Interactive (Q217493)556667-4759
Swedish Companies Registration Office (Q891249)202100-5489
Swedish Red Cross (Q18333444)802002-8711
Formatter URLhttps://wikidata-externalid-url.toolforge.org/?p=6460&url_prefix=https://www.allabolag.se/&id=$1
https://foretagsinfo.bolagsverket.se/sok-foretagsinformation-web/foretag?sokord=$1
Related to country  Sweden (Q34) (See 117 others)
See alsoOpenCorporates ID (P1320), Norwegian organisation number (P2333)
Lists
Proposal discussionProposal discussion
Current uses
Total4,589
Main statement2,72259.3% of uses
Qualifier60.1% of uses
Reference1,86140.6% of uses
Search for values
[create Create a translatable help page (preferably in English) for this property to be included here]
Type “organization (Q43229): item must contain property “instance of (P31)” with classes “organization (Q43229)” or their subclasses (defined using subclass of (P279)). (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/P6460#Type Q43229, SPARQL
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/P6460#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/P6460#Unique value, SPARQL (every item), SPARQL (by value)
Format “(\d{6}\-\d{4}): 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/P6460#Format, SPARQL
Item “country (P17): Sweden (Q34): Items with this property should also have “country (P17): Sweden (Q34)”. (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/P6460#Item P17, 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/P6460#Entity types
Item “legal form (P1454): Items with this property should also have “legal form (P1454)”. (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/P6460#Item P1454, search, SPARQL
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/P6460#Scope, SPARQL
Label required in languages: sv: Entities using this property should have labels in one of the following languages: sv (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/P6460#Label in 'sv' language, search, SPARQL
Item “OpenCorporates ID (P1320): Items with this property should also have “OpenCorporates ID (P1320)”. (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/P6460#Item P1320, search, SPARQL
 
Validate swedish organization numbers
Report organizations with incorrect organization numbers, found by validating the checksum (Help)
Violations query: SELECT ?item #?itemLabel ?orgnr ?checksum ?checksum2 WITH { SELECT DISTINCT * WHERE { ?item wdt:P6460 ?orgnr . FILTER(strlen(?orgnr) = 11) BIND(IF(xsd:integer(substr(?orgnr, 1, 1))*2 > 9, xsd:integer(substr(?orgnr, 1, 1))*2 - 9, xsd:integer(substr(?orgnr, 1, 1))*2) + xsd:integer(substr(?orgnr, 2, 1))*1 + IF(xsd:integer(substr(?orgnr, 3, 1))*2 > 9, xsd:integer(substr(?orgnr, 3, 1))*2 - 9, xsd:integer(substr(?orgnr, 3, 1))*2) + xsd:integer(substr(?orgnr, 4, 1))*1 + IF(xsd:integer(substr(?orgnr, 5, 1))*2 > 9, xsd:integer(substr(?orgnr, 5, 1))*2 - 9, xsd:integer(substr(?orgnr, 5, 1))*2) + xsd:integer(substr(?orgnr, 6, 1))*1 + IF(xsd:integer(substr(?orgnr, 8, 1))*2 > 9, xsd:integer(substr(?orgnr, 8, 1))*2 - 9, xsd:integer(substr(?orgnr, 8, 1))*2) + xsd:integer(substr(?orgnr, 9, 1))*1 + IF(xsd:integer(substr(?orgnr, 10, 1))*2 > 9, xsd:integer(substr(?orgnr, 10, 1))*2 - 9, xsd:integer(substr(?orgnr, 10, 1))*2) AS ?checksum) BIND(10*CEIL(?checksum/10) - ?checksum AS ?checksum2) FILTER(substr(?orgnr, 11, 1) != ?checksum2 && substr(?orgnr, 3, 1) > 1) } #LIMIT 1000 } AS %i WHERE { INCLUDE %i SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en" . } }
List of this constraint violations: Database reports/Complex constraint violations/P6460#Validate swedish organization numbers
Return to "P6460" page.