{"id":18507626,"url":"https://github.com/semanticmediawiki/semanticcompoundqueries","last_synced_at":"2025-08-21T02:30:53.353Z","repository":{"id":9499528,"uuid":"62323873","full_name":"SemanticMediaWiki/SemanticCompoundQueries","owner":"SemanticMediaWiki","description":"Allows for the display of multiple inline queries in a single visualization","archived":false,"fork":false,"pushed_at":"2024-07-26T07:38:27.000Z","size":197,"stargazers_count":6,"open_issues_count":5,"forks_count":7,"subscribers_count":12,"default_branch":"master","last_synced_at":"2024-10-30T05:43:10.401Z","etag":null,"topics":["mediawiki","mw","query","scq","semantic","semantic-mediawiki","smw"],"latest_commit_sha":null,"homepage":"https://www.mediawiki.org/wiki/Extension:Semantic_Compound_Queries","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SemanticMediaWiki.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":null,"patreon":null,"open_collective":"smw","ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":["https://www.semantic-mediawiki.org/wiki/Sponsorship"]}},"created_at":"2016-06-30T15:52:06.000Z","updated_at":"2024-05-23T12:15:24.000Z","dependencies_parsed_at":"2023-10-03T13:56:33.985Z","dependency_job_id":"31f0c054-3bb1-47b3-9365-0bc57fa87dc3","html_url":"https://github.com/SemanticMediaWiki/SemanticCompoundQueries","commit_stats":{"total_commits":246,"total_committers":19,"mean_commits":"12.947368421052632","dds":0.8333333333333334,"last_synced_commit":"97b86d2c59f15a4039d3f8907f0cb0dcbcca3c8b"},"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SemanticMediaWiki%2FSemanticCompoundQueries","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SemanticMediaWiki%2FSemanticCompoundQueries/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SemanticMediaWiki%2FSemanticCompoundQueries/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SemanticMediaWiki%2FSemanticCompoundQueries/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SemanticMediaWiki","download_url":"https://codeload.github.com/SemanticMediaWiki/SemanticCompoundQueries/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230479864,"owners_count":18232630,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["mediawiki","mw","query","scq","semantic","semantic-mediawiki","smw"],"created_at":"2024-11-06T15:09:40.139Z","updated_at":"2025-08-21T02:30:53.338Z","avatar_url":"https://github.com/SemanticMediaWiki.png","language":"PHP","funding_links":["https://opencollective.com/smw","https://www.semantic-mediawiki.org/wiki/Sponsorship"],"categories":[],"sub_categories":[],"readme":"# Semantic Compound Queries\n\n[![Build Status](https://img.shields.io/github/actions/workflow/status/SemanticMediaWiki/SemanticCompoundQueries/ci.yml?branch=master)](https://github.com/SemanticMediaWiki/SemanticCompoundQueries/actions?query=workflow%3ACI)\n[![Code Coverage](https://codecov.io/gh/SemanticMediaWiki/SemanticCompoundQueries/branch/master/graph/badge.svg)](https://codecov.io/gh/SemanticMediaWiki/SemanticCompoundQueries)\n[![Latest Stable Version](https://poser.pugx.org/mediawiki/semantic-compound-queries/v/stable)](https://packagist.org/packages/mediawiki/semantic-compound-queries)\n[![Download count](https://poser.pugx.org/mediawiki/semantic-compound-queries/downloads)](https://packagist.org/packages/mediawiki/semantic-compound-queries)\n[![License](https://poser.pugx.org/mediawiki/semantic-media-wiki/license)](COPYING)\n\nSemantic Compound Queries (a.k.a. SCQ) is a [Semantic Mediawiki][smw] extension that defines the\n`#compound_query` parser function, which can display the results of multiple `#ask` queries \n(as compound constructs) at the same time.\n\n## Requirements\n\n- PHP 7.3 or later\n- MediaWiki 1.31 or later\n- [Semantic MediaWiki][smw] 3.0 or later\n\n## Installation\n\nThe recommended way to install Semantic Compound Queries is using [Composer](http://getcomposer.org) with\n[MediaWiki's built-in support for Composer](https://www.mediawiki.org/wiki/Composer).\n\nNote that the required extension Semantic MediaWiki must be installed first according to the installation\ninstructions provided.\n\n### Step 1\n\nChange to the base directory of your MediaWiki installation. If you do not have a \"composer.local.json\" file yet,\ncreate one and add the following content to it:\n\n```\n{\n\t\"require\": {\n\t\t\"mediawiki/semantic-compound-queries\": \"~2.2\"\n\t}\n}\n```\n\nIf you already have a \"composer.local.json\" file, add the following line to the end of the \"require\"\nsection in your file:\n\n    \"mediawiki/semantic-compound-queries\": \"~2.2\"\n\nRemember to add a comma to the end of the preceding line in this section.\n\n### Step 2\n\nRun the following command in your shell:\n\n    php composer.phar update --no-dev\n\nNote that if you have Git installed on your system, you can add the `--prefer-source` flag to the above command.\n\n### Step 3\n\nAdd the following line to the end of your \"LocalSettings.php\" file:\n\n    wfLoadExtension( 'SemanticCompoundQueries' );\n\n\n## Usage\n\nThe syntax of `#compound_query` resembles that of `#ask`, but with more than one query and the elements\nof each sub-query delimited by semicolons instead of pipes. Elements common across all sub-queries,\nlike `format=` and `width=` (for maps), should be placed after all sub-queries.\n\n### Example\n\nA sample call to `#compound query`, which retrieves both biographies, along\nwith their subject; and fiction books, along with their author; is:\n\n```\n{{#compound_query:\n  [[Category:Books]]\n  [[Has genre::Biography]]\n  ;?Covers subject=Subject\n  |\n  [[Category:Books]]\n  [[Has genre::Fiction]]\n  ;?Has author=Author\n  |format=list\n}}\n```\n\nFor more information, see the extension's homepage at [MediaWiki.org][homepage].\n\n## Contribution and support\n\nOriginal author: Yaron Koren (Version 0.4.1)\n\nIf you want to contribute work to the project, please subscribe to the developer's mailing list and\nhave a look at the contribution guidelines.\n\n* [File an issue](https://github.com/SemanticMediaWiki/SemanticCompoundQueries/issues)\n* [Submit a pull request](https://github.com/SemanticMediaWiki/SemanticCompoundQueries/pulls)\n* Ask a question on [the mailing list](https://www.semantic-mediawiki.org/wiki/Mailing_list)\n\n## Tests\n\nThis extension provides unit and integration tests and is run by a [continuous integration platform][github-actions]\nbut can also be executed locally using the shortcut command `composer phpunit` from the extension base directory.\n\n## License\n\n[GNU General Public License, version 2 or later][gpl-licence].\n\n[smw]: https://github.com/SemanticMediaWiki/SemanticMediaWiki\n[contributors]: https://github.com/SemanticMediaWiki/SemanticCompoundQueries/graphs/contributors\n[github-actions]: https://docs.github.com/en/actions\n[gpl-licence]: https://www.gnu.org/copyleft/gpl.html\n[composer]: https://getcomposer.org/\n[homepage]: https://www.mediawiki.org/wiki/Extension:Semantic_Compound_Queries\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsemanticmediawiki%2Fsemanticcompoundqueries","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsemanticmediawiki%2Fsemanticcompoundqueries","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsemanticmediawiki%2Fsemanticcompoundqueries/lists"}