byjg/anydataset-sparql

Anydataset SparQL abstraction. Anydataset is an agnostic data source abstraction layer in PHP.

Maintainers

πŸ‘ byjg

Package info

github.com/byjg/anydataset-sparql

pkg:composer/byjg/anydataset-sparql

Statistics

Installs: 10

Dependents: 0

Suggesters: 0

Stars: 2

Open Issues: 0

4.0.1 2021-10-31 05:52 UTC

Requires

Requires (Dev)

Suggests

None

Provides

None

Conflicts

None

Replaces

None

MIT 6d7815f4c8165f6cf4acf3ac9624f79282ca4a33

  • JoΓ£o Gilberto MagalhΓ£es <joao.woop@byjg.com.br>

This package is auto-updated.

Last update: 2026-06-15 21:51:18 UTC


README

πŸ‘ Opensource ByJG
πŸ‘ GitHub source
πŸ‘ GitHub license
πŸ‘ GitHub release
πŸ‘ Build Status

SparQL abstraction dataset. Anydataset is an agnostic data source abstraction layer in PHP.

See more about Anydataset here.

Examples

Simple Manipulation

<?php

$sparqlEndpoint = 'http://dbpedia.org/sparql';

$namespace = [
 'dbo' => 'http://dbpedia.org/ontology/',
 'dbp' => 'http://dbpedia.org/property/'
];

$dataset = new \ByJG\AnyDataset\Semantic\SparQLDataset($sparqlEndpoint, $namespace);
$iterator = $dataset->getIterator("select distinct ?Concept where {[] a ?Concept} LIMIT 5");

foreach ($iterator as $row) {
 echo $row->get("Concept");
 echo $row->get("Concept.type");
}

Install

Just type:

composer require "byjg/anydataset-sparql=4.0.*"

Running the Unit tests

vendor/bin/phpunit

Open source ByJG