Namespace Prefixes

To help simplify SPARQL queries, Dydra provides several default namespace prefixes that you can use within your queries without having to explicitly define them at the top of each query. These defaults can be added to and overwritten as needed.

A core set of namespace prefixes is automatically available to all accounts and repositories hosted on Dydra. These defaults can be overwritten and added to at two different levels within the system. Prefixes can be defined within your account profile, which are made available to all of your repositories, and individually on each repository.

Account Prefixes

Account-wide prefixes can be set in your account profile under the Prefixes tab. Prefixes should be defined using standard SPARQL prefix defition syntax with one prefix per line. For example:

PREFIX cc: <http://creativecommons.org/ns#>

Any prefixes defined here will add to or override the default prefixes listed below and will be available to all of your repositories.

Account prefixes will also be used when querying the repositories of another account. However, in that case, any prefixes defined by the other account will take precedence over any that have been defined in your own. To override any prefixes they may have defined on another account or repository, you must include them in the query itself.

Repository Prefixes

Prefixes can also be defined at the repository level. These can be set in the Prefixes tab of the repository admin page.

Prefixes defined at the repository level take precedence over those defined at the account profile level.

Default Prefixes

This is a list of the default prefixes that you can use in Dydra SPARQL queries

PREFIX cc: <http://creativecommons.org/ns#>
PREFIX cert: <http://www.w3.org/ns/auth/cert#>
PREFIX dbp: <http://dbpedia.org/property/>
PREFIX dc: <http://purl.org/dc/terms/>
PREFIX dc11: <http://purl.org/dc/elements/1.1/>
PREFIX dcterms: <http://purl.org/dc/terms/>
PREFIX doap: <http://usefulinc.com/ns/doap#>
PREFIX exif: <http://www.w3.org/2003/12/exif/ns#>
PREFIX fn: <http://www.w3.org/2005/xpath-functions#>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
PREFIX geo: <http://www.w3.org/2003/01/geo/wgs84_pos#>
PREFIX geonames: <http://www.geonames.org/ontology#>
PREFIX gr: <http://purl.org/goodrelations/v1#>
PREFIX http: <http://www.w3.org/2006/http#>
PREFIX log: <http://www.w3.org/2000/10/swap/log#>
PREFIX owl: <http://www.w3.org/2002/07/owl#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX rei: <http://www.w3.org/2004/06/rei#>
PREFIX rsa: <http://www.w3.org/ns/auth/rsa#>
PREFIX rss: <http://purl.org/rss/1.0/>
PREFIX sfn: <http://www.w3.org/ns/sparql#>
PREFIX sioc: <http://rdfs.org/sioc/ns#>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX swrc: <http://swrc.ontoware.org/ontology#>
PREFIX types: <http://rdfs.org/sioc/types#>
PREFIX wot: <http://xmlns.com/wot/0.1/>
PREFIX xhtml: <http://www.w3.org/1999/xhtml#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>