Talk:Q21503250

From Wikidata
Jump to navigation Jump to search

Autodescription — subject type constraint (Q21503250)

description: type of constraint for Wikidata properties: used to specify that the item described by such properties should be a subclass or instance of a given type
Useful links:
Classification of the class subject type constraint (Q21503250)  View with Reasonator View with SQID
For help about classification, see Wikidata:Classification.
Parent classes (classes of items which contain this one item)
Subclasses (classes which contain special kinds of items of this class)
subject type constraint⟩ on wikidata tree visualisation (external tool)(depth=1)
Generic queries for classes
See also


Reference[edit]

See Help:Property constraints portal for more information. Multichill (talk) 16:30, 24 December 2017 (UTC)[reply]

Bug report in description?[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
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

@Jura1: I just noticed that you added the following note to the English description of this item last year:

Note: currently works fully only on reports, not with the gadget on items.

Can you explain what you mean(t) by that, and whether it still applies? If there are any bugs in the live constraint checks (no longer a gadget, by the way), we should fix them. --Lucas Werkmeister (WMDE) (talk) 10:37, 28 November 2018 (UTC)[reply]

Alright, thanks – since the sentence in question has now been removed from the description, I guess this no longer applies and we’re ✓ Done. --Lucas Werkmeister (WMDE) (talk) 12:42, 30 November 2018 (UTC)[reply]

Name[edit]

Would you agree to change the name of this constraint type to "class" or "subject class"? --abián 17:18, 4 February 2020 (UTC)[reply]

✓ Done for now in English and Spanish, in line with the value-type constraint (Q21510865) type; arguments have been provided for but not against the change. --abián 18:00, 17 February 2020 (UTC)[reply]
The fact that the property creation process ask for the same thing under the name "domain"/"allowed value" doesn't help either.
As far as using the word type I think it should only apply to instance of (P31) relations and not to subclass of (P279). Given that subject type constraint (Q21503250) mixes both we should say class in this context
I doubt that the average user of Wikidata knows by heart what a "type constraint" compared to a "value constraint" happens to be.
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
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 WikiProject Properties has more than 50 participants and couldn't be pinged. Please post on the WikiProject's talk page instead. ChristianKl17:09, 11 December 2020 (UTC)[reply]

Well, they’re completely different constraint types, in meaning as well as in implementation, in my opinion. If you use the same name for both, you may have reduced the amount of constraint names a user has to learn, but not, I think, the real number of constraint types a user would have to understand. --Lucas Werkmeister (WMDE) (talk) 08:47, 14 December 2020 (UTC)[reply]
    • According to the RDF that's linked our subject type constraint (Q21503250) is a constraint that constrains the domain of the subject while the value constraint is a constraint that constrains the range of the object.
I don't think calling the constraint that constrains what the subject can be after the subject would be using the words against the standard.
In any case our current way where a type constraint is both about the type and about subClassOf is using the terms against the standard. I would be more happy with "domain constraint" then with type constraint. ChristianKl21:17, 11 December 2020 (UTC)[reply]
  • Not sure if "object class constraint" is really helpful. "object" is sometimes understood as referring to the object of the main statement, whereas what we currently call "value type" constraint is about the "value" of a property, even when it's used as qualifier or in references. --- Jura 08:10, 12 December 2020 (UTC)[reply]
  • We do use "domain" in property proposals, but doesn't it also describe which entities we use the property on? --- Jura 08:10, 12 December 2020 (UTC)[reply]
    • @Jura1: Currently, we use "type constraint" to describe which entities we use the property on. If someone uses the property outside of those entities they get a constraint warning.
We don't have a "domain" property, so when a new property is created usually the information from the domain field gets translated into type constraint. ChristianKl12:40, 14 December 2020 (UTC)[reply]
Well, there a few other factors: type constraints don't work for qualifiers. The domain is also translated with property scope constraint (Q53869507) and allowed-entity-types constraint (Q52004125). --- Jura 15:43, 14 December 2020 (UTC)[reply]
Before we had property scope constraint (Q53869507) and allowed-entity-types constraint (Q52004125) it was just type constraint and now it's still mostly and sometimes people might store that data in it. Generally, I think it would be better if that would get it's own row. ChristianKl16:31, 14 December 2020 (UTC)[reply]

free software[edit]

Please, look at this page the following warning: "Entities using the Guix Variable Name property should be instances or subclasses of free software or free and open-source software (or of a subclass of them), but GNU Binutils currently isn't." IMHO, setting an instance of something to preferred rank is relevant, that does not mean that setting an instance of another thing to normal rank is like deprecated. Genium. 08:02, Jul 28, 2021 (UTC+02:00)

Is there an inverse of this constraint?[edit]

As in, the domain should not be of a certain type? I know you can use conflicts-with constraint (Q21502838) with property (P2306)instance of (P31), but that only covers things that are directly instances of the class, not of subclasses. ―Jochem van Hees (talk) 22:31, 22 December 2021 (UTC)[reply]