Property talk:P1148

From Wikidata
Jump to navigation Jump to search

Documentation

[create Create a translatable help page (preferably in English) for this property to be included here]
Type “isotope (Q25276), atomic nucleus (Q37147): item must contain property “instance of (P31)” with classes “isotope (Q25276), atomic nucleus (Q37147)” 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/P1148#Type Q25276, Q37147, SPARQL
Range from “-1” to “200”: values should be in the range from “-1” to “200”. (Help)
List of violations of this constraint: Database reports/Constraint violations/P1148#Range, hourly updated report
Single value: this property generally contains a single value. (Help)
List of violations of this constraint: Database reports/Constraint violations/P1148#Single value, hourly updated report, SPARQL
Units: “novalue”: value unit must be one of listed. (Help)
List of violations of this constraint: Database reports/Constraint violations/P1148#Units, hourly updated report
No bounds: values can't have any bounds (e.g. 1 not 1±0) (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/P1148#No Bounds, SPARQL
Integer: values should be integers (ie. they shouldn't have a fractional part) (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/P1148#integer, SPARQL
Scope is as main value (Q54828448): the property must be used by specified way only (Help)
List of violations of this constraint: Database reports/Constraint violations/P1148#Scope, hourly updated report, 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/P1148#Entity types
Correct rank for isotopes
rank in the series (instance of qualifier) of some isotope of some element should be the sum of the atomic number and the neutron number (Help)
Violations query: select (?isotope as ?item) ?rank ?neutron_number ?at_number { ?isotopeclass wdt:P279* wd:Q25276 . ?isotope p:P31 [ ps:P31 ?isotopeclass ; pq:P1545 ?rank ] . ?isotope wdt:P1148 ?neutron_number ; wdt:P1086 ?at_number . filter (?at_number + ?neutron_number != xsd:integer(?rank) ) # check that the ranking number is the sum of the atomic number and the neutron number }
List of this constraint violations: Database reports/Complex constraint violations/P1148#Correct rank for isotopes
Correct english label for isotopes
english label for isotopes should follow the pattern "[elementname]-[number of nuclides]". If not something is probably wrong. (Help)
Violations query: select distinct (?isotope as ?item) ?rank ?neutron_number ?at_number ?isotopeLabelEn ?elementLabelEn { ?isotopeclass wdt:P279* wd:Q25276 . ?isotope p:P31 [ ps:P31 ?isotopeclass ; pq:P1545 ?rank ] . ?isotope wdt:P1148 ?neutron_number ; wdt:P1086 ?at_number ; wdt:P31/p:P279 [ps:P279 wd:Q25276 ; pq:P642 ?element ] . ?element wdt:P31 wd:Q11344 ; rdfs:label ?elementLabelEn . filter (lang(?elementLabelEn) = "en" ) ?isotope rdfs:label ?isotopeLabelEn filter (lang(?isotopeLabelEn) = "en") . filter (str(?isotopeLabelEn) != concat(?elementLabelEn,"-",?rank) ) #exceptions filter not exists { values (?isotope ?isotopeLabelEn ?rank) { (wd:Q54389 "tritium"@en "3") (wd:Q102296 "deuterium"@en "2") (wd:Q12830437 "protium"@en "1") } } }
List of this constraint violations: Database reports/Complex constraint violations/P1148#Correct english label for isotopes

Discussion[edit]

No bounds[edit]

Just as with atomic number (P1086) (see Property talk:P1086#No bounds), I plan to remove bounds from all values of this property as well as they intrinsically do not have an uncertainty. The number of claims that need to be fixed is a bit above 4700. The batch will probably start tomorrow, so if there is any concern, please raise it here… —MisterSynergy (talk) 16:41, 27 April 2018 (UTC)[reply]