Do we actually need to generate arbitrary Python code on the fly for
the properties of individual Graph nodes?
Say we have a graph with nodes X,Y,Z and edges a and b configured like
so:
Y <-a-- X --b-> Z
As I understand it, the more general problem for the OWL-to-Python-OOP
mapping problem is that we want to be able to create an instance of X
called x and then deference its properties like so:
>> x.a # returns an instance of Y
>> x.b # returns an instance of Z
Would we need to create Python code at runtime to do this, or could we
just specify property values at runtime? (I don't know the answer;
it's been a while since I've looked at properties.)
On Aug 13, 3:00 pm, scott farrar <
sofar...@gmail.com> wrote:
> Hi Bill
>
> Yes, I think this will be a general solution but only for linguistic data
> types that are whole graphs: Termset, Lexicon, IGT, etc. But regarding
> specific sign individuals (Graph nodes), I'm not sure if this makes sense.
> For all sign instances, we're back to the old problem of generating methods
> on the fly for each instance.
>
> Scott
>
>
>
> On Thu, Aug 13, 2009 at 2:44 PM, W.P. McNeill <
bill...@gmail.com> wrote:
> > The getTermMeaning() method is easy to incorporate into the code I have
> > been writing, and hiding SPARQL queries in function calls seems like a good
> > design decision. I think this gives me what I need to finish writing the
> > SignListReader.
> > Is this going to be a general enough solution for the whole project? For
> > example, say we get some LinguisticSign instance x out of GOLD. Are we
> > going to be able to call the function:
>
> > >>> x.hasMeaning
>