File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -36,18 +36,18 @@ Here is a small usage example:
3636
3737``` php
3838// Load everything
39- require_once( __DIR__ . " /vendor/autoload.php" );
39+ require_once( __DIR__ . ' /vendor/autoload.php' );
4040
4141// Initialise HTTP connection
4242$api = new WikidataQueryApi( 'https://wdq.wmflabs.org/api' );
4343
4444// Build helper tools
4545$wikidataQueryFactory = new WikidataQueryFactory( $api );
46- $simpleQueryService = $wikidataQueryFactory->newSimpleQueryService());
46+ $simpleQueryService = $wikidataQueryFactory->newSimpleQueryService() );
4747
4848//Do a query that returns a list of ItemId
4949//This query finds all the children (P40) of Charlemagne (Q3044)
5050$itemIds = $simpleQueryService->doQuery(
51- new ClaimQuery(new PropertyId('P17'), new ItemId('Q3044') );
51+ new ClaimQuery( new PropertyId( 'P17' ), new ItemId( 'Q3044' ) );
5252);
5353```
You can’t perform that action at this time.
0 commit comments