Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/byjg/anydataset-sparql
Anydataset SparQL abstraction. Anydataset is an agnostic data source abstraction layer in PHP.
https://github.com/byjg/anydataset-sparql
anydataset hacktoberfest php sparql sparql-anydataset sparql-client
Last synced: about 1 month ago
JSON representation
Anydataset SparQL abstraction. Anydataset is an agnostic data source abstraction layer in PHP.
- Host: GitHub
- URL: https://github.com/byjg/anydataset-sparql
- Owner: byjg
- License: mit
- Created: 2018-11-20T04:13:41.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2022-06-15T13:17:16.000Z (over 2 years ago)
- Last Synced: 2024-10-19T13:21:02.032Z (3 months ago)
- Topics: anydataset, hacktoberfest, php, sparql, sparql-anydataset, sparql-client
- Language: PHP
- Homepage:
- Size: 9.77 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# AnyDataset-SparQL
[![Opensource ByJG](https://img.shields.io/badge/opensource-byjg-success.svg)](http://opensource.byjg.com)
[![GitHub source](https://img.shields.io/badge/Github-source-informational?logo=github)](https://github.com/byjg/anydataset-sparql/)
[![GitHub license](https://img.shields.io/github/license/byjg/anydataset-sparql.svg)](https://opensource.byjg.com/opensource/licensing.html)
[![GitHub release](https://img.shields.io/github/release/byjg/anydataset-sparql.svg)](https://github.com/byjg/anydataset-sparql/releases/)
[![Build Status](https://travis-ci.com/byjg/anydataset-sparql.svg?branch=master)](https://travis-ci.com/byjg/anydataset-sparql)SparQL abstraction dataset. Anydataset is an agnostic data source abstraction layer in PHP.
See more about Anydataset [here](https://opensource.byjg.com/php/anydataset).
## Examples
### Simple Manipulation
```php
'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:
```bash
composer require "byjg/anydataset-sparql=4.0.*"
```## Running the Unit tests
```bash
vendor/bin/phpunit
```----
[Open source ByJG](http://opensource.byjg.com)