Movatterモバイル変換


[0]ホーム

URL:


Jump to content
Wikimedia Commons
Search

Commons talk:Structured data

Add topic
From Wikimedia Commons, the free media repository
Latest comment:12 hours ago by Lucas Werkmeister in topiclocated in the administrative territorial entity (P131)
Welcome to the general talk page ofStructured Data on Wikimedia Commons. See also specialized talk pagesabout data modeling andabout Lua.
SpBotarchives all sections tagged with{{Section resolved|1=~~~~}} after 7 days.

Talk pages of subpages and archives

 

Can't use P12346?

[edit]

I wanted to addbased on media(P12346) to link fromFile:Anker A8370 card reader HS04 (cropped).jpg to the uncropped version, but when I try to search for P12346 in the web interface for SDC, it doesn't come up as an option. Anyone know why? –IagoQnsi (talk)21:33, 24 August 2025 (UTC)Reply

@IagoQnsi: it's not inCommons:Structured data/Properties table. We do havebased on(P144). -Jmabel !talk23:28, 24 August 2025 (UTC)Reply
I believe SDC doesn’t support the commonsMedia data type in general, i.e. it’s not possible to have statements that have a Commons file as the value. (See also:Special:Search/haswbstatement:P18 showing no results for files withimage(P18) statements.) OnCommons:Structured data/Modeling/Source,{{Derived from}} is listed as a case “still under discussion”.Lucas Werkmeister (talk)17:23, 25 August 2025 (UTC)Reply

Compatibility of P1344 and P585

[edit]

Inthis file, a bot addedparticipant in(P1344) "Wiki Loves Monuments 2025", and I addedpoint in time(P585) "2 Jun 2019". (Normally, P585 is added by bot, but I am using{{DTZ}} which the bot does not understand, and this is why I added the date manually to SDC.) Now, I got the warning in the P1344 sector, which says that for 2025 WLM participants eligible range of P585 is September 2025. However, I took the picture in 2019, and this is perfectly fine to use P585 to indicate this. This photo is eligible for WLM2025 since I uploaded it a few days ago. I have a similar issue in at least one more file. Maybe some constraints need to be cleaned up, or possibly I am using a wrong property for the day I took the photograph.Ymblanter (talk)15:45, 22 September 2025 (UTC)Reply

I would expectinception(P571) for the date the photo was taken. -Jmabel !talk19:58, 22 September 2025 (UTC)Reply
Thank you. I know that when I add photos to Wikidata items (which I do quite a lot), I useP31 (Image), and then the first suggestion I get for the qualifier is P585.Ymblanter (talk)09:00, 23 September 2025 (UTC)Reply
(I’m pretty sureinception(P571) would still result in the same constraint violation aspoint in time(P585), for what it’s worth.)Lucas Werkmeister (talk)12:16, 23 September 2025 (UTC)Reply

Bounding Box as SDC for Maps and DOP (DigitalOrthophotos)?

[edit]

What about new a SDC / Wikidata property to describe a geographical bounding box? I think it would be useful for maps as well as for Digital Orthophotos (DOP) – maybe even allowing a query for media displaying a certain geographical area? Currently, as far as I see, only the{{Map}} template allows to describe the bounding box of the file exactly, using the coordinates of the four rectangle corners as values for thelatitude /longitude parameters. For a DOP with Bounding Box data, see, for example,DOP40 - Stadt Erlangen 32645 5496 (Bayerische Vermessungsverwaltung).tif. There, I've used both{{Information}} and{{Map}} as file description, while using only thelatitude /longitude andwarp_status parameters of{{Map}}. At least, it seems to be possible to set and show the coords of the four corners exactly. But sadly, it seems that the Wikimap Warper can't handle TIFF files – thus, settingwarp_status toskip is required, and there's currently no way to show the DOP as map "layer", or to make use of the bounding box otherwise.Fl.schmitt (talk)19:41, 23 September 2025 (UTC)Reply

@Fl.schmitt: I don’t think a single “bounding box” property would work well (there’s no good data type for it), butcoordinates of northernmost point(P1332) +coordinates of southernmost point(P1333) +coordinates of easternmost point(P1334) +coordinates of westernmost point(P1335) could be used – theproperty proposal explicitly supportsdefin[ing] the limits of a map, theconstraints allow usage on MediaInfo entities, and there are a handful of existing files using the properties this way, such asFile:Geographic map of Balkan Peninsula.svg.Lucas Werkmeister (talk)20:39, 23 September 2025 (UTC)Reply
@Lucas Werkmeister - I agree that those four propertiescan be used to describe a map's bounding box. But doing so has a major disadvantage: the semantics isn't clear. For a map or a DOP, you usually can't determine asingle "southernmost point", instead you have to choose between hundreds of them. And there's no common practice or guideline how to choose (contrary to the{{Map}} template guidelines for thelatitude andlongitude parameters). Thus, choosing a "single" southernmost point is arbitrary. This might be ok for humans, but it's a problem for structured data and applications using those data. The Balkan Peninsula Map is a nice example: It uses only three "points" - thecoordinates of southernmost point(P1333) is missing, thecoordinates of easternmost point(P1334) seems to denote thecoordinates of southernmost point(P1333) as well. A human being is able to cope with this, but i think it's hard to handle such data in a SPARQL query. Additionally, in the case of the Balkan Peninsula Map, it seems thatcoordinates of westernmost point(P1335) andcoordinates of northernmost point(P1332) are both set to the same location. If there's no rule to choose the corners as reference for those properties, using a single point is meaningless - no semantics. For rectangular Maps or DOP, even two corners would be sufficient to describe the bounding box. But doing so will trigger the "item-requires-statement constraint" for the two other corners. So, the concept of combiningcoordinates of northernmost point(P1332) /coordinates of southernmost point(P1333) /coordinates of easternmost point(P1334) /coordinates of westernmost point(P1335) won't work well to describe a geographical bounding box.Fl.schmitt (talk)20:29, 24 September 2025 (UTC)Reply

located in the administrative territorial entity (P131)

[edit]

Can someone tell me why we are not allowed to use this as a qualifier to location of creation (P1071)--Trade (talk)12:09, 28 November 2025 (UTC)Reply

@Trade: That sounds like a case ofXY problem to me :) where do you want to use that qualifier, and with which P131 and P1071 values? (My general answer would be that the P131 belongs on Wikidata on the P1071 value, but maybe your context is different.)Lucas Werkmeister (talk)12:57, 28 November 2025 (UTC)Reply
I was using the qualifier to show which county and state a photo was taken in. I was just wondering why that is considered inappropriate--Trade (talk)12:59, 28 November 2025 (UTC)Reply
P1071 should describe the location of creation. If you start using the qualifiers then probably the value you added to P1071 is incomplete / imprecise. If you added a city / administrative division to P1071, the Wikidata item for the city already knows what P131 for it is, and there is no ambiguity here.Ymblanter (talk)13:09, 28 November 2025 (UTC)Reply
What Ymblanter said. It’s not necessary to repeat on hundreds and hundreds of files that,for example, theOval Office(Q338067) lies in theWest Wing(Q1932621) of theWhite House(Q35525) which is located inWashington, D.C.(Q61); all that information is readily available on Wikidata, and it’s quite sufficient to store it there, just once.Lucas Werkmeister (talk)18:42, 28 November 2025 (UTC)Reply
Retrieved from "https://commons.wikimedia.org/w/index.php?title=Commons_talk:Structured_data&oldid=1122483535"

[8]ページ先頭

©2009-2025 Movatter.jp