PHP code example of professional-wiki / sparql

1. Go to this page and download the library: Download professional-wiki/sparql library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

professional-wiki / sparql example snippets


wfLoadExtension( 'SPARQL' );

$wgSPARQLEndpoint = 'https://query.portal.mardi4nfdi.de/proxy/wdqs/bigdata/namespace/wdq/sparql';