Shortcut: WD:PC

Wikidata:Project chat: Difference between revisions

From Wikidata
Jump to navigation Jump to search
Content deleted Content added
Pigsonthewing (talk | contribs)
Michiel1972 (talk | contribs)
Line 271: Line 271:
::{{Ping|Michiel1972}} Thank you. Could you share your regex, please? <span class="vcard"><span class="fn">[[User:Pigsonthewing|Andy Mabbett]]</span> (<span class="nickname">Pigsonthewing</span>); [[User talk:Pigsonthewing|Talk to Andy]]; [[Special:Contributions/Pigsonthewing|Andy's edits]]</span> 23:07, 11 December 2016 (UTC)
::{{Ping|Michiel1972}} Thank you. Could you share your regex, please? <span class="vcard"><span class="fn">[[User:Pigsonthewing|Andy Mabbett]]</span> (<span class="nickname">Pigsonthewing</span>); [[User talk:Pigsonthewing|Talk to Andy]]; [[Special:Contributions/Pigsonthewing|Andy's edits]]</span> 23:07, 11 December 2016 (UTC)
:::Q[\d]+ will select the Q numbers, I think. Ah, But you need the inverse. --[[User:Tagishsimon|Tagishsimon]] ([[User talk:Tagishsimon|<span class="signature-talk">{{int:Talkpagelinktext}}</span>]]) 13:02, 12 December 2016 (UTC) hth --[[User:Tagishsimon|Tagishsimon]] ([[User talk:Tagishsimon|<span class="signature-talk">{{int:Talkpagelinktext}}</span>]]) 13:01, 12 December 2016 (UTC)
:::Q[\d]+ will select the Q numbers, I think. Ah, But you need the inverse. --[[User:Tagishsimon|Tagishsimon]] ([[User talk:Tagishsimon|<span class="signature-talk">{{int:Talkpagelinktext}}</span>]]) 13:02, 12 December 2016 (UTC) hth --[[User:Tagishsimon|Tagishsimon]] ([[User talk:Tagishsimon|<span class="signature-talk">{{int:Talkpagelinktext}}</span>]]) 13:01, 12 December 2016 (UTC)
::::In Pspad, paste the text, then open replace dialogue. Checkbox regular expressions set to yes, and paste this as 'Find': <code> ^(.*?)\(Q(\d*?)\)(.*?)$ </code> and 'Replace': <code>Q$2</code> [[User:Michiel1972|Michiel1972]] ([[User talk:Michiel1972|<span class="signature-talk">{{int:Talkpagelinktext}}</span>]]) 21:26, 12 December 2016 (UTC)
:There is an entity extraction tool called DBpedia Spotlight, which does more or less what you want. There was an online demo, but I don't know if it is still working.--[[User:Micru|Micru]] ([[User talk:Micru|<span class="signature-talk">{{int:Talkpagelinktext}}</span>]]) 12:49, 12 December 2016 (UTC)
:There is an entity extraction tool called DBpedia Spotlight, which does more or less what you want. There was an online demo, but I don't know if it is still working.--[[User:Micru|Micru]] ([[User talk:Micru|<span class="signature-talk">{{int:Talkpagelinktext}}</span>]]) 12:49, 12 December 2016 (UTC)



Revision as of 21:26, 12 December 2016

Wikidata project chat
Place used to discuss any and all aspects of Wikidata: the project itself, policy and proposals, individual data items, technical issues, etc.
Please take a look at the frequently asked questions to see if your question has already been answered.
Please use {{Q}} or {{P}}, the first time you mention an item, or property, respectively.
Also see status updates to keep up-to-date on important things around Wikidata.
Requests for deletions can be made here.
Merging instructions can be found here.

IRC channel: #wikidataconnect
On this page, old discussions are archived. An overview of all archives can be found at this page's archive index. The current archive is located at 2024/07.
SpBot archives all sections tagged with {{Section resolved|1=~~~~}} after 1 day.

WDQ is dead?

How can I get the number of items with some claim by API now? Earlier it was done by URL like http://wdq.wmflabs.org/api?q=claim[2936]&noitems=1 --Infovarius (talk) 13:47, 5 December 2016 (UTC)[reply]

There is the query service at https://query.wikidata.org/. You can access it as an API as described at mw:Wikidata query service/User Manual#SPARQL_endpoint (linked from the "Help" menu) and there is also a link to a WDQ syntax translator (in the "Tools" menu). This query should give you the number of items. This is the same thing as an API request. - Nikki (talk) 16:02, 5 December 2016 (UTC)[reply]
Oh, much more difficult... But anyway, thanks for API. --Infovarius (talk) 12:28, 7 December 2016 (UTC)[reply]
Hmm but this results "Warning: file_get_contents(http://wdq.wmflabs.org/api?q=claim%5B1800%5D): failed to open stream: HTTP request failed! HTTP/1.1 504 Gateway Time-out in /data/project/listeria/shared.inc on line 418" when updating Wikidata:Database reports/WMF projects. --Liuxinyu970226 (talk) 14:52, 9 December 2016 (UTC)[reply]

One building succeeding another

Hello, I have a question about which property to use. Gleaston Castle was (probably) built to replace Aldingham Castle. The structures are a couple of hundred metres apart so Property:P167 doesn't quite fit the bill. Should I use Property:P155? Richard Nevell (talk) 19:56, 5 December 2016 (UTC)[reply]

replaces (P1365)/replaced by (P1366) could fit. Matěj Suchánek (talk) 10:30, 6 December 2016 (UTC)[reply]

Preventing incorrect merges

Is there any way to add a warning or note to prevent repeated merge of two items that are not the same? Zdravljica (Q169215) and Zdravljica (Q27965845) have been merged twice today, but if you look at the content, these are completely different items. Both are Slovene songs, and they have the same title, but the lyrics and authors are different. --EncycloPetey (talk) 20:02, 5 December 2016 (UTC)[reply]

You can link the two items with different from (P1889) to make clear that they aren't the same. It would also make sense to add more statements such as author (P50). ChristianKl (talk) 21:09, 5 December 2016 (UTC)[reply]
@ChristianKl: Thanks. I tried to find something like this, but the software never offered this when I searched.
@ArthurPSmith: That would only be possible if I knew enough Slovene to go looking for the different texts, could understand the publication data, and thus add the new text at the Slovene Wikisource. Unfortunately, I do not know Slovene well enough to do that. --EncycloPetey (talk) 02:04, 6 December 2016 (UTC)[reply]
I haven't tried these "games" that causes these merges, but it definitly look like they need a "yes, I know what I am doing"-button
@ArthurPSmith: That didn't stop Grimsta (Q4356886) and Grimsta (Q2608131) from being merged. -- Innocent bystander (talk) 07:36, 6 December 2016 (UTC)[reply]
Whatever these "Games" are, they're responsible for more problems than just incorrect merges. Several times now, I've seen them responsible for adding Britannica On-line ID "links" to articles where either (a) no such article exists at Britannica on-line, or (b) the wrong article title was linked. --EncycloPetey (talk) 08:55, 6 December 2016 (UTC)[reply]
@Innocent bystander: You added the "different from" statement after the merge, so it's not really a surprise that the statement could not prevent the merge. If you would have added it before, it would have, simply because you cannot merge items that link to each other already. --YMS (talk) 14:58, 8 December 2016 (UTC)[reply]
@YMS: I responded to User:ArthurPSmith. The two items about a place called "Grimsta" both had a svwiki-sitelink, but were still merged. Both also had good P31-claims that could have helped identify them as two different subjects. The only things they have in common, is the spelling of their names (I doubt they are pronounced the same) and that they are located in Stockholm County, Sweden. -- Innocent bystander (talk) 15:21, 8 December 2016 (UTC)[reply]
Wow so "Distributed Game" "Merge items" just threw out the incompatible sv link without a second thought? That seems quite dangerous - who's responsible for it? ArthurPSmith (talk) 14:26, 9 December 2016 (UTC)[reply]

Help needed: central military items curreently mixed-up

as i don't have the time to check/repair this mess myself, can please someone else have a look at Special:Contributions/GiorgiXIII? the user has mixed-up and/or emptied some central military items.
Affected items are: military (Q8473), field army (Q51977), armed forces (Q772547), armed forces (Q27966033), army (Q3505278). the first three are used by hundreds/thousands of other items.
Holger1959 (talk) 00:43, 6 December 2016 (UTC)[reply]

@Holger1959: is it OK now again? Jared Preston (talk) 13:55, 6 December 2016 (UTC)[reply]
@Jared Preston: thanks for restoring the old situation. looks good as far i can say. (though individual sitelinks might need to be moved from A to B in the future, but blanking and creating new items shouldn't be necessary, i think) Holger1959 (talk) 04:27, 7 December 2016 (UTC)[reply]
Hm, I can't distinguish between the first three... And I see many errors in using the first. --Infovarius (talk) 10:38, 7 December 2016 (UTC)[reply]

Coyau is dead.

it's with great sadness that I inform you that Coyau (talkcontribslogs) is deceased. He was one of the most prolific contributors here and participated in Wikipedia, Wikisource and Commons as well. He will be sorely missed. --Harmonia Amanda (talk) 12:14, 6 December 2016 (UTC)[reply]

Oh, my condolences and deepest sympathy! What happened? Jared Preston (talk) 13:53, 6 December 2016 (UTC)[reply]
We don't know yet. We are waiting for the autopsy. Pyb (talk) 16:25, 6 December 2016 (UTC)[reply]
Fuck. How old was he then? Jared Preston (talk) 22:17, 6 December 2016 (UTC)[reply]
@Jared Preston: Do you think „Fuck“ is a appropriate wording? I'm sorry of the loss of Coyau's family. --Succu (talk) 22:29, 6 December 2016 (UTC)[reply]
I am just completely surprised at the news. Jared Preston (talk) 22:39, 6 December 2016 (UTC)[reply]
He was 38. -Ash Crow (talk) 13:14, 7 December 2016 (UTC)[reply]
My deep condolences to his family and his friends. He will be remembered as an important and prolific contributor to free knowledge, and badly missed. Thank you for bringing these sad news. --Denny (talk) 23:17, 6 December 2016 (UTC)[reply]
+1 very sad news, indeed. Holger1959 (talk) 04:29, 7 December 2016 (UTC)[reply]
I'm very sad to hear this too. Can we leave condolences somewhere in a place where his family and friends can see/read them? Spinster 💬 14:22, 7 December 2016 (UTC)[reply]
Maybe on his user page on the French Wikipedia. I will send the link to his mother. Pyb (talk) 18:59, 7 December 2016 (UTC)[reply]
@Denny: You can use Wikidata:Deceased editors. Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 19:53, 8 December 2016 (UTC)[reply]
My condolences as well to his close friends and family :( He has helped greatly in sharing free knowledge here with us on Wikidata and other Wikimedia projects and made a difference in this world. --Lydia Pintscher (WMDE) (talk) 19:10, 8 December 2016 (UTC)[reply]
Sad news. Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 19:53, 8 December 2016 (UTC)[reply]

External images of museum objects

Proably asked before, but when we add museum collections, how can we add the url of the external image of an object? For example http://collectie.boijmans.nl/nl/bmimage/2880x1620/2981.jpg Should we use described at URL (P973) with instance of (P31) is image (Q478798)? Or should we per museum create a property and save the objectid that is converted to the image? Or are external links to copyrighted images prohibited within Wikidata? --Hannolans (talk) 16:40, 6 December 2016 (UTC)[reply]

I would link to http://collectie.boijmans.nl/nl/object/2981 using described at URL (P973) and not deep link to the file. I don't think these file deep links are very stable and what is exactly the use case for these deep links? Somehow embedding external images in the representation of a Wikidata item? Wikimedia hot linking hosted images, but I think other sites are less happy about that. Multichill (talk) 17:42, 6 December 2016 (UTC)[reply]

Discography without artist

See PSID=618791 for a list of items for a discography that doesn't specify the artist yet. I'll fill out a few meself as well. Edoderoo (talk)

Thanks to everyone that helped to get this list shorter. You amazed me, and made my day! Edoderoo (talk) 20:25, 8 December 2016 (UTC)[reply]

Why can't I create WikiProject:United_Nations

Hi all

I want to create a Wikiproject specifically for importing the huge amount of data that the UN produces, the Wikiproject is also running on Wikipedia and Commons for articles and media content. I'm trying to create https://www.wikidata.org/wiki/WikiProject:United_Nations from the draft page I started here but it won't let me for some reason. Could someone explain what I'm doing wrong or create it for me if some special permission is required?

Many thanks

--John Cummings (talk) 13:41, 8 December 2016 (UTC)[reply]

There is no WikiProject name space here at Wikidata. The projects here are named like Wikidata:WikiProject Danmark, see Category:WikiProjects for an overview. So the name for yours (which I didn't look at) should probably be Wikidata:WikiProject United Nations. --YMS (talk) 14:17, 8 December 2016 (UTC)[reply]
Ah, thanks YMS, that makes sense. --John Cummings (talk) 14:31, 8 December 2016 (UTC)[reply]
Already done by me. MechQuester (talk) 04:49, 9 December 2016 (UTC)[reply]

Josef

Merge this pages please https://www.wikidata.org/wiki/Q4205987#sitelinks-wikipedia and https://www.wikidata.org/wiki/Q15730712#sitelinks-wikipedia. Sorry wor bad english, because I´m from Czech repbulic. --89.103.84.240 13:58, 8 December 2016 (UTC)[reply]

We won't merge, because a disambiguation page isn't a given name. There is no reason to merge. --Harmonia Amanda (talk) 14:12, 8 December 2016 (UTC)[reply]
Please, there are same name. --89.103.84.240 14:24, 8 December 2016 (UTC)[reply]
No, they are not. Josef (Q15730712) is a given name, Josef (Q4205987) is a disambiguation page, the Wikipedia articles list things others than people sharing the same given name. The two shouldn't be merged. --Harmonia Amanda (talk) 14:42, 8 December 2016 (UTC)[reply]
Ok, but english was in worse Wikidata page. --89.103.84.240 14:46, 8 December 2016 (UTC)[reply]

PetScan + Query

Is there any way to pipe PetScan results into Query? Specifically, I would like to obtain P31 of all items using a set of templates. Do you know some alternative way to do it? Thanks, Paucabot (talk) 17:02, 8 December 2016 (UTC)[reply]

Not directly. You can save Petscan results at Pagepile ("Format" at Output tab) and then use Tabernacle. --Edgars2007 (talk) 17:10, 8 December 2016 (UTC)[reply]
Thanks, @Edgars2007: I didn't know this tool! Paucabot (talk) 19:54, 8 December 2016 (UTC)[reply]

What government data is of best interest?

Hi,

I am currently at the OGP Hackathon and I've been asked: "There is a government in Central Europe that may have the possibility to publish government data to Wikidata, and the budget to do it (either by publishing a dump for us to reuse or even directly maintain it up to date on Wikidata through the API), which data do you think would be the most interesting or useful?". I told him I would ask the community so, here I am :) What is your opinion on this? If you had 5 wishes, what would they be? -Ash Crow (talk) 17:21, 8 December 2016 (UTC)[reply]

  • Hi @Ash Crow:: Well, just some (personal) suggestions:
  • (1) basic geographic name data (location of places, sites of interest, etc; if we don't have it yet). Solid local references (other than "Geonames") to any existing ones would be good as well.
  • (2) country or culture specific library catalog metadata,
  • (3) basic data on elected or high ranking public officials,
  • (4) statistics: population statistics on any location (present or historic), a dataset like Q21644845 ;). Eventually we should be able to absorbe more statistics, but this might need more development. In some parts Wikipedia includes lots of these and eventually we should be able to provide this from Wikidata
  • (5) anything country specific WikiProject Movies lacks ;)
At first sight it might appear obscure, but I think well-maintained datasets like the Czech notable tree dataset can be of great interest.
Things that need updates on a more regular basis than every year might need some additional thought on how to go about that.
--- Jura 17:52, 8 December 2016 (UTC)[reply]
He said it would not be a problem. -Ash Crow (talk) 09:23, 9 December 2016 (UTC)[reply]
  • General wishs:
(1) Switch the general default for database license of government data from requiring citations of the data source to not requiring citation, so that Wikidata can import more data ::without licensing issues.
(2) Generally make sure that databases uses their own ID to refer to items instead of simply using strings.
(3) If there's money for the project, I think it would make a lot of sense if they don't just publish a dumb but directly submit the data to Wikidata.
  • Specific wishes:
(1) Historic population. That data is valuable for Wikipedia importing Wikidata data.
(2) Historical data about life expectancy. If you be really nice if this data would be available at a highly granular level that more detailed than just the country level.
(3) The European patent database - Names of patents, area of the patent, links to inventors and companies, direct link via an ID to the full patent on the official website.
(4) The European trademark database - Names of patents, area of the patent, links to the trademark owners, direct link via an ID to the full patent on the official website.
(5) Registers of lobbyists in Brussels and the individual EU states. Including links to the bills for which the lobbyists lobbied if such data is available.
ChristianKl (talk) 22:20, 9 December 2016 (UTC)[reply]
  • Hi @Ash Crow: Five example-oriented wishes:
(1) All (former) heads of governments
(2) All population data from the very beginning of the country to the latest
(3) All universities in that country
(4) All ministries (and ministers) of that country (perhaps organized as a cabinet)
(5) All geographical divisions of that country
The idea is that I'd expect high quality data since the data comes from the very authoritative source ;-) Fadirra (talk) 15:01, 12 December 2016 (UTC)[reply]

We need your input about gadgets and UI stability

Hello all,

We're starting a consultation about gadgets and how we can improve our workflows to avoid breaking user scripts when we're modifying Wikidata's interface. We would be very happy if the gadgets/user scripts developers could take time to answers these few questions, even if of course anyone is welcomed to add suggestions or questions.

Thank you very much! Lea Lacroix (WMDE) (talk) 15:52, 9 December 2016 (UTC)[reply]

Stained glass versus stained glass windows

We have stained glass (Q1473346) and it seems to cover everything related to stained glass: stained glass as a material, stained glass as an artistic technique, windows and other objects made using stained glass... Sometimes it's used with instance of (P31) to say that an item is a stained glass window, sometimes it's used with made from material (P186) to mean that something is made from stained glass. Some of the labels seem to mean the material, others seem to specifically mean windows. It all seems to be a bit of a mess.

I think the right thing to do is to split it because a stained glass window is a type of window (made of stained glass) and searching for windows should find stained glass windows too, but stained glass as a material isn't a type of window, so it doesn't make sense to use the same item for both things. A while ago I made stained glass window (Q21061279), but that's unfortunately as far as I got.

The sitelinks on Q1473346 that I can understand are about stained glass in general, so I think the labels which specifically mean a window should be moved to Q21061279 (along with any statements and sitelinks which are specific to windows), but I'm not sure which those are. Can anyone help me clean this up?

(@Oursana: pinging you in case you're interested or want to comment :))

- Nikki (talk) 21:24, 9 December 2016 (UTC)[reply]

As happens very often the site links do not fit exactly. One has also to consider whether stained glass (Q1473346) only means the technique, not the material.
As the technique is broadly used with windows this project could be about both, as are many site links.
The sitelinks are at least not all about stained glass in general, de is about stained glass windows, for what we habe no special word. Glasmalerei means the technique which is only used with church windows, so I would not split. Same with en:work=window and material.
fr:Vitrail is very similar to en and does not mean the window
in it it is the window and not the technique
in nl it is colored glass, not the technique, not a window.
I am not quite sure if your stained glass window (Q21061279) item passes WD:N--Oursana (talk) 21:49, 9 December 2016 (UTC)[reply]

changing descriptions

Hi, I was wondering if there is a quick way (or perhaps an semi-automated tool) that can quickly change descriptions. MechQuester (talk) 06:25, 10 December 2016 (UTC)[reply]

QuickStatements (Q20084080)MisterSynergy (talk) 06:37, 10 December 2016 (UTC)[reply]
Thanks. that looks like it has a high learning curve. sigh. MechQuester (talk) 02:09, 12 December 2016 (UTC)[reply]

Compositions without a composer

On PSid=621087 there is a list of compositions that do miss a composer. For those that would like to edit a few... Edoderoo (talk) 15:56, 10 December 2016 (UTC)[reply]

It seems that some are false positives, where instance of (P31) should be changed to subclass of (P279). Others conflate manuscript (Q87167) and composed musical work (Q207628). Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 18:22, 10 December 2016 (UTC)[reply]
Now all done. Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 18:35, 10 December 2016 (UTC)[reply]

No and unknown value in QuickStatements (Q20084080)

Does anyone know if QuickStatements has a syntax for adding no value or unknown value claims? --Azertus (talk) 16:39, 10 December 2016 (UTC)[reply]

The author of that tool is User:Magnus_Manske. Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 17:58, 10 December 2016 (UTC)[reply]
I know. I bet he'd appreciate it when users don't come running to him with every first question they can think of. --Azertus (talk) 19:50, 10 December 2016 (UTC)[reply]
The old version did not have this functionality; Magnus has put out a first draft of a new version in the past couple of weeks (see User:Magnus Manske/quick statements2) which still doesn't support it, I think, but now is a good time to ask :-) Andrew Gray (talk) 18:50, 10 December 2016 (UTC)[reply]
Thanks, maybe I will! But would you/others find this useful as well? I've (obviously) found a use for it, but I couldn't say I'd be creating thousands (let alone hundreds) of edits with it as soon as that functionality were to be added. --Azertus (talk) 19:50, 10 December 2016 (UTC)[reply]

Finding Wikidata IDs for a list of organisations

I have a spreadsheet, with two columns: column A has the names of organisations, column B the URLs of their websites. What's the easiest way to get the relevant Wikidata IDs (if any - most should have them) in column C, and Wikidata labels, in English, labels in column D? Will Google Sheets do it? How? Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 19:29, 10 December 2016 (UTC)[reply]

Solved it, using Google Sheets, with the 'Wikipedia and Wikidata Tools' add-on. The formula is =WIKIDATAQID(XXX), where "XXX" is the cell holding the organisation name, which must match a Wikipedia article title exactly. Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 21:14, 10 December 2016 (UTC)[reply]
Hi Andy - name is not a good discriminator for organizations, you really should be checking at least country and possibly location as well, there are a lot of organizations with the same name in different places. ArthurPSmith (talk) 14:04, 12 December 2016 (UTC)[reply]
This was a first pass; they were manually checked afterwards. Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 16:26, 12 December 2016 (UTC)[reply]

Symbol definitions with math datatype

I've posted this question here but maybe it should be announced wider. I don't think that laws and mathematical objects consist of (Property:527) some parametres. It's trigon which consists of hypotenuse (Q104962) and pair of cathetus (Q110812)'s, not Pythagorean theorem (Q11518). The symbols refer to formula which consists not only of the expression but also of the definitions. (Also, there are drawings (image (P18)) with some symbols, which maybe require definition too). The definitions must be put somehow into the qualifiers or formula datatype itself, but I can't imagine what the data structure for it should be. At least, as a temporal solution we should invent something other than Property:P527 to bolt onto Property:P2534. Ignatus (talk) 22:54, 10 December 2016 (UTC)[reply]

@Ignatus: I was hoping for the new datatype to provide some way to link these but found it doesn't really help. Maybe a better way to link Q35875#P2534 to the statements at Q35875#P527 can be found (currently has part(s) (P527) with qualifier defining formula (P2534) which seems a misuse of that property). It would probably be an enumeration with the same values, but with different properties/qualifiers. Adding all as qualifiers on Q35875#P2534 wont work, as we can't have qualifiers on qualifiers.
--- Jura 10:27, 12 December 2016 (UTC)[reply]
We need defining formula (P2534) + has part(s) (P527) (P2534 with links to items). Who can help to do this? --Fractaler (talk) 11:05, 12 December 2016 (UTC)[reply]
Currently, I don't think we can do much better than Q35875#P527 except by using two new dedicated properties.
--- Jura 11:56, 12 December 2016 (UTC)[reply]

How to describe the use of a railway station?

I want to establish whether a train station is used for both passenger and freight traffic or only one of those. The best I could come up with is connecting service (P1192) with freight train (Q954927) and/or passenger train (Q1363599). Does anyone use any other method?--Strainu (talk) 00:06, 11 December 2016 (UTC)[reply]

instance of (P31) train station
qualifier: of (P642) passenger transport (Q2072431)--Oursana (talk) 02:30, 11 December 2016 (UTC)[reply]
I wouldn't use connecting service (P1192) because freight train (Q954927) and passenger train (Q1363599) aren't instances of train service (Q16323955). Either use a qualifier like Oursana suggested or create two new items "passenger railway station" and "freight traffic station" and use them instead of railway station (Q55488). --Pasleim (talk) 18:07, 11 December 2016 (UTC)[reply]
Second solution. the of (P642) View with SQID qualifier is undefined. We should instead (I think we discussed that but don't remember when or if a proposal occured) create a property about the kind of stuff a vehicle carries.
This would give something like
It seems that those two properties fits partly : designed to carry (P3349) View with SQID and item operated (P121) View with SQID. author  TomT0m / talk page 19:18, 11 December 2016 (UTC)[reply]
Actually there is a property proposal for what is actually carried : Wikidata:Property_proposal/people_or_cargo_transported. Please support if you find this useful for your problem. author  TomT0m / talk page 19:37, 11 December 2016 (UTC)[reply]

Dead web links in URL or external-id datatype statements can be marked with deprecated rank. Do we also add qualifiers to indicate the reason of deprecation? If so, which ones? Do we have a relevant help page? —MisterSynergy (talk) 08:49, 11 December 2016 (UTC)[reply]

There is reason for deprecated rank (P2241) for deprecated statements. But I don't see any dead link item yet. Matěj Suchánek (talk) 09:08, 11 December 2016 (UTC)[reply]
Thanks, this is what I was looking for. Current uses can be identified by this query. I’ll manage to find something suitable. —MisterSynergy (talk) 09:34, 11 December 2016 (UTC)[reply]
@MisterSynergy: It's a bit of the wild west at the moment with regards to reason for deprecated rank qualifiers. I'd suggest to be liberal with choosing a suitable item, even to create your own if necessary. I've been collecting some as instances of Wikibase reason for deprecated rank (Q27949697), a subclass of Wikidata internal entity (Q21281405) which contains other interesting stuff.
There's two types of items used: the ones created especially/only for use with reason for deprecated rank (P2241) (such as not been able to confirm this claim (Q21655367)), which are the ones I've been marking. The second are items for concepts that can more or less double as a reason (such as ambiguity (Q1140419)) and whose use will (or won't) grow organically until maybe they are adopted as a standard. I've been considering marking those as well as instances of a yet-to-be-named subclass of Wikibase reason for deprecated rank (Q27949697) or Wikidata internal entity (Q21281405) (maybe "concept used in Wikidata qualifier statements"), but a query like yours may be a better way to look for them or collect them. --Azertus (talk) 13:13, 11 December 2016 (UTC)[reply]
Thanks for commenting. This time I chose withdrawn identifier value (Q21441764) from the items already in use with this property, since this pretty much describes the situation: dead/invalid links in external-id statements. Getting these reason items managed properly by subclassing etc. sound like a good idea to me! —MisterSynergy (talk) 13:20, 11 December 2016 (UTC)[reply]

QuickStatements & date of reference

I'm adding statements using QuickStatements. An example line is:

Q978124	P463	Q19861084	S854	"https://orcid.org/members/001G000001wMniZIAS-university-of-southern-queensland"	S813	+2016-12-10T00:00:00Z/11

The P463 and S854 values are added correctly, but that for S813 is missing. Is it me, or can't the tool do this? Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 15:12, 11 December 2016 (UTC)[reply]

It has been reported many times now, and has not been fixed yet. -- Innocent bystander (talk) 15:19, 11 December 2016 (UTC)[reply]
Thanks. I had a vague recollection, and did search here, but found nothing. Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 16:07, 11 December 2016 (UTC)[reply]
@Pigsonthewing: If you try the new version, it already works there (per what Magnus said on Twitter). Matěj Suchánek (talk) 13:37, 12 December 2016 (UTC)[reply]

Extracting Q IDs from random text

Is there a tool which takes load of random text - say, several lines like:

(diff | hist) . . Alice Moderno (Q16488592)‎; 21:46 . . (+444)‎ . . Example1 (talk | contribs)‎ (‎Added reference to claim: place of birth (P19): Paris (Q90)) (Tag: reCh [1.1])
(diff | hist) . . (Q27994566)‎; 21:46 . . (+355)‎ . . Example2 (talk | contribs)‎ (‎Created claim: Commons category (P373): Towers_in_Vasto, #quickstatements) (Tag: Widar [1.4])

- and extract from it just the QIDs? Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 21:49, 11 December 2016 (UTC)[reply]

I use the freeware PSPAD editor for such task, using the regular expression tool to remove all unwanted text, thus stripping all except Qxxxx strings. Michiel1972 (talk) 22:07, 11 December 2016 (UTC)[reply]
@Michiel1972: Thank you. Could you share your regex, please? Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 23:07, 11 December 2016 (UTC)[reply]
Q[\d]+ will select the Q numbers, I think. Ah, But you need the inverse. --Tagishsimon (talk) 13:02, 12 December 2016 (UTC) hth --Tagishsimon (talk) 13:01, 12 December 2016 (UTC)[reply]
In Pspad, paste the text, then open replace dialogue. Checkbox regular expressions set to yes, and paste this as 'Find': ^(.*?)\(Q(\d*?)\)(.*?)$ and 'Replace': Q$2 Michiel1972 (talk) 21:26, 12 December 2016 (UTC)[reply]
There is an entity extraction tool called DBpedia Spotlight, which does more or less what you want. There was an online demo, but I don't know if it is still working.--Micru (talk) 12:49, 12 December 2016 (UTC)[reply]

LUA and the #coordinates-parser

Anybody here who has had experience with Scribunto and the #Coordinates-parser? -- Innocent bystander (talk) 04:11, 12 December 2016 (UTC)[reply]

Isn't it better to tell your problem directly? (And yes, I do.) Matěj Suchánek (talk) 13:35, 12 December 2016 (UTC)[reply]

Wikidata weekly summary #239

FCI dog breed number

I was thinking it could make sense to add a dog breeds FCI number to wikidata but I'm not quite sure what would be the best way to go about doing that. TommyG (talk) 16:43, 12 December 2016 (UTC)[reply]

@TommyG: You can use catalog code (P528) with a catalog (P972) qualifier, like this. If there will be sufficient breeds to warrant it, I'll put a property proposal together for you; but as they only seem to recognise 332 (plus 11 provisionally), I doubt it. Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 18:36, 12 December 2016 (UTC)[reply]
@TommyG: I'm preparing a dataset to upload those now. Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 19:05, 12 December 2016 (UTC)[reply]
@TommyG: All done; please check a random sample. Note that Pyrenean Shepherd (Q37786), for example, has two values, and may require splitting. Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 20:45, 12 December 2016 (UTC)[reply]

Issue with property creation

Both of:

have been closed as "no support". There are no objections and - as I noted in each proposal - the IDs are in use on en.Wikipedia, in over a thousand articles for each. Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 17:46, 12 December 2016 (UTC)[reply]