Property talk:P2659
Add topicDocumentation
minimum distance to a point of higher elevation
List of violations of this constraint: Database reports/Constraint violations/P2659#Type Q8502, Q207326, Q54050, SPARQL
List of violations of this constraint: Database reports/Constraint violations/P2659#Units, SPARQL
List of violations of this constraint: Database reports/Constraint violations/P2659#Range, SPARQL
List of violations of this constraint: Database reports/Constraint violations/P2659#Entity types
constraint “required qualifier constraint (Q21510856)” declaration error: “this constraint does not support parameter “class (P2308)”, supported parameters are: “constraint status (P2316), exception to constraint (P2303), group by (P2304), syntax clarification (P2916), constraint clarification (P6607), separator (P4155), constraint scope (P4680), property scope (P5314), item of property constraint (P2305), replacement property (P6824), replacement value (P9729), Wikimedia language code (P424), Wikimedia Commons namespace (P2307), property (P2306)””.
TODO: correct value or coordinates, adjust ranks, define exceptions (Help)
Violations query:
SELECT ?item ?itemLabel ?parentpeak ?parentpeakLabel ?topo_dist ?dist { ?item wdt:P3137 ?parentpeak . ?item p:P2659 / psn:P2659 / wikibase:quantityAmount ?topo_dist . ?item wdt:P625 ?coor . ?parentpeak wdt:P625 ?parentpeak_coor . BIND( ROUND(geof:distance(?coor, ?parentpeak_coor)*1000) as ?dist) FILTER( ?topo_dist >= ?dist && (?topo_dist / ?dist) > 1.05 # 3% tolerance && ?topo_dist >= (?dist + 1000) # 1000 m tolerance ) FILTER( ?item not in ( wd:Q15397819 , wd:Q4115189 ) ) SERVICE wikibase:label { bd:serviceParam wikibase:language "en,en" } } LIMIT 100List of this constraint violations: Database reports/Complex constraint violations/P2659#value < distance to parent peak
|
This property is being used by:
Please notify projects that use this property before big changes (renaming, deletion, merge with another property, etc.) |
Statistics
[edit]Discussion
[edit]Range constraint
[edit]Why 961 km is regarded at Q739484 as a violation? --Infovarius (talk) 14:16, 21 June 2018 (UTC)
- Somehow it fails when you add "km". Maybe the check is in metres. It passes now that I increased the limit *1000. Is it a bug or do we need to add units to the constraint? Maybe Lucas Werkmeister can help.
--- Jura 14:30, 21 June 2018 (UTC)
- @Infovarius, Jura1: WikibaseQualityConstraints applies unit conversions when checking “range” and “difference within range”. Since the constraint didn’t specify a range, it was interpreted as “metres” (the default unit for lengths). See also phabricator:T193870 :/ --Lucas Werkmeister (WMDE) (talk) 17:22, 21 June 2018 (UTC)
- All Properties
- Properties with quantity-datatype
- Properties used on 1000+ items
- Properties with constraints on type
- Properties with units constraints
- Properties with range constraints
- Properties with scope constraints
- Properties with entity type constraints
- Properties with constraint declaration errors
- Properties with complex constraints