Prefixes
SPARQL queries can use the prefixes from sparqld's default context without declaring them in each query.
| Prefix | Expanded value |
|---|---|
rdf: |
http://www.w3.org/1999/02/22-rdf-syntax-ns# |
rdfs: |
http://www.w3.org/2000/01/rdf-schema# |
xsd: |
http://www.w3.org/2001/XMLSchema# |
This query uses the default rdfs:
mapping without a PREFIX declaration:
Source comment.rq
SELECT ?comment
WHERE {
<http://dbpedia.org/resource/Guillem_Anglada-Escud%C3%A9> rdfs:comment ?comment .
}
Result:
| comment |
|---|
| Led the team that announced the discovery of Proxima Centauri b. |
Declare other prefixes with PREFIX in the query. A query's own declaration
takes precedence over a default mapping with the same prefix.