Search the web
Sign In
New User? Sign Up
information_modeling · Information Modeling
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Message search is now enhanced, find messages faster. Take it for a spin.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Hyphen binding and role names   Message List  
Reply | Forward Message #208 of 237 |
Re: Hyphen binding and role names

On 07/11/2007, at 5:03 AM, Terry Halpin wrote:
> As usual, I'm snowed under with work. If this quick reply fails
> to make it to the group, please post it for me.

Thanks Terry, I've done that.

> ... I don't like your proposed changes ... I don't see what
> benefits they offer

I guess I should have given more context.

I'm trying to produce a grammar that allows creation of all
aspects of an ORM2 model using only text. Among my goals
are:

* to allow a natural language feel as far as possible (which
means fewest keywords and open syntax rules),

* to identify object types by requiring them to be pre-declared,
rather than rely on them being capitalised (though I'm using
capitalisation in my examples for clarity),

* to minimise re-iteration by allowing role names (as well as
the most common cases of mandatory and uniqueness
constraints) to be specified in the initial fact type declaration,

* integration with a query language to define derived fact types.
Some query clauses look very like fact type declarations...

All that produces a difficult parsing problem. In summary, your
focus in readings is to produce the best verbalisations as output,
and mine is to structure the verbalisations to be suitable input
from which readings, role names, and some constraints may be
extracted.

I'm also looking at the IBL query language by Adrian Walker,
which is a very powerful open-vocabulary English query tool,
that writes a logic program that's largely translated into SQL.
I don't like his query language much (it's limited by not having
the ability to define the underlying fact model), so I'm trying to
improve on it. It's at <http://www.reengineeringllc.com>, see
<www.reengineeringllc.com/
Oil_Industry_Supply_Chain_by_Kowalski_and_Walker.pdf>.

However, I think I can back away from the restrictive approach
I mentioned yesterday, by distinguishing an inferred role name
from a declared one. For example, in either of "Event starts at
some start Location", and "Event starts at start-Location", the
column name default to "StartLocation", not just "Location".

If that doesn't work, my grammar also allows "as X" to provide
a role name: "Person as Mother is mother of Person". Here
the fact type being declared is "Person is mother of Person",
but with a role name on the first Person. The "as" form is more
necessarily used in queries to separate multiple variables of the
same object type.

If there is more than one reading, I need to decide when to infer
a role name (and which...), and I also need to separate such
inferred role named from one declared using "as".

> (e.g. our technique allows you to use more than one adjective anyway).

I didn't realise that NORMA allowed more than one adjective,
thanks for that. I'll have to support that too.

Also the trailing hyphen-binding... there doesn't seem to be an
equivalent to the "some" form that could provide that. It'd be
nice to see examples that would show whether an inferred role
name would work here too.

I'm very close to being able to dump NORMA models into my
CQL model definition language, except for the advanced
constraint types, so you'll all be able to see how it looks shortly.
Hopefully I can show examples of derived fact types as well.

Clifford Heath.





Wed Nov 7, 2007 1:19 am

clifford_heath4
Offline Offline
Send Email Send Email

Forward
Message #208 of 237 |
Expand Messages Author Sort by Date

Folk, I'm considering taking a slightly different approach to hyphen- binding from that taken by NORMA, and I'd value your opinion. First I'll introduce...
Clifford Heath
clifford_heath4
Offline Send Email
Nov 6, 2007
2:42 am

Terry responded:...
Clifford Heath
clifford_heath4
Offline Send Email
Nov 6, 2007
11:29 pm

... Thanks Terry, I've done that. ... I guess I should have given more context. I'm trying to produce a grammar that allows creation of all aspects of an ORM2...
Clifford Heath
clifford_heath4
Offline Send Email
Nov 7, 2007
1:20 am

Hi Clifford Thanks for posting my reply. I agree with all your goals -- we are planning similar functionality, so I hope we can somehow unify our work or at...
Terry Halpin
terry.halpin@...
Send Email
Nov 7, 2007
8:21 pm

... Certainly - that's what the metamodel forum (RIP) was meant to be about. ... I plan to avoid the need to distinguish them. When a term has been defined in...
Clifford Heath
clifford_heath4
Offline Send Email
Nov 7, 2007
10:19 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help