Previous Topic

Next Topic

alias

Creates an alias to a resource. This simplifies queries by using qualified names instead of element references within constraints.

The general syntax is as follows:

alias resource as namespace;

Where resource is the URI prefix to abbreviate and namespace is an unquoted XML namespace prefix.

For example:

alias <http://purl.org/dc/elements/1.1/> as dcns;
alias <http://www.w3.org/1999/02/22-rdf-syntax-ns#> as rdfns;

Note - Alias substitution only occurs in the where clause of select commands.

For example, the where clause in the following select command uses a complete URI.

select $obj $pred from <http://purl.org/dc/elements/1.1/>
where <http://purl.org/dc/elements/1.1/title> $pred $obj;

With the alias command, this can be simplified to:

alias <http://purl.org/dc/elements/1.1/> as dc;
select $obj $pred from <http://purl.org/dc/elements/1.1/> where <dc:title> $pred $obj;

See Also

iTQL Commands

backup

comment (#)

commit

create

delete

drop

execute

help

insert

load

quit

restore

rollback

select

set

Open Source logo

© 2001-2004 Tucana Technologies, Inc. Some rights reserved.

© 2006 The Mulgara Project. Some rights reserved.
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the section entitled "GNU Free Documentation License".