SPARQL Query Interface
Query the SEEK knowledge graph using SPARQL
Example Queries
List all classes
Example
Find all RDF classes used in the dataset
SELECT DISTINCT ?class
WHERE {
[] a ?class
}
LIMIT 20
Sample triples
Example
Show basic subject-predicate-object patterns
SELECT ?subject ?predicate ?object
WHERE {
?subject ?predicate ?object .
}
LIMIT 10
List all properties
Example
Find all predicates/properties used
SELECT DISTINCT ?property
WHERE {
[] ?property []
}
LIMIT 20
Count entities by type
Example
Count how many entities exist for each class
SELECT ?type (COUNT(?entity) as ?count)
WHERE {
?entity a ?type
}
GROUP BY ?type
ORDER BY DESC(?count)
Describe a resource
Example
Get all information about a specific resource (replace with actual URI)
DESCRIBE <http://example.org/resource>
Find organisms
Example
Look for organism-related data
SELECT DISTINCT ?organism ?label
WHERE {
?organism a ?type .
FILTER(CONTAINS(LCASE(STR(?type)), "organism") ||
CONTAINS(LCASE(STR(?type)), "species") ||
CONTAINS(LCASE(STR(?type)), "taxon"))
OPTIONAL { ?organism rdfs:label ?label }
}
LIMIT 10
Find projects
Example
Look for project-related data
SELECT DISTINCT ?project ?title
WHERE {
?project a ?type .
FILTER(CONTAINS(LCASE(STR(?type)), "project"))
OPTIONAL { ?project dc:title ?title }
OPTIONAL { ?project dcterms:title ?title }
OPTIONAL { ?project rdfs:label ?title }
}
LIMIT 10
Find studies
Example
Look for study-related data
SELECT DISTINCT ?study ?title
WHERE {
?study a ?type .
FILTER(CONTAINS(LCASE(STR(?type)), "study"))
OPTIONAL { ?study dc:title ?title }
OPTIONAL { ?study dcterms:title ?title }
OPTIONAL { ?study rdfs:label ?title }
}
LIMIT 10
List named graphs
Example
Show all named graphs in the dataset
SELECT DISTINCT ?graph
WHERE {
GRAPH ?graph {
?s ?p ?o
}
}
LIMIT 10