Previous topic  Top  Next topic  Print this Topic


Used to distinguish same terms with different semantic
E.g. if two different domains speak about „Jaguar“ (in this case the domain cars and animals) you must be able to use the term „Jaguar“ for both but still be able to distinguish one from the other





In ObjectLogic files you may define a default prefix and any number of named prefixes

:- default prefix = "".

:- prefix bio = "http://www.animalsoftheworld#".


//no leading prefix means it is in the default prefix

Jaguar : Car.


//otherwise you put the prefix name with a ‘#’ in


bio#Jaguar : bio#animal.


It is possible to query for namespace and local

:- default prefix = "".

:- prefix bio = "".





?- ?Z:bio#animal
 AND ?Z[_localName->?L]

 AND ?Z[_namespace->?X].