Skip to content

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

License

Notifications You must be signed in to change notification settings

addwiki/wikibase-query

Repository files navigation

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages