Property talk:P458

From Wikidata
Jump to navigation Jump to search

Documentation

IMO ship number
identifier for a ship, ship owner or ship manager per the International Maritime Organization
DescriptionInternational Maritime Organization (IMO) number is a unique identifier for ships - International Maritime Organization (Q201054).
RepresentsIMO number (Q1970938)
Data typeExternal identifier
Template parameteren:template:Infobox ship career : Ship identification
Domain
According to this template: ships - watercraft (Q1229765)
According to statements in the property:
watercraft (Q1229765), business (Q4830453) or navy (Q4508)
When possible, data should only be stored as statements
Allowed values[1-9]\d{6}
ExampleQueen Elizabeth 2 (Q1244204)6725418
FSO Asia (Q19364025)9224752
Sourcehttps://en.wikipedia.org/wiki/Category:IMO_Number
https://en.wikipedia.org/wiki/IMO_number#Ship_Identification_Number
https://commons.wikimedia.org/wiki/Category:Ships_by_IMO_number
Formatter URLhttps://gisis.imo.org/Public/SHIPS/ShipDetails.aspx?IMONumber=$1 (Requires free account and login)
Tracking: usageCategory:Pages using Wikidata property P458 (Q26869547)
See alsoMMSI (P587), ENI number (P5910)
Lists
Proposal discussionProposal discussion
Current uses
Total94,418
Main statement94,408>99.9% of uses
Qualifier4<0.1% of uses
Reference6<0.1% of uses
Search for values
[create Create a translatable help page (preferably in English) for this property to be included here]
Format “[0-9]\d{6}|: value must be formatted using this pattern (PCRE syntax). (Help)
List of violations of this constraint: Database reports/Constraint violations/P458#Format, hourly updated report, 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). Known exceptions: Thor (Q29654241)
List of violations of this constraint: Database reports/Constraint violations/P458#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/P458#Unique value, SPARQL (every item), SPARQL (by value)
Type “watercraft (Q1229765), business (Q4830453), navy (Q4508): item must contain property “instance of (P31)” with classes “watercraft (Q1229765), business (Q4830453), navy (Q4508)” 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/P458#Type Q1229765, Q4830453, Q4508, 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/P458#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/P458#Scope, SPARQL
Validate IMO-numbers
Report ships or shipping lines with incorrect IMO-numbers, found by validating the checksum (Help)
Violations query: SELECT ?item # ?itemLabel ?imonr ?checksum ?checksum2 WITH { SELECT DISTINCT * WHERE { ?item wdt:P458 ?imonr . FILTER(strlen(?imonr) = 7) BIND(xsd:integer(substr(?imonr, 1, 1))*7 + xsd:integer(substr(?imonr, 2, 1))*6 + xsd:integer(substr(?imonr, 3, 1))*5 + xsd:integer(substr(?imonr, 4, 1))*4 + xsd:integer(substr(?imonr, 5, 1))*3 + xsd:integer(substr(?imonr, 6, 1))*2 AS ?checksum) BIND(substr(str(?checksum), strlen(str(?checksum)), 1) AS ?checksum2) FILTER(substr(?imonr, 7, 1) != ?checksum2) } } 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/P458#Validate IMO-numbers

Official IMO resolver[edit]

I set formatterUrl to https://gisis.imo.org/Public/SHIPS/ShipDetails.aspx?IMONumber=$1 as Preferred because that's the official site. But because of the problem below, I'll now set it to Deprecated.

Reported at https://webaccounts.imo.org/Common/ContactUs.aspx

GISIS login is broken.

When I try to get to a ship record eg https://gisis.imo.org/Public/SHIPS/ShipDetails.aspx?IMONumber=5121952

it gets into an authorization loop with https://login.microsoftonline.com/

 Request Id: e4bf6fc6-797d-46bc-b09e-c3371e9a2000
 Correlation Id: 78272eaf-c042-4e25-98b3-c87914dcadf0
 Timestamp: 2021-01-04T09:09:45Z
 Message: AADSTS50196: The server terminated an operation because it encountered a client request loop. Please contact your app vendor.

This despite the fact that I'm logged to https://webaccounts.imo.org/Public/Default.aspx !

This is an urgent problem, please fix it soon!

I've set your site as IMO resolver (formatterUrl) at https://www.wikidata.org/wiki/Property:P458 , but I'll have to now set it to "deprecated" status because of this problem.

--Vladimir Alexiev (talk) 09:17, 4 January 2021 (UTC)[reply]

PS: I got this error while trying to submit feedback, so I posted on Twitter instead: https://twitter.com/valexiev1/status/1346024426966552576

SmtpException: Mailbox unavailable. The server response was:
The from address does not match a verified Sender Identity.
Mail cannot be sent until this error is resolved.
Visit https://sendgrid.com/docs/for-developers/sending-email/sender-identity/ to see the Sender Identity requirements
Could we please change the preferred formatter URL back to Marinetraffic.com? The IMO site requires login which is annoying, and forces people to cut and paste manually. Infrastruktur (talk) 21:19, 25 January 2023 (UTC)[reply]

Type constraint[edit]

Currently, this property is set up for single usage, but ships can change their name while the IMO is kept throughout the hull's life. I think it should therefore be possible to enter the IMO number at multiple items that treat different names of the same ship hull. De728631 (talk) 21:18, 20 August 2021 (UTC)[reply]

Apparently there is already an open query. De728631 (talk) 18:26, 21 August 2021 (UTC)[reply]