ontopia icon indicating copy to clipboard operation
ontopia copied to clipboard

Experimental 'name' predicate should become a built-in predicate

Open GoogleCodeExporter opened this issue 10 years ago • 1 comments

We've had 'name' predicate in the http://psi.ontopia.net/tolog/
experimental module for a while. This is quite a useful predicate, and I 
would like to see it become a built-in predicate (part of the default 
module).

The 'name($TOPIC)' predicate returns a single name value for a given 
topic. This is useful when topics have more than just one name. One often 
ends up in the situation where one gets multiple values for a given topic, 
but would want to select just a single row. This does not apply just to 
names, but also occurrences and associations, so we may want similar 
predicates for them as well. An alternative solution is to allow one to 
use limit (and even offset) at the end of AND clauses.

It would be quite handy if we could extend this predicate to take 
arguments for name type and name scope, i.e. 'name($TOPIC, $TYPE, $THEME)'.

Any thoughts on this?

Original issue reported on code.google.com by [email protected] on 4 Dec 2009 at 4:44

GoogleCodeExporter avatar Mar 16 '15 22:03 GoogleCodeExporter