[Mulgara-dev] RelatedTo.

David Wood dwood at softwarememetics.com
Mon Nov 20 09:38:21 CST 2006


On 19 Nov2006, at 06:44, Andrae Muys wrote:
> From the examples you provide, they do sound useful, but it isn't  
> really a description of what related-to/isrelated actually do, so  
> I'm still rather in the dark as to what they actually are.

You are right, I should indeed have explained what they did (shifting  
to the past tense :) for those who don't recall.

There were two commands, relatedTo() and howRelated().  relatedTo()  
had an exposure in iTQL syntax (the 'relate' command) but howRelated  
did not.  They were both available via the API.

relatedTo() was used to find nodes in a model that were similar to an  
example node, based on a query.  Similarity between nodes was based  
on shared predicate/objects linkages to the results of the query.   
The percentage of shared linkages determines the degree of  
similarity.  A threshold could be set to ensure results were at least  
of a given percentage.

howRelated() was used to determine how two nodes were related.  A set  
of queries could be given, each of which might include the nodes in  
their results.  The result of a howRelated() was an Answer object  
containing the statements relating the two nodes *in the context of  
the set of queries*.

Regards,
Dave

--
http://prototypo.blogspot.com








More information about the Mulgara-dev mailing list