CINXE.COM
Unions (OR) of results - semantic-mediawiki.org
<!DOCTYPE html> <html class="client-nojs" lang="en" dir="ltr"> <head><script type="text/javascript" src="/_static/js/bundle-playback.js?v=HxkREWBo" charset="utf-8"></script> <script type="text/javascript" src="/_static/js/wombat.js?v=txqj7nKC" charset="utf-8"></script> <script>window.RufflePlayer=window.RufflePlayer||{};window.RufflePlayer.config={"autoplay":"on","unmuteOverlay":"hidden"};</script> <script type="text/javascript" src="/_static/js/ruffle/ruffle.js"></script> <script type="text/javascript"> __wm.init("https://web.archive.org/web"); __wm.wombat("https://www.semantic-mediawiki.org/wiki/Help:Unions_of_results","20230219232526","https://web.archive.org/","web","/_static/", "1676849126"); </script> <link rel="stylesheet" type="text/css" href="/_static/css/banner-styles.css?v=S1zqJCYt" /> <link rel="stylesheet" type="text/css" href="/_static/css/iconochive.css?v=3PDvdIFv" /> <!-- End Wayback Rewrite JS Include --> <meta charset="UTF-8"/> <title>Unions (OR) of results - semantic-mediawiki.org</title> <script>document.documentElement.className = document.documentElement.className.replace( /(^|\s)client-nojs(\s|$)/, "$1client-js$2" );</script> <script>(window.RLQ=window.RLQ||[]).push(function(){mw.config.set({"wgCanonicalNamespace":"Help","wgCanonicalSpecialPageName":false,"wgNamespaceNumber":12,"wgPageName":"Help:Unions_of_results","wgTitle":"Unions of results","wgCurRevisionId":64613,"wgRevisionId":64613,"wgArticleId":13460,"wgIsArticle":true,"wgIsRedirect":false,"wgAction":"view","wgUserName":null,"wgUserGroups":["*"],"wgCategories":["User manual","Document"],"wgBreakFrames":false,"wgPageContentLanguage":"en","wgPageContentModel":"wikitext","wgSeparatorTransformTable":["",""],"wgDigitTransformTable":["",""],"wgDefaultDateFormat":"dmy","wgMonthNames":["","January","February","March","April","May","June","July","August","September","October","November","December"],"wgMonthNamesShort":["","Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],"wgRelevantPageName":"Help:Unions_of_results","wgRelevantArticleId":13460,"wgRequestId":"5d4b240a411bf3da143850e7","wgIsProbablyEditable":false,"wgRelevantPageIsProbablyEditable":false,"wgRestrictionEdit":[],"wgRestrictionMove":[],"wgCategoryTreePageCategoryOptions":"{\"mode\":0,\"hideprefix\":20,\"showcount\":true,\"namespaces\":false}","wgHeaderTabsTabIndexes":[],"wgMediaViewerOnClick":true,"wgMediaViewerEnabledByDefault":true,"wgPageFormsTargetName":null,"wgPageFormsAutocompleteValues":[],"wgPageFormsAutocompleteOnAllChars":true,"wgPageFormsFieldProperties":[],"wgPageFormsCargoFields":[],"wgPageFormsDependentFields":[],"wgPageFormsCalendarValues":[],"wgPageFormsCalendarParams":[],"wgPageFormsCalendarHTML":null,"wgPageFormsGridValues":[],"wgPageFormsGridParams":[],"wgPageFormsContLangYes":null,"wgPageFormsContLangNo":null,"wgPageFormsContLangMonths":[],"wgPageFormsHeightForMinimizingInstances":800,"wgPageFormsShowOnSelect":[],"wgPageFormsScriptPath":"/w/extensions/PageForms","edgValues":null,"wgPageFormsEDSettings":null,"wgAmericanDates":false,"wgULSAcceptLanguageList":[],"wgULSCurrentAutonym":"English","wgWikiEditorEnabledModules":[],"srfFilteredConfig":null,"egMapsScriptPath":"/w/extensions/Maps/","egMapsDebugJS":false,"egMapsAvailableServices":["leaflet","googlemaps3"],"egMapsLeafletLayersApiKeys":{"MapBox":"","MapQuestOpen":"","Thunderforest":"","GeoportailFrance":""}});mw.loader.state({"site.styles":"ready","noscript":"ready","user.styles":"ready","user":"ready","user.options":"ready","user.tokens":"loading","ext.mermaid.styles":"ready","ext.semanticbreadcrumblinks.styles":"ready","ext.scite.styles":"ready","ext.uls.pt":"ready","ext.srf.styles":"ready","ext.smw.style":"ready","ext.smw.tooltip.styles":"ready","ext.bootstrap.styles":"ready"});mw.loader.implement("user.tokens@1xj4hbv",function($,jQuery,require,module){/*@nomin*/mw.user.tokens.set({"editToken":"+\\","patrolToken":"+\\","watchToken":"+\\","csrfToken":"+\\"}); });mw.loader.load(["ext.smw.style","ext.smw.tooltips","smw.entityexaminer","site","mediawiki.page.startup","mediawiki.user","mediawiki.hidpi","mediawiki.page.ready","mediawiki.searchSuggest","ext.semanticbreadcrumblinks","ext.scite.styles","ext.scite.tooltip","ext.bootstrap.scripts","skin.chameleon.jquery-sticky"]);});</script> <link rel="stylesheet" href="/web/20230219232526cs_/https://www.semantic-mediawiki.org/w/load.php?debug=false&lang=en&modules=ext.bootstrap.styles%7Cext.mermaid.styles%7Cext.uls.pt&only=styles&skin=chameleon"/> <link rel="stylesheet" href="/web/20230219232526cs_/https://www.semantic-mediawiki.org/w/load.php?debug=false&lang=en&modules=ext.scite.styles%7Cext.semanticbreadcrumblinks.styles%7Cext.smw.style%7Cext.smw.tooltip.styles&only=styles&skin=chameleon"/> <link rel="stylesheet" href="/web/20230219232526cs_/https://www.semantic-mediawiki.org/w/load.php?debug=false&lang=en&modules=ext.srf.styles&only=styles&skin=chameleon"/> <script async="" src="/web/20230219232526js_/https://www.semantic-mediawiki.org/w/load.php?debug=false&lang=en&modules=startup&only=scripts&skin=chameleon"></script> <style>#mw-indicator-mw-helplink {display:none;}</style> <meta name="ResourceLoaderDynamicStyles" content=""/> <link rel="stylesheet" href="/web/20230219232526cs_/https://www.semantic-mediawiki.org/w/load.php?debug=false&lang=en&modules=site.styles&only=styles&skin=chameleon"/> <meta name="generator" content="MediaWiki 1.31.16"/> <meta name="description" content="Unions of results. From semantic-mediawiki.org"/> <meta name="twitter:description" content="Unions of results. From semantic-mediawiki.org"/> <meta name="twitter:card" content="summary_large_image"/> <meta name="twitter:site" content="@SemanticMW"/> <meta name="viewport" content="width=device-width, initial-scale=1.0"/> <link rel="alternate" type="application/rdf+xml" title="Help:Unions of results" href="/web/20230219232526/https://www.semantic-mediawiki.org/w/index.php?title=Special:ExportRDF/Help:Unions_of_results&xmlmime=rdf"/> <link rel="apple-touch-icon" href="/web/20230219232526im_/https://www.semantic-mediawiki.org/w/assets/apple-touch-icon.png"/> <link rel="shortcut icon" href="/web/20230219232526im_/https://www.semantic-mediawiki.org/w/assets/favicon.ico"/> <link rel="search" type="application/opensearchdescription+xml" href="/web/20230219232526/https://www.semantic-mediawiki.org/w/opensearch_desc.php" title="semantic-mediawiki.org (en)"/> <link rel="EditURI" type="application/rsd+xml" href="https://www.semantic-mediawiki.org/w/api.php?action=rsd"/> <link rel="license" href="/wiki/semantic-mediawiki.org:Copyrights"/> <link rel="canonical" href="https://web.archive.org/web/20230219232526/https://www.semantic-mediawiki.org/wiki/Help:Unions_of_results"/> <!-- Semantic MetaTags --> <meta property="og:description" content="Unions of results. From semantic-mediawiki.org"/> <meta property="og:site_name" content="Semantic MediaWiki"/> <meta property="og:image" content="https://web.archive.org/web/20230219232526im_/https://www.semantic-mediawiki.org/w/assets/SMW-logo.png"/> <meta property="og:image:type" content="image/png"/> <meta property="og:image:width" content="142"/> <meta property="og:image:height" content="142"/> <!--[if lt IE 9]><script src="/w/load.php?debug=false&lang=en&modules=html5shiv&only=scripts&skin=chameleon&sync=1"></script><![endif]--> </head> <body class="mediawiki ltr sitedir-ltr mw-hide-empty-elt ns-12 ns-subject page-Help_Unions_of_results rootpage-Help_Unions_of_results layout-stragula skin-chameleon action-view"> <!-- navigation bar --> <nav class="navbar navbar-default p-navbar sticky" role="navigation" id="mw-navigation"> <div class="container-fluid"> <div class="navbar-header"> <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#mw-navigation-collapse"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span><span class="icon-bar"></span><span class="icon-bar"></span> </button> <!-- logo and main page link --> <div id="p-logo" class="p-logo navbar-brand" role="banner"> <a href="/web/20230219232526/https://www.semantic-mediawiki.org/wiki/Semantic_MediaWiki" title="Visit the main page"><img src="/web/20230219232526im_/https://www.semantic-mediawiki.org/w/assets/SMW-logo.png" alt="semantic-mediawiki.org"/></a> </div> </div> <div class="collapse navbar-collapse" id="mw-navigation-collapse"><ul class="nav navbar-nav"> <!-- smwo-general --> <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown">General <b class="caret"></b></a> <ul class="dropdown-menu p-smwo-general" id="p-smwo-general"> <li id="n-Semantic-MediaWiki"><a href="/web/20230219232526/https://www.semantic-mediawiki.org/wiki/Semantic_MediaWiki">Semantic MediaWiki</a></li> <li id="n-Introduction"><a href="/web/20230219232526/https://www.semantic-mediawiki.org/wiki/Help:Introduction_to_Semantic_MediaWiki">Introduction</a></li> <li id="n-Getting-support"><a href="/web/20230219232526/https://www.semantic-mediawiki.org/wiki/Help:Getting_support">Getting support</a></li> <li id="n-Community-portal"><a href="/web/20230219232526/https://www.semantic-mediawiki.org/wiki/semantic-mediawiki.org:Community_portal">Community portal</a></li> <li id="n-Open-Semantic-Data-Association"><a href="/web/20230219232526/https://www.semantic-mediawiki.org/wiki/Open_Semantic_Data_Association">Open Semantic Data Association</a></li> <li id="n-SMWCon"><a href="/web/20230219232526/https://www.semantic-mediawiki.org/wiki/SMWCon">SMWCon</a></li> <li id="n-recentchanges"><a href="/web/20230219232526/https://www.semantic-mediawiki.org/wiki/Special:RecentChanges" title="A list of recent changes in the wiki [r]" accesskey="r">Recent changes</a></li> </ul> </li> <!-- smwo-users --> <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown">Users <b class="caret"></b></a> <ul class="dropdown-menu p-smwo-users" id="p-smwo-users"> <li id="n-Manual"><a href="/web/20230219232526/https://www.semantic-mediawiki.org/wiki/Help:User_manual">Manual</a></li> <li id="n-Getting-started"><a href="/web/20230219232526/https://www.semantic-mediawiki.org/wiki/Help:Getting_started">Getting started</a></li> <li id="n-Report-a-bug"><a href="/web/20230219232526/https://www.semantic-mediawiki.org/wiki/Help:Reporting_bugs">Report a bug</a></li> <li id="n-Sandbox-wiki"><a href="/web/20230219232526/https://www.semantic-mediawiki.org/wiki/Sandbox">Sandbox wiki</a></li> <li id="n-MediaWiki"><a href="/web/20230219232526/https://www.semantic-mediawiki.org/wiki/MediaWiki">MediaWiki</a></li> </ul> </li> <!-- smwo-admins --> <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown">Administrators <b class="caret"></b></a> <ul class="dropdown-menu p-smwo-admins" id="p-smwo-admins"> <li id="n-Manual-hb9llazaeh"><a href="/web/20230219232526/https://www.semantic-mediawiki.org/wiki/Help:Administrator_manual">Manual</a></li> <li id="n-Store-and-search-environment"><a href="/web/20230219232526/https://www.semantic-mediawiki.org/wiki/Store_and_search_environment">Store and search environment</a></li> <li id="n-Features-and-supplementary-functions"><a href="/web/20230219232526/https://www.semantic-mediawiki.org/wiki/Features_and_supplementary_functions">Features and supplementary functions</a></li> <li id="n-Installation"><a href="/web/20230219232526/https://www.semantic-mediawiki.org/wiki/Help:Installation">Installation</a></li> <li id="n-Configuration"><a href="/web/20230219232526/https://www.semantic-mediawiki.org/wiki/Help:Configuration">Configuration</a></li> <li id="n-Maintenance"><a href="/web/20230219232526/https://www.semantic-mediawiki.org/wiki/Help:Maintenance_scripts">Maintenance</a></li> <li id="n-Report-a-bug-hb9llazapm"><a href="/web/20230219232526/https://www.semantic-mediawiki.org/wiki/Help:Reporting_bugs">Report a bug</a></li> <li id="n-Sandbox-wiki-hb9llazar6"><a href="/web/20230219232526/https://www.semantic-mediawiki.org/wiki/Sandbox">Sandbox wiki</a></li> <li id="n-MediaWiki-hb9llazasl"><a href="/web/20230219232526/https://www.semantic-mediawiki.org/wiki/MediaWiki">MediaWiki</a></li> </ul> </li> <!-- smwo-devels --> <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown">Developers <b class="caret"></b></a> <ul class="dropdown-menu p-smwo-devels" id="p-smwo-devels"> <li id="n-Manual-hb9llazauz"><a href="/web/20230219232526/https://www.semantic-mediawiki.org/wiki/Help:Developer_manual">Manual</a></li> <li id="n-Source-code"><a href="https://web.archive.org/web/20230219232526/https://github.com/SemanticMediaWiki/SemanticMediaWiki/" rel="nofollow">Source code</a></li> <li id="n-Code-documentation"><a href="https://web.archive.org/web/20230219232526/https://doc.semantic-mediawiki.org/" rel="nofollow">Code documentation</a></li> <li id="n-Report-a-bug-hb9llazayz"><a href="/web/20230219232526/https://www.semantic-mediawiki.org/wiki/Help:Reporting_bugs">Report a bug</a></li> <li id="n-Sandbox-wiki-hb9llazb0a"><a href="/web/20230219232526/https://www.semantic-mediawiki.org/wiki/Sandbox">Sandbox wiki</a></li> <li id="n-MediaWiki-hb9llazb4u"><a href="/web/20230219232526/https://www.semantic-mediawiki.org/wiki/MediaWiki">MediaWiki</a></li> </ul> </li> <!-- ? --> <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown">? <b class="caret"></b></a> <ul class="dropdown-menu p-?" id="p-?"> <li id="n-Getting-support-hb9llazb8l"><a href="/web/20230219232526/https://www.semantic-mediawiki.org/wiki/Help:Getting_support">Getting support</a></li> <li id="n-Frequent-questions"><a href="/web/20230219232526/https://www.semantic-mediawiki.org/wiki/FAQ">Frequent questions</a></li> <li id="n-Missing-content"><a href="/web/20230219232526/https://www.semantic-mediawiki.org/wiki/Help:Missing_content_and_error_correction#Missing_content">Missing content</a></li> <li id="n-Missing-translation"><a href="/web/20230219232526/https://www.semantic-mediawiki.org/wiki/Help:Missing_content_and_error_correction#Missing_translation">Missing translation</a></li> <li id="n-Found-an-error"><a href="/web/20230219232526/https://www.semantic-mediawiki.org/wiki/Help:Missing_content_and_error_correction#Found_an_error">Found an error</a></li> </ul> </li></ul> <div class="navbar-right-aligned"> <!-- page tools --> <ul class="navbar-tools navbar-nav"> <li class="navbar-tools-tools dropdown"> <a data-toggle="dropdown" class="dropdown-toggle" href="#" title="Page tools"><span>...</span></a> <!-- Content navigation --> <ul class="p-contentnavigation dropdown-menu" id="p-contentnavigation"> <!-- namespaces --> <li id="ca-talk" class="new"><a href="/web/20230219232526/https://www.semantic-mediawiki.org/w/index.php?title=Help_talk:Unions_of_results&action=edit&redlink=1" rel="discussion" title="Discussion about the content page (page does not exist) [t]" accesskey="t" class="new">Discussion</a></li> <!-- views --> <li id="ca-viewsource"><a href="/web/20230219232526/https://www.semantic-mediawiki.org/w/index.php?title=Help:Unions_of_results&action=edit" title="This page is protected. You can view its source [e]" accesskey="e">View source</a></li> <li id="ca-history"><a href="/web/20230219232526/https://www.semantic-mediawiki.org/w/index.php?title=Help:Unions_of_results&action=history" title="Past revisions of this page [h]" accesskey="h">History</a></li> </ul> </li> </ul> <!-- search form --> <div id="p-search" class="p-search navbar-form" role="search"> <form id="searchform" class="mw-search form-inline" action="/web/20230219232526/https://www.semantic-mediawiki.org/w/index.php"> <input type="hidden" name="title" value="Special:Search"/> <div class="input-group"> <input name="search" placeholder="Search semantic-mediawiki.org" title="Search semantic-mediawiki.org [f]" accesskey="f" id="searchInput" class="form-control"/> <div class="input-group-btn"> <button value="Search" id="mw-searchButton" name="fulltext" type="submit" class="mw-searchButton btn btn-default" title="Search the pages for this text"><span class="glyphicon glyphicon-search"></span></button> </div> </div> </form> </div> <!-- personal tools --> <ul class="navbar-tools navbar-nav"> <li class="dropdown navbar-tools-tools"> <a class="dropdown-toggle navbar-usernotloggedin" href="#" data-toggle="dropdown" title="You are not logged in."><span class="glyphicon glyphicon-user"></span></a> <ul class="p-personal-tools dropdown-menu dropdown-menu-right"> <li id="pt-login"><a href="/web/20230219232526/https://www.semantic-mediawiki.org/w/index.php?title=Special:UserLogin&returnto=Help%3AUnions+of+results" title="You are encouraged to log in; however, it is not mandatory [o]" accesskey="o">Log in</a></li> <li id="pt-createaccount"><a href="/web/20230219232526/https://www.semantic-mediawiki.org/wiki/Special:RequestAccount" title="You are encouraged to create an account and log in; however, it is not mandatory">Request account</a></li> </ul> </li> </ul> </div> <!-- navbar-right-aligned --> </div><!-- /.navbar-collapse --> </div> </nav> <div class="smwomaingrid container"> <div class="row"> <div class="col-lg-12"> </div> </div> <div class="row"> <div class="col-lg-12"> <!-- start the content area --> <div id="content" class="mw-body"><a id="top"></a> <div id="mw-indicators" class="mw-indicators"> <div id="mw-indicator-smw-entity-examiner" class="mw-indicator mw-indicator-smw-entity-examiner"><div class="smw-entity-examiner smw-indicator-vertical-bar-loader" data-subject="Unions_of_results#12##" data-dir="ltr" data-uselang="" title="Running an examiner in the background"></div></div> <div id="mw-indicator-y-manual" class="mw-indicator mw-indicator-y-manual"><div class="dropdown"><div class="dropbtn"> ☰ User manual </div><div class="dropdown-content user-manual"> <ul><li><a href="/web/20230219232526/https://www.semantic-mediawiki.org/wiki/Help:Introduction_to_Semantic_MediaWiki#User_manual" title="Help:Introduction to Semantic MediaWiki">Introduction to Semantic MediaWiki</a></li> <li><a href="/web/20230219232526/https://www.semantic-mediawiki.org/wiki/Help:Editing#User_manual" title="Help:Editing">Editing</a> <ul><li><a href="/web/20230219232526/https://www.semantic-mediawiki.org/wiki/Help:Properties_and_types#User_manual" title="Help:Properties and types">Properties and types</a> <ul><li><a href="/web/20230219232526/https://www.semantic-mediawiki.org/wiki/Help:Special_properties#User_manual" title="Help:Special properties">Special properties</a></li> <li><a href="/web/20230219232526/https://www.semantic-mediawiki.org/wiki/Help:Inverse_properties#User_manual" title="Help:Inverse properties">Inverse properties</a></li></ul></li> <li><a href="/web/20230219232526/https://www.semantic-mediawiki.org/wiki/Help:Custom_units#User_manual" title="Help:Custom units">Custom units</a></li> <li><a href="/web/20230219232526/https://www.semantic-mediawiki.org/wiki/Help:Semantic_templates#User_manual" title="Help:Semantic templates">Semantic templates</a></li> <li><a href="/web/20230219232526/https://www.semantic-mediawiki.org/wiki/Help:Service_links#User_manual" title="Help:Service links">Service links</a></li></ul></li> <li><a href="/web/20230219232526/https://www.semantic-mediawiki.org/wiki/Help:Browsing_and_searching#User_manual" title="Help:Browsing and searching">Browsing and searching</a> <ul><li><a href="/web/20230219232526/https://www.semantic-mediawiki.org/wiki/Help:Browsing_interfaces#User_manual" title="Help:Browsing interfaces">Browsing interfaces</a> <ul><li class="mw-empty-elt"></li> <li><a href="/web/20230219232526/https://www.semantic-mediawiki.org/wiki/Help:Sp%C3%A9cial:Ask#User_manual" title="Help:Spécial:Ask">Special page "Ask"</a></li> <li class="mw-empty-elt"></li> <li class="mw-empty-elt"></li> <li><a href="/web/20230219232526/https://www.semantic-mediawiki.org/wiki/Help:Special:Browse#User_manual" title="Help:Special:Browse">Special page "Browse"</a></li> <li class="mw-empty-elt"></li> <li><a href="/web/20230219232526/https://www.semantic-mediawiki.org/wiki/Help:Factbox#User_manual" title="Help:Factbox">Factbox</a></li></ul></li></ul></li> <li><a href="/web/20230219232526/https://www.semantic-mediawiki.org/wiki/Help:Semantic_search#User_manual" title="Help:Semantic search">Semantic search</a> <ul><li><a href="/web/20230219232526/https://www.semantic-mediawiki.org/wiki/Help:Selecting_pages#User_manual" title="Help:Selecting pages">Selecting pages</a> <ul><li><a href="/web/20230219232526/https://www.semantic-mediawiki.org/wiki/Help:Search_operators#User_manual" title="Help:Search operators">Search operators</a> <ul><li><a href="/web/20230219232526/https://www.semantic-mediawiki.org/wiki/Help:Strict_comparators#User_manual" title="Help:Strict comparators">Strict comparators</a></li></ul></li> <li><a href="/web/20230219232526/https://www.semantic-mediawiki.org/wiki/Help:Subqueries_and_property_chains#User_manual" title="Help:Subqueries and property chains">Subqueries and property chains</a></li> <li><a href="/web/20230219232526/https://www.semantic-mediawiki.org/wiki/Help:Unions_of_results#User_manual" title="Help:Unions of results"><b>Unions (OR) of results</b></a></li> <li><a href="/web/20230219232526/https://www.semantic-mediawiki.org/wiki/Help:Distance_queries#User_manual" title="Help:Distance queries">Distance queries</a></li> <li><a href="/web/20230219232526/https://www.semantic-mediawiki.org/wiki/Help:Search_namespace_restrictions#User_manual" title="Help:Search namespace restrictions">Namespace restrictions</a></li> <li><a href="/web/20230219232526/https://www.semantic-mediawiki.org/wiki/Help:Search_range_of_pages#User_manual" title="Help:Search range of pages">Range of pages</a></li> <li><a href="/web/20230219232526/https://www.semantic-mediawiki.org/wiki/Help:Single_page_restriction#User_manual" title="Help:Single page restriction">Single page restriction</a></li> <li><a href="/web/20230219232526/https://www.semantic-mediawiki.org/wiki/Help:Full-text_search#User_manual" title="Help:Full-text search">Full-text search</a></li> <li><a href="/web/20230219232526/https://www.semantic-mediawiki.org/wiki/Help:Search_value_substitution#User_manual" title="Help:Search value substitution">Search value substitution</a></li></ul></li> <li><a href="/web/20230219232526/https://www.semantic-mediawiki.org/wiki/Help:Displaying_information#User_manual" title="Help:Displaying information">Displaying information</a> <ul><li><a href="/web/20230219232526/https://www.semantic-mediawiki.org/wiki/Help:Sorting#User_manual" title="Help:Sorting">Sorting</a></li> <li><a href="/web/20230219232526/https://www.semantic-mediawiki.org/wiki/Help:Property_chains_and_paths#User_manual" title="Help:Property chains and paths">Printouts and property chains</a></li></ul></li> <li><a href="/web/20230219232526/https://www.semantic-mediawiki.org/wiki/Help:Result_formats#User_manual" title="Help:Result formats">Result formats</a></li> <li><a href="/web/20230219232526/https://www.semantic-mediawiki.org/wiki/Help:Inline_queries#User_manual" title="Help:Inline queries">Inline queries</a> <ul><li><a href="/web/20230219232526/https://www.semantic-mediawiki.org/wiki/Help:Querying_for_queries#User_manual" title="Help:Querying for queries">Querying for queries</a></li></ul></li> <li class="mw-empty-elt"></li> <li><a href="/web/20230219232526/https://www.semantic-mediawiki.org/wiki/Help:Concepts#User_manual" title="Help:Concepts">Concepts</a></li> <li><a href="/web/20230219232526/https://www.semantic-mediawiki.org/wiki/Help:Inferencing#User_manual" title="Help:Inferencing">Inferencing</a></li></ul></li> <li><a href="/web/20230219232526/https://www.semantic-mediawiki.org/wiki/Help:Semantic_Web#User_manual" title="Help:Semantic Web">Semantic Web</a> <ul><li><a href="/web/20230219232526/https://www.semantic-mediawiki.org/wiki/Help:RDF_export#User_manual" title="Help:RDF export">RDF export</a></li> <li><a href="/web/20230219232526/https://www.semantic-mediawiki.org/wiki/Help:Import_vocabulary#User_manual" title="Help:Import vocabulary">Importing vocabulary</a></li></ul></li></ul> </div></div> </div> <div id="mw-indicator-yz-manual" class="mw-indicator mw-indicator-yz-manual"><div class="dropdown"> <div class="dropbtn document-effective"> v3.0.0+ </div><div class="dropdown-content document-effective"> <table style="min-width: 150px"> <tbody><tr><td> Status:</td><td>effective</td></tr><tr><td> Progress:</td><td>100%</td></tr><tr><td> Version:</td><td>3.0.0+</td></tr> </tbody></table> </div> </div> </div> <div id="mw-indicator-z-language" class="mw-indicator mw-indicator-z-language"><div class="dropdown"><div class="dropbtn"> <span class="icon-language"></span>English </div><div class="dropdown-content"> <a href="/web/20230219232526/https://www.semantic-mediawiki.org/wiki/Special:Translate/page-Help:Unions_of_results" title="Special:Translate/page-Help:Unions of results">Add a translation</a></div></div> </div> </div> <div id="mw-js-message" style="display:none;"></div> <div class="contentHeader"> <!-- title of the page --> <h1 id="firstHeading" class="firstHeading">Unions (OR) of results</h1> <!-- tagline; usually goes something like "From WikiName" primary purpose of this seems to be for printing to identify the source of the content --> <div id="siteSub">From semantic-mediawiki.org</div> <!-- subtitle line; used for various things like the subpage hierarchy --> <div id="contentSub" class="small"><div id="sbl-breadcrumbs" class="sbl-breadcrumb-trail-light" dir="ltr"><span class="sbl-breadcrumb-arrow-parent" style=""><a href="/web/20230219232526/https://www.semantic-mediawiki.org/wiki/Help:User_manual" title="Help:User manual">User manual</a></span><span class="sbl-breadcrumb-arrow-right" style=""></span><span class="sbl-breadcrumb-arrow-parent" style=""><a href="/web/20230219232526/https://www.semantic-mediawiki.org/wiki/Help:Semantic_search" title="Help:Semantic search">Semantic search</a></span><span class="sbl-breadcrumb-arrow-right" style=""></span><span class="sbl-breadcrumb-arrow-parent" style=""><a href="/web/20230219232526/https://www.semantic-mediawiki.org/wiki/Help:Selecting_pages" title="Help:Selecting pages">Selecting pages</a></span><span class="sbl-breadcrumb-arrow-right" style=""></span><span class="sbl-breadcrumb-arrow-location" style="">Unions (OR) of results</span></div></div><div id="jump-to-nav" class="mw-jump">Jump to:<a href="#mw-navigation">navigation</a>, <a href="#p-search">search</a></div> </div> <div id="bodyContent"> <!-- body text --> <div id="mw-content-text" lang="en" dir="ltr" class="mw-content-ltr"><div class="mw-parser-output"> <div class="sil-interlanguagelink"></div> <p><b>Disjunctions</b> 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 (<a href="https://web.archive.org/web/20230219232526/https://en.wikipedia.org/wiki/Logical_disjunction" class="extiw" title="wikipedia:Logical disjunction">logical OR</a>). </p><p>Semantic MediaWiki has two ways of writing disjunctions in queries: </p> <ul><li>The operator <b><code>OR</code></b> is used for taking the union of two queries.</li> <li>The operator <b><code>||</code></b> is used for disjunctions in property values, page names and category names.</li></ul> <p><br/> For example, a query that describes pages of actors in <code>[[Category:Musical actor]]</code> <i>or</i> <code>[[Category:Theatre actor]]</code>, <i>or</i> in both of them, can be written as: </p> <dl><dd><code>[[Category:Musical actor]] OR [[Category:Theatre actor]]</code></dd></dl> <p>or more concisely, </p> <dl><dd><code>[[Category:Musical actor||Theatre actor]]</code></dd></dl> <p><br/> Similarly, a query that describes all pages of people born in Boston <i>or</i> New York can be written using one of these operators: </p> <dl><dd><code>[[Born in::Boston]] OR [[Born in::New York]]</code></dd></dl> <p>or again more concisely, </p> <dl><dd><code>[[Born in::Boston||New York]]</code></dd></dl> <p><br/> Note that <code>||</code> does not always offer an alternative to <code>OR</code>. For example, </p> <dl><dd><code>[[Born in::Boston]] OR [[Category:Actor]]</code></dd></dl> <p>cannot be expressed with <code>||</code>. </p><p><br/> 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 <i>or</i> in New York, the category name needs to be repeated: </p> <ul><li><code>[[Category:Actor]] [[Born in::Boston]] OR [[Category:Actor]] [[Born in::New York]]</code></li></ul> <p><br/> To combine multiple queries, you can also use <span class="smw-highlighter smwttinline" data-state="inline"><a href="/web/20230219232526/https://www.semantic-mediawiki.org/wiki/Extension:Semantic_Compound_Queries" title="Extension:Semantic Compound Queries">extension "Semantic Compound Queries"</a><span class="smwttcontent">Provides a parser function that displays multiple semantic queries at the same time</span></span>. </p> <!-- NewPP limit report Cached time: 20230219195833 Cache expiry: 86400 Dynamic content: false [SMW] In‐text annotation parser time: 0.001 seconds CPU time usage: 0.130 seconds Real time usage: 0.155 seconds Preprocessor visited node count: 1118/1000000 Preprocessor generated node count: 4619/1000000 Post‐expand include size: 11189/2097152 bytes Template argument size: 4780/2097152 bytes Highest expansion depth: 8/40 Expensive parser function count: 0/100 Unstrip recursion depth: 0/20 Unstrip post‐expand size: 345/5000000 bytes ExtLoops count: 0 --> <!-- Transclusion expansion time report (%,ms,calls,template) 100.00% 138.005 1 -total 70.57% 97.390 1 Template:User_manual 67.90% 93.711 1 Template:User_manual/List 15.16% 20.916 1 Template:Doc.info 11.24% 15.512 41 Template:User_manual/Tree_item 9.88% 13.639 1 Template:Doc.info.list 8.90% 12.278 1 Template:Interlanguage 4.97% 6.858 1 Template:Extend 0.76% 1.051 1 Template:InterlanguageLinks 0.76% 1.047 1 Template:Annotatedlanguage --> </div> <!-- Saved in parser cache with key DB9907220070920:pcache:idhash:13460-0!canonical and timestamp 20230219195833 and revision id 64613 --> </div><div class="printfooter"> Retrieved from "<a dir="ltr" href="https://web.archive.org/web/20230219232526/https://www.semantic-mediawiki.org/w/index.php?title=Help:Unions_of_results&oldid=64613">https://www.semantic-mediawiki.org/w/index.php?title=Help:Unions_of_results&oldid=64613</a>"</div> <!-- end body text --> </div> <!-- category links --> <div id="catlinks" class="catlinks" data-mw="interface"><div id="mw-normal-catlinks" class="mw-normal-catlinks"><a href="/web/20230219232526/https://www.semantic-mediawiki.org/wiki/Special:Categories" title="Special:Categories">Categories</a>: <ul><li><a href="/web/20230219232526/https://www.semantic-mediawiki.org/wiki/Category:User_manual" title="Category:User manual">User manual</a></li><li><a href="/web/20230219232526/https://www.semantic-mediawiki.org/wiki/Category:Document" title="Category:Document">Document</a></li></ul></div></div> </div> </div> </div> </div> <div class="smwofootergrid container"> <div class="smwofooterrowtb row"> <div class="col-lg-1"> <div class="footer"> </div> </div> <div class="smwofootercomptb col-lg-10"> <!-- Tools--> <nav class="navbar navbar-default p-tb " id="p-tb"> <ul class="nav navbar-nav small"> <li id="t-whatlinkshere"><a href="/web/20230219232526/https://www.semantic-mediawiki.org/wiki/Special:WhatLinksHere/Help:Unions_of_results" title="A list of all wiki pages that link here [j]" accesskey="j">What links here</a></li> <li id="t-recentchangeslinked"><a href="/web/20230219232526/https://www.semantic-mediawiki.org/wiki/Special:RecentChangesLinked/Help:Unions_of_results" rel="nofollow" title="Recent changes in pages linked from this page [k]" accesskey="k">Related changes</a></li> <li id="t-specialpages"><a href="/web/20230219232526/https://www.semantic-mediawiki.org/wiki/Special:SpecialPages" title="A list of all special pages [q]" accesskey="q">Special pages</a></li> <li id="t-print"><a href="/web/20230219232526/https://www.semantic-mediawiki.org/w/index.php?title=Help:Unions_of_results&printable=yes" rel="alternate" title="Printable version of this page [p]" accesskey="p">Printable version</a></li> <li id="t-permalink"><a href="/web/20230219232526/https://www.semantic-mediawiki.org/w/index.php?title=Help:Unions_of_results&oldid=64613" title="Permanent link to this revision of the page">Permanent link</a></li> <li id="t-info"><a href="/web/20230219232526/https://www.semantic-mediawiki.org/w/index.php?title=Help:Unions_of_results&action=info" title="More information about this page">Page information</a></li> <li id="t-cite"><a href="/web/20230219232526/https://www.semantic-mediawiki.org/w/index.php?title=Special:CiteThisPage&page=Help%3AUnions_of_results&id=64613" title="Information on how to cite this page">Cite this page</a></li> <li id="t-smwbrowselink"><a href="/web/20230219232526/https://www.semantic-mediawiki.org/wiki/Special:Browse/:Help:Unions-5Fof-5Fresults" rel="search">Browse properties</a></li> </ul> </nav> </div> <div class="col-lg-1"> <div class="footer"> </div> </div> </div> <div class="smwofooterrow row"> <div class="col-lg-1"> <div class="footer"> </div> </div> <div class="col-lg-10"> <!-- footer links --> <ul class="footer-info list-unstyled small" id="footer-info"> <!-- info --> <li> This page was last edited on 24 September 2018, at 21:07.</li> <li>Content is available under <a href="/web/20230219232526/https://www.semantic-mediawiki.org/wiki/semantic-mediawiki.org:Copyrights" title="semantic-mediawiki.org:Copyrights">"Attribution 3.0 Germany" (CC BY 3.0 DE)</a> unless otherwise noted.</li> </ul> </div> <div class="col-lg-1"> <div class="footer"> </div> </div> </div> <div class="smwofooterrowb row"> <div class="col-lg-1"> <div class="footerb"> </div> </div> <div class="col-lg-6"> <!-- places --> <ul class="list-inline footer-places " id="footer-places"> <li><small><a href="/web/20230219232526/https://www.semantic-mediawiki.org/wiki/semantic-mediawiki.org:Privacy_policy" title="semantic-mediawiki.org:Privacy policy">Privacy policy</a></small></li> <li><small><a href="/web/20230219232526/https://www.semantic-mediawiki.org/wiki/semantic-mediawiki.org:About" title="semantic-mediawiki.org:About">About <semantic-mediawiki.org> (Imprint)</a></small></li> <li><small><a href="/web/20230219232526/https://www.semantic-mediawiki.org/wiki/semantic-mediawiki.org:General_disclaimer" title="semantic-mediawiki.org:General disclaimer">Disclaimers</a></small></li> </ul> </div> <div class="col-lg-4"> <!-- footer icons --> <ul class="list-inline pull-right footer-icons " id="footer-icons"> <!-- copyright --> <li><a href="https://web.archive.org/web/20230219232526/https://creativecommons.org/licenses/by/3.0/de/deed.en"><img src="/web/20230219232526im_/https://www.semantic-mediawiki.org/w/resources/assets/licenses/cc-by.png" alt=""Attribution 3.0 Germany" (CC BY 3.0 DE)" width="88" height="31"/></a></li> <!-- poweredby --> <li><a href="//web.archive.org/web/20230219232526/https://www.mediawiki.org/"><img src="/web/20230219232526im_/https://www.semantic-mediawiki.org/w/resources/assets/poweredby_mediawiki_88x31.png" alt="Powered by MediaWiki" srcset="/web/20230219232526im_/https://www.semantic-mediawiki.org/w/resources/assets/poweredby_mediawiki_132x47.png 1.5x, /web/20230219232526im_/https://www.semantic-mediawiki.org/w/resources/assets/poweredby_mediawiki_176x62.png 2x" width="88" height="31"/></a></li> <li><a href="https://web.archive.org/web/20230219232526/https://www.semantic-mediawiki.org/wiki/Semantic_MediaWiki"><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFgAAAAfCAMAAABUFvrSAAACJVBMVEXe3t62trbLy8vGxsbAwMDX19e6urqsrKxHcEzQ0NC2tratra2oqKixsbHd3eDFxcXe3t7U1NTa2trX19fQ0N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VB2EHLauKdyG7JBLIc//uslRKkhOrcGJqyiU9z5UkOpVOwiGXSyQizRAfqlRc7Y5KJFnV6FReiWSV7xAWeQd/SOSq6qY18eVHq4vjlyazEJ73ScmJPVxJVKdF9MFwYpFIEL+ehvDOcSH8YXRsAa4XfwS7kd0tLfw7Sp7fl7xJywbYjTTVotfTb+849lEcb0K+2lMN/5o+tons+Rxp+PrQ8U3n0BcNSGPj4W+bPuX5ZLNo+uxwY+PfoLJHX1KXgyMAAAAASUVORK5CYII=" alt="Powered by Semantic MediaWiki" class="smw-footer" width="88" height="31"/></a></li> </ul> </div> <div class="col-lg-1"> <div class="footerb"> </div> </div> </div> </div><script>(window.RLQ=window.RLQ||[]).push(function(){mw.config.set({"wgPageParseReport":{"smw":{"limitreport-intext-parsertime":0.001},"limitreport":{"cputime":"0.130","walltime":"0.155","ppvisitednodes":{"value":1118,"limit":1000000},"ppgeneratednodes":{"value":4619,"limit":1000000},"postexpandincludesize":{"value":11189,"limit":2097152},"templateargumentsize":{"value":4780,"limit":2097152},"expansiondepth":{"value":8,"limit":40},"expensivefunctioncount":{"value":0,"limit":100},"unstrip-depth":{"value":0,"limit":20},"unstrip-size":{"value":345,"limit":5000000},"timingprofile":["100.00% 138.005 1 -total"," 70.57% 97.390 1 Template:User_manual"," 67.90% 93.711 1 Template:User_manual/List"," 15.16% 20.916 1 Template:Doc.info"," 11.24% 15.512 41 Template:User_manual/Tree_item"," 9.88% 13.639 1 Template:Doc.info.list"," 8.90% 12.278 1 Template:Interlanguage"," 4.97% 6.858 1 Template:Extend"," 0.76% 1.051 1 Template:InterlanguageLinks"," 0.76% 1.047 1 Template:Annotatedlanguage"]},"loops":{"limitreport-count-unlimited":[0]},"cachereport":{"timestamp":"20230219195833","ttl":86400,"transientcontent":false}}});});</script><script>(window.RLQ=window.RLQ||[]).push(function(){mw.config.set({"wgBackendResponseTime":683});});</script></body> </html><!-- FILE ARCHIVED ON 23:25:26 Feb 19, 2023 AND RETRIEVED FROM THE INTERNET ARCHIVE ON 11:03:23 Dec 01, 2024. JAVASCRIPT APPENDED BY WAYBACK MACHINE, COPYRIGHT INTERNET ARCHIVE. ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C. SECTION 108(a)(3)). --> <!-- playback timings (ms): captures_list: 0.65 exclusion.robots: 0.032 exclusion.robots.policy: 0.021 esindex: 0.015 cdx.remote: 6.324 LoadShardBlock: 54.369 (3) PetaboxLoader3.datanode: 81.667 (4) load_resource: 91.736 PetaboxLoader3.resolve: 32.136 -->