Property talk:P492

From Wikidata
Jump to navigation Jump to search

Documentation

OMIM ID
Online "Mendelian Inheritance in Man" catalogue codes for diseases, genes, or phenotypes
DescriptionOnline Mendelian Inheritance in Man catalogue codes for diseases
Representsdisease (Q12136), gene (Q7187), phenotype (Q104053)
Associated itemOnline Mendelian Inheritance in Man (Q241953)
Applicable "stated in" valueOnline Mendelian Inheritance in Man (Q241953)
Data typeExternal identifier
Template parameteren:Template:Infobox disease field OMIM
Domain
According to this template: disease
According to statements in the property:
physiological condition (Q7189713), gene (Q7187) or disease (Q12136)
When possible, data should only be stored as statements
Allowed values\d{6} (numeric string, 6 digits)
ExampleHuntington's disease (Q190564)143100
dengue fever (Q30953)614371
Formatter URLhttps://omim.org/entry/$1
https://omim.org/OMIM:$1
Tracking: usageCategory:Pages using Wikidata property P492 (Q32588275)
Tracking: local yes, WD nono label (Q101364122)
Lists
Proposal discussionProposal discussion
Current uses
Total27,691
Main statement27,683 out of 27,073 (102% complete)>99.9% of uses
Qualifier2<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 “\d{6}: value must be formatted using this pattern (PCRE syntax). (Help)
List of violations of this constraint: Database reports/Constraint violations/P492#Format, hourly updated report, SPARQL
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/P492#Type Q7189713, Q7187, Q12136, 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/P492#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/P492#Scope, SPARQL
Modified single value constraint
Lists items having more than one value, except if one of the statements has a mapping relation type (P4390) qualifier, see discusion below. Please don't switch on the normal single value0 constraint, use this instead. (Help)
Violations query: SELECT DISTINCT ?item ?itemLabel ?count ?sample1 ?sample2 ?exception WHERE { { SELECT ?item (COUNT(?value) AS ?count) (MIN(?value) AS ?sample1) (MAX(?value) AS ?sample2) { ?item wdt:P492 ?value . MINUS { ?item p:P492 ?stmt. ?stmt pq:P4390 [] } } GROUP BY ?item HAVING ( ?count > 1 ) } . SERVICE wikibase:label { bd:serviceParam wikibase:language "en" } . } ORDER BY DESC(?count)
List of this constraint violations: Database reports/Complex constraint violations/P492#Modified single value constraint


Pattern ^PS(\d{6})$ will be automatically replaced to \1.
Testing: TODO list
This property is being used by:

Please notify projects that use this property before big changes (renaming, deletion, merge with another property, etc.)

OMIM has mixed entries

[edit]

Clearly the distinct values constraint does not reflect reality. OMIM has entries containing:

  • gene + phenotype (example: 100650), count: 41
  • "predominantly phenotypes" as they call it, which is also gene + phenotype (example: 108700), count: 1750
  • gene (example: 108780), count: 16140
  • phenotype (example: 112240), count: 7171

So I'm removing the constraint. --SCIdude (talk) 15:24, 19 August 2019 (UTC)[reply]

modified single value constraint

[edit]

The complex constraint I just added lists all violating items where none of the statements has a mapping relation qualifier. I'm proposing to remove the current single value constraint because it gives false positives, see https://phabricator.wikimedia.org/T242079. Please give your opinion. --SCIdude (talk) 14:44, 10 January 2020 (UTC)[reply]

Not sure if using mapping relation type (P4390) here is a good idea, but that's another question. --- Jura 16:42, 21 June 2021 (UTC)[reply]