Property talk:P1059
Documentation
unique identifier for a business in Denmark's Central Business Register (CVR), the official database of Danish businesses.
List of violations of this constraint: Database reports/Constraint violations/P1059#Unique value, SPARQL (every item), SPARQL (by value)
List of violations of this constraint: Database reports/Constraint violations/P1059#Single value, SPARQL
List of violations of this constraint: Database reports/Constraint violations/P1059#Format, SPARQL
List of violations of this constraint: Database reports/Constraint violations/P1059#Item P17, search
List of violations of this constraint: Database reports/Constraint violations/P1059#Type Q43229, SPARQL
List of violations of this constraint: Database reports/Constraint violations/P1059#Item P31, search, SPARQL
List of violations of this constraint: Database reports/Constraint violations/P1059#Entity types
List of violations of this constraint: Database reports/Constraint violations/P1059#Scope, SPARQL
List of violations of this constraint: Database reports/Constraint violations/P1059#Item P1320, search, SPARQL
List of violations of this constraint: Database reports/Constraint violations/P1059#Item P1454
List of violations of this constraint: Database reports/Constraint violations/P1059#Label in 'da' language, search, SPARQL
Report organizations with incorrect organization numbers, found by validating the checksum (Help)
Violations query:
SELECT ?item #?itemLabel ?cvrnr ?checksum ?checksum2 ?checksum3 ?quot ?rem WITH { SELECT DISTINCT * WHERE { ?item wdt:P1059 ?cvrnr . FILTER(strlen(?cvrnr) = 8) BIND(xsd:integer(substr(?cvrnr, 1, 1))*2 + xsd:integer(substr(?cvrnr, 2, 1))*7 + xsd:integer(substr(?cvrnr, 3, 1))*6 + xsd:integer(substr(?cvrnr, 4, 1))*5 + xsd:integer(substr(?cvrnr, 5, 1))*4 + xsd:integer(substr(?cvrnr, 6, 1))*3 + xsd:integer(substr(?cvrnr, 7, 1))*2 AS ?checksum) #BIND(floor(?checksum/11) AS ?quot) #BIND(?checksum - 11*?quot AS ?rem) BIND(11 - ?checksum + 11*floor(?checksum/11) AS ?checksum2) BIND(IF(?checksum2 = 11, "0", IF(?checksum2 = 10, "-", STR(?checksum2))) AS ?checksum3) FILTER(?checksum2 = 10 || substr(?cvrnr, 8, 1) != ?checksum3) } #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/P1059#Validate danish organization numbers
This property is being used by:
Please notify projects that use this property before big changes (renaming, deletion, merge with another property, etc.) |
|
Justification
[edit]Most larger Danish companies (i.e., companies with more than one employee) have a CVR-number that uniquely identifies the company or organization, e.g., the Danish Chapter of Wikimedia has a CVR number and the company Lundbeck (Q902171) has the number 56759913. The number can be resolved to a lookup on the Danish site cvr.dk, e.g., for Lundbeck (Q902171) it is http://cvr.dk/Site/Forms/PublicService/DisplayCompany.aspx?cvrnr=56759913. This allows for further access to headquarters address, type, branch, starting date, board members, etc. Finn Årup Nielsen (fnielsen) (talk) 13:11, 8 November 2013 (UTC)
Why presently format violations?
[edit]Presently, the report "Constraint violations" mentions that all present values are wrong wrt. format, e.g., "56759913" is listed even though the regular expresion, "\d{8}" looks ok to me. Why? — Finn Årup Nielsen (fnielsen) (talk) 18:01, 21 January 2014 (UTC)
- The error seems no longer to be present. Thanks for the fix. — Finn Årup Nielsen (fnielsen) (talk) 13:59, 8 April 2014 (UTC)
API
[edit]Udover det officielle API er der flere private der trækker på det offentlige system og stiller service tilrådighed: http://cvrapi.dk/ er forholdsvist nemt at bruge. — Finn Årup Nielsen (fnielsen) (talk) 15:47, 7 December 2015 (UTC)
extra format ?
[edit]@Fnielsen:
Notified participants of WikiProject Companies
Notified participants of WikiProject Economics
https://www.wikidata.org/wiki/Wikidata:Database_reports/Constraint_violations/P1059#%22Format%22_violations shows a number of violations where the ID is formatted as A/S\d{4,5} , eg http://datacvr.virk.dk/data/visenhed?enhedstype=virksomhed&id=A/S46887 . I checked 4 and:
- They all are dissolved companies.
- They resolve ok at datacvr.virk.dk
- They don't resolve at OpenCorporates.com
- I checked by replacing "A/S" with 3 leading zeros http://datacvr.virk.dk/data/visenhed?enhedstype=virksomhed&id=00046887 , doesn't work
- This "dissolved company number" is called "Registration number" rather than "CVR number" but it's passed in the same query param "id="
- I submit it's not smart on part of DK CVR to change the format of id upon dissolution. But in any case, shouldn't we add this extra format?
--Vladimir Alexiev (talk) 15:44, 5 November 2021 (UTC)
- Support ArthurPSmith (talk) 16:46, 5 November 2021 (UTC)
- Support - PKM (talk) 21:07, 5 November 2021 (UTC)
- Support Yes, we can add this format. I believe it is not because the company is desolved, I think it is because it is an old company. I do not think they change the ID based on status. Most recent companies that are "Opløst efter fusion" should maintain the CVR number. If my understanding is correct. — Finn Årup Nielsen (fnielsen) (talk) 22:02, 14 November 2021 (UTC)
- From the explanation above, it seems to me that is an additional, different type of identifier, that I'd expect to be in another property. --- Jura 22:26, 14 November 2021 (UTC)
- It seems that companies with old-style identifiers also have an 8-digit “pseudo” CVR number, which is visible in the URL on cvr.dk. E.g Privatbanken (Q12332389), A/S227, has the URL https://datacvr.virk.dk/enhed/virksomhed/10453356. The 8-digit number is used in the OpenCorporates ID, dk/10453356. We may want to use this number in the CVR number (P1059) property as well, possibly with a qualifier indicating that it is not a real CVR number. At least this will make auto-linking to cvr.dk work. --C960657 (talk) 16:29, 28 September 2022 (UTC)
- Denmark-related properties
- Greenland-related properties
- All Properties
- Properties with external-id-datatype
- Properties used on 10000+ items
- Properties with unique value constraints
- Properties with single value constraints
- Properties with format constraints
- Properties with constraints on items using them
- Properties with constraints on type
- Properties with entity type constraints
- Properties with scope constraints
- Properties with label language constraints
- Properties with complex constraints