Query non-RDF resources with SPARQL.
SPARQL Anything uses a unique data schema called Facade-X.
Facade-X is a simplistic meta-model that allows transformers to produce RDF from diverse data sources without the need of a domain vocabulary.
This is a generic example of a Facade-X data object:
@prefix fx: <http://sparql.xyz/facade-x/ns/> . @prefix xyz: <http://sparql.xyz/facade-x/data/> . @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . [] a fx:Root ; rdf:_1 [ xyz:someKey "some value" ; rdf:_1 "another value with unspecified key" ]; rdf:_2 [ rdf:type xyz:SomeType ; rdf:_1 "another value" ] ] .
SERVICE <x-sparql-anything:>
(see options)CONSTRUCT
queries, in plain SPARQL 1.1Results Sets files
as input for parametric queriesThe SPARQL Anything documentation can be found at readthedocs.io.
Here is a list of step-by-step tutorials covering several features of SPARQL Anything:
fx:anySlot
and the chaining of multiple SERVICE
clauses. It is based on the SPARQL Anything CLI.SPARQL Anything is available as Command Line Interafce (CLI), Web Server, and Software Library (Java and Python).