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

Latest News

Kowari 1.1.0 Pre-release 1 Released

Kowari 1.0.5 Released

Kowari 1.0.4.1 Released

Kowari 1.0.4 Released

DAWG Evaluates iTQL

Kowari article in XML.com

Kowari mentioned on XML.com

Kowari 1.0.3 Released

Kowari Lite Introduced

Kowari 1.0.2 Released

Kowari 1.0.1 Released

View all news items


Open Source logo Tucana Technologies Logo SourceForge.net Logo

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