<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://openeducation.wiki/w/index.php?action=history&amp;feed=atom&amp;title=Help%3AUnions_of_results</id>
	<title>Help:Unions of results - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://openeducation.wiki/w/index.php?action=history&amp;feed=atom&amp;title=Help%3AUnions_of_results"/>
	<link rel="alternate" type="text/html" href="http://openeducation.wiki/w/index.php?title=Help:Unions_of_results&amp;action=history"/>
	<updated>2026-04-11T13:09:50Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.1</generator>
	<entry>
		<id>http://openeducation.wiki/w/index.php?title=Help:Unions_of_results&amp;diff=41231&amp;oldid=prev</id>
		<title>Pbacsich at 20:59, 2 May 2023</title>
		<link rel="alternate" type="text/html" href="http://openeducation.wiki/w/index.php?title=Help:Unions_of_results&amp;diff=41231&amp;oldid=prev"/>
		<updated>2023-05-02T20:59:12Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 20:59, 2 May 2023&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l30&quot;&gt;Line 30:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 30:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;To combine multiple queries, you can also use &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[&lt;/del&gt;https://www.semantic-mediawiki.org/wiki/Extension:Semantic_Compound_Queries&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;|Semantic Compound Queries]&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;To combine multiple queries, you can also use https://www.semantic-mediawiki.org/wiki/Extension:Semantic_Compound_Queries&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Pbacsich</name></author>
	</entry>
	<entry>
		<id>http://openeducation.wiki/w/index.php?title=Help:Unions_of_results&amp;diff=41230&amp;oldid=prev</id>
		<title>Pbacsich: copied from https://www.semantic-mediawiki.org/wiki/Help:Unions_of_results</title>
		<link rel="alternate" type="text/html" href="http://openeducation.wiki/w/index.php?title=Help:Unions_of_results&amp;diff=41230&amp;oldid=prev"/>
		<updated>2023-05-02T20:57:48Z</updated>

		<summary type="html">&lt;p&gt;copied from https://www.semantic-mediawiki.org/wiki/Help:Unions_of_results&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Unions (OR) of result ==&lt;br /&gt;
This page is copied from https://www.semantic-mediawiki.org/wiki/Help:Unions_of_results&lt;br /&gt;
&lt;br /&gt;
'''Disjunctions''' are OR-conditions that admit several alternative conditions on query results. A disjunction requires that at least one (but maybe more than one) of the possible alternatives is satisfied ([[wikipedia:Logical disjunction|logical OR]]).&lt;br /&gt;
&lt;br /&gt;
Semantic MediaWiki has two ways of writing disjunctions in queries:&lt;br /&gt;
* The operator '''&amp;lt;code&amp;gt;OR&amp;lt;/code&amp;gt;''' is used for taking the union of two queries.&lt;br /&gt;
* The operator '''&amp;lt;code&amp;gt;||&amp;lt;/code&amp;gt;''' is used for disjunctions in property values, page names and category names.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For example, a query that describes pages of actors in &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;[[Category:Musical actor]]&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; ''or'' &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;[[Category:Theatre actor]]&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;, ''or'' in both of them, can be written as:&lt;br /&gt;
: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;[[Category:Musical actor]] OR [[Category:Theatre actor]]&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
or more concisely,&lt;br /&gt;
: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;[[Category:Musical actor||Theatre actor]]&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Similarly, a query that describes all pages of people born in Boston ''or'' New York can be written using one of these operators:&lt;br /&gt;
: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;[[Born in::Boston]] OR [[Born in::New York]]&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
or again more concisely,&lt;br /&gt;
: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;[[Born in::Boston||New York]]&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note that &amp;lt;code&amp;gt;||&amp;lt;/code&amp;gt; does not always offer an alternative to &amp;lt;code&amp;gt;OR&amp;lt;/code&amp;gt;. For example,&lt;br /&gt;
: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;[[Born in::Boston]] OR [[Category:Actor]]&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
cannot be expressed with &amp;lt;code&amp;gt;||&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
OR operates on the query, not on a single element of the query. Thus in the following query, which is intended to list actors born in Boston ''or'' in New York, the category name needs to be repeated:&lt;br /&gt;
* &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;[[Category:Actor]] [[Born in::Boston]] OR [[Category:Actor]] [[Born in::New York]]&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To combine multiple queries, you can also use [https://www.semantic-mediawiki.org/wiki/Extension:Semantic_Compound_Queries|Semantic Compound Queries]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&amp;gt; [[Help:Index]]&lt;br /&gt;
[[Category:ZWIKI Help]]&lt;/div&gt;</summary>
		<author><name>Pbacsich</name></author>
	</entry>
</feed>