SPARQL Query Guide

Last updated: 2026-03-25 12:03:52

SPARQL Queries for RiC Data

Basic Queries

List all Record Sets:

PREFIX rico: <https://www.ica.org/standards/RiC/ontology#>
SELECT ?s ?title WHERE {
  ?s a rico:RecordSet .
  ?s rico:title ?title .
} LIMIT 100

Find records by creator:

PREFIX rico: <https://www.ica.org/standards/RiC/ontology#>
SELECT ?record ?title ?creator ?creatorName WHERE {
  ?record a rico:RecordSet .
  ?record rico:title ?title .
  ?creator rico:isCreatorOf ?record .
  ?creator rico:title ?creatorName .
}

Get all relationships for a record:

PREFIX rico: <https://www.ica.org/standards/RiC/ontology#>
SELECT ?subject ?predicate ?object WHERE {
  { <URI> ?predicate ?object . BIND(<URI> AS ?subject) }
  UNION
  { ?subject ?predicate <URI> . BIND(<URI> AS ?object) }
}

Fuseki Endpoint

The SPARQL endpoint is available at the configured Fuseki URL (typically http://localhost:3030/ric/query).


Comments (0)

Log in or register to leave a comment.
On this page