Property talk:P3896

From Wikidata
Jump to navigation Jump to search

Documentation

geoshape
geographic data from Wikimedia Commons
[create Create a translatable help page (preferably in English) for this property to be included here]
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/P3896#Scope, hourly updated report, SPARQL
Format “Data:.+\.map: value must be formatted using this pattern (PCRE syntax). (Help)
List of violations of this constraint: Database reports/Constraint violations/P3896#Format, hourly updated report, SPARQL
Item “instance of (P31): Items with this property should also have “instance of (P31)”. (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/P3896#Item P31, SPARQL
Link to Commons namespace “Data”: this property should contain a well-formed link to an existing page on Wikimedia Commons. (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/P3896#Commons link
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/P3896#Entity types
Item “coordinate location (P625): Items with this property should also have “coordinate location (P625)”. (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/P3896#Item P625, SPARQL
Item “country (P17): Items with this property should also have “country (P17)”. (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/P3896#Item P17, SPARQL

Constraints[edit]

Discussion[edit]

False positive format constraint violations?[edit]

Lucas Werkmeister (WMDE)
Jarekt - mostly interested in properties related to Commons
MisterSynergy
John Samuel
Sannita
Yair rand
Jon Harald Søby
Pasleim
Jura
PKM
ChristianKl
Sjoerddebruin
Salgo60
Fralambert
Manu1400
Was a bee
Malore
Ivanhercaz
Peter F. Patel-Schneider
Pizza1016
Ogoorcs
ZI Jony
Eihel
cdo256
Epìdosis
Dhx1
99of9
Mathieu Kappler
Lectrician1
SM5POR
Infrastruktur

Notified participants of WikiProject property constraints

Looking at the violations of the format constraint, I can't see why they don't match the regex. See Highland (Q208279) as an example. --SilentSpike (talk) 10:03, 29 March 2019 (UTC)[reply]

@SilentSpike: the only constraint violation I see is not for a format constraint, but for a Commons link constraint. It looks like we’re still not handling the Data namespace correctly there – I’ve opened T219619 to fix that. --Lucas Werkmeister (WMDE) (talk) 11:03, 29 March 2019 (UTC)[reply]
@Lucas Werkmeister (WMDE): You're correct, I had misread the warning and confused the two constraints in my head. Thank you for your insight and opening a Phabricator task. --SilentSpike (talk) 11:14, 29 March 2019 (UTC)[reply]

Expand to biological taxa?[edit]

Hi, I am looking to use the Data namespace on Commons to upload distribution data from an open source atlas on mammal species [atlas-mamiferos.uevora.pt/index.php/mapas/]. However I cannot add the map data c:Data:Atlas de Mamíferos de Portugal/Apodemus sylvaticus.map to the species item Q212185 because it is not a place. Do I need to propose a new property, redefine the restrictions here or scrape my project? GoEThe (talk) 15:35, 4 December 2019 (UTC)[reply]

I'd propose a new property, similar to taxon range map image (P181) --- Jura 15:38, 4 December 2019 (UTC)[reply]

Link to specific shapes[edit]

Does anyone know if it's possible to link to specific shapes/polygons in a geoshape? E.g. to link to a specific municipality on an item, without having to make separate .map GeoJSON files on Commons for every municipality. Husky (talk) 11:59, 16 December 2020 (UTC)[reply]

links not working on Query Service[edit]

SELECT ?item ?value WHERE { ?item wdt:P3896 ?value. FILTER(CONTAINS(STR(?value), "+")) }
Try it!

Seems they all don't work. --- Jura 12:28, 16 February 2022 (UTC)[reply]

Apparently, a known problem: [1] (Feb 2022) and phab:T178184 (Oct 2017). --- Jura 13:54, 16 February 2022 (UTC)[reply]

Not a shapefile[edit]

I've removed all references to shapefile (Q278934), which is a proprietary data format, not a catch-all term for geospatial vector data. Commons uses GeoJSON (Q5533904), but I suppose that should be specified at a to-be-created equivalent of Wikimedia KML file (Q26267864) rather than the property? El Grafo (talk) 10:01, 9 October 2023 (UTC)[reply]