Previous topic  Top  Next topic  Print this Topic
 

Default Namespace

 

Objects that do not use a declared namespace alias refer to objects in the default namespace, in the example below the URI http://www.myDomain.tv/private#.

:- prefix cars="http://www.cars-r-us.tv/".

:- prefix finance="http://www.financeWorld.tv/".

:- prefix xsd="http://www.w3.org/2001/XMLSchema#".

:- default prefix ="http://www.myDomain.tv/private#".

 

me:cars#Person[cars#age -> 28].

The default mechanism is used when a large number of objects, concepts, or methods from the same namespace are used, for example:

me stands for <http://www.myDomain.tv/private#me>