Template:Rules: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
<u>'''RULE'''</u>: <includeonly>{{#switch: {{BASEPAGENAME}}</includeonly> | <noinclude>This is a workaround for the fact that wikibase.cloud does not (yet) support constraints. Rules defined here can be viewed on the discussion pages of the applicable properties/items by the use of {{t|Rules}}. | ||
</noinclude><u>'''RULE'''</u>: <includeonly>{{#switch: {{BASEPAGENAME}}</includeonly> | |||
<noinclude>* </noinclude><includeonly>|Q10=</includeonly>{{Rules/Query_link|url=https://metabase.wikibase.cloud/query/#PREFIX%20wb%3A%20%3Chttps%3A%2F%2Fmetabase.wikibase.cloud%2Fentity%2F%3E%0A%0APREFIX%20wbt%3A%20%3Chttps%3A%2F%2Fmetabase.wikibase.cloud%2Fprop%2Fdirect%2F%3E%0A%0ASELECT%20%3Fitem%20%3FitemLabel%0AWHERE%0A%7B%3Fitem%20wbt%3AP5%20wb%3AQ10.%0AMINUS%20%7B%3Fitem%20wbt%3AP1%20%5B%5D%7D%0ASERVICE%20wikibase%3Alabel%20%7B%20bd%3AserviceParam%20wikibase%3Alanguage%20%22sv%2Cen%22.%20%7D%0A%7D}}Any item with a {{P|P5}}: {{Q|Q10}} MUST also have a {{P|P1}} property. | <noinclude>* </noinclude><includeonly>|Q10=</includeonly>{{Rules/Query_link|url=https://metabase.wikibase.cloud/query/#PREFIX%20wb%3A%20%3Chttps%3A%2F%2Fmetabase.wikibase.cloud%2Fentity%2F%3E%0A%0APREFIX%20wbt%3A%20%3Chttps%3A%2F%2Fmetabase.wikibase.cloud%2Fprop%2Fdirect%2F%3E%0A%0ASELECT%20%3Fitem%20%3FitemLabel%0AWHERE%0A%7B%3Fitem%20wbt%3AP5%20wb%3AQ10.%0AMINUS%20%7B%3Fitem%20wbt%3AP1%20%5B%5D%7D%0ASERVICE%20wikibase%3Alabel%20%7B%20bd%3AserviceParam%20wikibase%3Alanguage%20%22sv%2Cen%22.%20%7D%0A%7D}}Any item with a {{P|P5}}: {{Q|Q10}} MUST also have a {{P|P1}} property. | ||
<noinclude>* </noinclude><includeonly>|Q12=</includeonly>{{Rules/Query_link|url=https://metabase.wikibase.cloud/query/#PREFIX%20wb%3A%20%3Chttps%3A%2F%2Fmetabase.wikibase.cloud%2Fentity%2F%3E%0A%0APREFIX%20wbt%3A%20%3Chttps%3A%2F%2Fmetabase.wikibase.cloud%2Fprop%2Fdirect%2F%3E%0A%0ASELECT%20%3Fitem%20%3FitemLabel%0AWHERE%20%7B%0A%3Fitem%20wbt%3AP5%20wb%3AQ12.%0AMINUS%20%7B%3Fitem%20wbt%3AP1%20%5B%5D%7D%0ASERVICE%20wikibase%3Alabel%20%7B%20bd%3AserviceParam%20wikibase%3Alanguage%20%22sv%2Cen%22.%20%7D%0A%7D}}Any item with a {{P|P5}}: {{Q|Q12}} MUST also have a {{P|P1}} property. | <noinclude>* </noinclude><includeonly>|Q12=</includeonly>{{Rules/Query_link|url=https://metabase.wikibase.cloud/query/#PREFIX%20wb%3A%20%3Chttps%3A%2F%2Fmetabase.wikibase.cloud%2Fentity%2F%3E%0A%0APREFIX%20wbt%3A%20%3Chttps%3A%2F%2Fmetabase.wikibase.cloud%2Fprop%2Fdirect%2F%3E%0A%0ASELECT%20%3Fitem%20%3FitemLabel%0AWHERE%20%7B%0A%3Fitem%20wbt%3AP5%20wb%3AQ12.%0AMINUS%20%7B%3Fitem%20wbt%3AP1%20%5B%5D%7D%0ASERVICE%20wikibase%3Alabel%20%7B%20bd%3AserviceParam%20wikibase%3Alanguage%20%22sv%2Cen%22.%20%7D%0A%7D}}Any item with a {{P|P5}}: {{Q|Q12}} MUST also have a {{P|P1}} property. |
Revision as of 14:06, 30 January 2024
This is a workaround for the fact that wikibase.cloud does not (yet) support constraints. Rules defined here can be viewed on the discussion pages of the applicable properties/items by the use of {{Rules}}
.
RULE:
- 🐱Any item with a instance of (P5): MetaBase root item requiring Wikidata equivalent (Q10) MUST also have a sameAs on Wikidata (P1) property.
- 🐱Any item with a instance of (P5): index term (Q12) MUST also have a sameAs on Wikidata (P1) property.
- 🐱Any subject of a Wikimedia platform(s) affected (P13): MUST have instance of (P5): family of Wikimedia projects (Q25) OR instance of (P5): Wikimedia content project (Q22).
- 🐱Any subject of a organizer (P14): MUST have instance of (P5): organization (Q13) OR instance of (P5): human (Q23).
- 🐱Any value of a sameAs on Wikidata (P1): MUST be unique across MetaBase.
- 🐱Any statement with temporary free text field (P38): MUST also have a qualifier replaced by property (P41).
- The property number of affected content pages (P53) MUST only be used with qualifiers for Wikimedia platform(s) affected (P13), namespace (P56), resource type (P57).
- The property replaced by property (P41) MUST only be used as a qualifier for temporary free text field (P38).
- Any item with instance of (P5): human (Q23) MUST only have the properties sameAs on Wikidata (P1) OR affiliation (P34) (in addition to instance of (P5)).
- Any item with instance of (P5): project (Q2) MUST only have values for has part(s) (P35) that are in turn instance of (P5): activity (Q8) (or subclass of (P4): activity (Q8))
- Any item with instance of (P5): presentation (Q48) MUST also have a speaker (P33) statement.
- Any item with instance of (P5): workshop (Q37) MUST also have a manager / leader (P32) statement.