From: Jos D. <jos...@ag...> - 2004-09-02 18:38:09
|
We have to stay tuned for "N3 formal grammar" as you can see in http://www.w3.org/2000/10/swap/doc/plans.html and in the mean time continue with http://www.w3.org/DesignIssues/OldNotation3Grammar and map the verbs to the this.name and the subject and object to this.partlist.list (I've done tests with a mapping to holds(s, p, o) but that is dramatic :)) best regards, jos -- Jos De Roo, AGFA http://www.agfa.com/w3c/jdroo/ ant...@4c... Sent by: eul...@li... 02/09/2004 12:20 To: eul...@li... cc: (bcc: Jos De_Roo/AMDUS/MOR/Agfa-NV/BE/BAYER) Subject: Re: [Eulermoz-developers] Re: N3ParserX.py question Hello Naudts Great ;-) >I forgot to tell that I did implement log:falseHood, >so implementing [] will not be difficult. Ok, thanks, we are writing a jflex grammar, the idea is to have a N3 scanner and a parser in java and then try to write a js equivalent. The easier the code result the better. Cheers Antonio. > Hallo Antonio, > I indeed did not implement these parts of the > specification, as I did not find these features very > usefull except for []). See further my comments after > your text. > Now the specification I give in my source code is a > specification but there are others and there is really > no official spec (it should have to be made) so I try > to follow what Berners-Lee writes in his introduction > to N3. > See for specifications: > www.w3.org/DesignIssues/Notation3.html > I started also translating my parser to Javascript. > Are you doing the same thing? Or planning to do so? > Does it make sense that I make a translation? > If I do, I will add the missing features. > --- ant...@4c... wrote: > >> Hallo Naudts. >> >> As you recommended to us we are on N3 parser in >> JavaScript (trying to work >> it out at least) and we are using your N3 parser as >> a guide. >> >> But there are a couple of questions it would be >> nice if you give us a >> hint about how to use then and how they should be >> treated. >> Well it's just enough if you tell us where do you >> find this specification. >> >> >> a)Line 2046 >> # verb ::= ">-" prop "->" # has xxx of >> # | "<-" prop "<-" # is xxx of >> > I implemented the forms: > :s has :p of :o. > and > :s is :p of :o. > So I could easily implement also the ">-", "->", > "<-" and "<-" by treating them just the same but does > this add much? Well, for completeness sake I ought > have done it, but I never did. >> b)Line 2074 >> # property_list ::= void # to allow [...]. >> # | verb space+ object_list >> # | verb space+ object_list space+ >> ";" space+ property_list >> # | ":-" anonnode #to allow two >> anonymous forms to be >> given eg [ a :Truth; :- { :sky :color :blue } ] ) >> # | ":-" anonnode ";" property_list >> # ; >> > I did not implement []. Still missing. [] is equal to > the false value; it comes today in place of > log:falseHood; I know Jos De Roo uses it.(Correct me > Jos if I am wrong) > The ":-" is another feature of the specification which > I did not implement as I thought this to be totally > superfluous.For its meaning see: > http://infomesh.net/2002/notation3/ > Cheers, Guido. >> Thanks. >> Cheers >> Antonio >> > > > > > > __________________________________ > Do you Yahoo!? > New and Improved Yahoo! Mail - 100MB free storage! > http://promotions.yahoo.com/new_mail > > > ------------------------------------------------------- > This SF.Net email is sponsored by BEA Weblogic Workshop > FREE Java Enterprise J2EE developer tools! > Get your free copy of BEA WebLogic Workshop 8.1 today. > http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click > _______________________________________________ > Eulermoz-developers mailing list > Eul...@li... > https://lists.sourceforge.net/lists/listinfo/eulermoz-developers > ------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click _______________________________________________ Eulermoz-developers mailing list Eul...@li... https://lists.sourceforge.net/lists/listinfo/eulermoz-developers |