sparql
Query SPARQL datasource with SQL
Repository
lacanoid/pgsparql
https://github.com/lacanoid/pgsparql
Source
pgsparql-1.0.tar.gz
pgsparql-1.0.tar.gz
Overview
| Package | Version | Category | License | Language |
|---|---|---|---|---|
pgsparql | 1.0 | UTIL | Apache-2.0 | SQL |
| ID | Extension | Bin | Lib | Load | Create | Trust | Reloc | Schema |
|---|---|---|---|---|---|---|---|---|
| 4470 | sparql | No | No | No | Yes | No | No | sparql |
Version
| Type | Repo | Version | PG Ver | Package | Deps |
|---|---|---|---|---|---|
| EXT | PIGSTY | 1.0 | 1817161514 | pgsparql | plperl, plperlu |
| RPM | PIGSTY | 1.0 | 1817161514 | pgsparql_$v | - |
| DEB | PIGSTY | 1.0 | 1817161514 | postgresql-$v-pgsparql | - |
Build
You can build the RPM / DEB packages for pgsparql using pig build:
Install
You can install pgsparql directly. First, make sure the PGDG and PIGSTY repositories are added and enabled:
Install the extension using pig or apt/yum/dnf:
Install
pig
dnf
apt
Create Extension:
Usage
Query SPARQL endpoints (e.g., DBpedia/Virtuoso) from PostgreSQL. SPARQL queries are compiled into Postgres views for use in SQL.
Get Properties of a Resource
Get References to a Resource
Compile SPARQL Query into SQL View
Parameters:
endpoint– default SPARQL endpoint nameidentifier– SQL identifier for the created function and viewsparql_query– the SPARQL query to compilegrouping– optional array of identifiers to group by (non-grouped columns are aggregated into arrays)
Example
This creates a function ludwig_van() and a view ludwig_van that queries the SPARQL endpoint and returns results as a SQL table.
Was this page helpful?
Thanks—your feedback helps us improve this page.
What got in the way? (optional)