SPARQL

This portal makes available to users a SPARQL access point that can be consulted through HTTP-GET requests to the REST API indicated in the configuration data of the portal. As an endpoint we use the Apache Marmotta platform for its simplicity of installation and use.

This page has also been created to facilitate queries and tests on the SPARQL access point, here are some sample queries:

  • Get all the triplets for a given subject: SELECT * WHERE {<http://apirtod.santfeliu.cat/api/datos/empreses/978.rdf> ?p ?o}
  • List of concepts used: SELECT DISTINCT ?concept WHERE { ?s a ?concept . } LIMIT 50

SPARQL language specification http://www.w3.org/TR/rdf-sparql-query/