addwiki / wikibase-query

Library with services for interacting with the Wikibase Query Service, [READ-ONLY] split from https://github.com/addwiki/addwiki

Home Page:https://addwiki.github.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

wikibase-query

GitHub issue custom search in repo Latest Stable Version Download count

Issue tracker: https://github.com/addwiki/addwiki/issues

Installation

Use composer to install the library and all its dependencies:

composer require "addwiki/wikibase-query:~3.0"

Examples

Use the SimpleQueryService with wikidata.

use Addwiki\Wikibase\Query\WikibaseQueryFactory;
use Addwiki\Wikibase\Query\PrefixSets;

$factory = new WikibaseQueryFactory(
    "https://query.wikidata.org/sparql",
    PrefixSets::WIKIDATA
);

$r = $factory->newSimpleQueryService()->query(["P31:Q1"]);

About

Library with services for interacting with the Wikibase Query Service, [READ-ONLY] split from https://github.com/addwiki/addwiki

https://addwiki.github.io/

License:GNU General Public License v2.0


Languages

Language:PHP 100.0%