W3C home > Mailing lists > Public > public-cwm-talk@w3.org > October to December 2009

Re: Converting a Natural Language Parse Tree to Notation3

From: Chris Spencer <chrisspen@gmail.com>
Date: Fri, 16 Oct 2009 13:10:51 -0400
Message-ID: <beb7688e0910161010t230a50famb8ccf9ca30c593a5@mail.gmail.com>
To: Tim rdf <timrdf@gmail.com>
Cc: public-cwm-talk@w3.org
Thanks Tim! That clarifies a lot.

Regards,
Chris

On Fri, Oct 16, 2009 at 12:12 PM, Tim rdf <timrdf@gmail.com> wrote:
> I would:
> 1) avoid bothering with minting number IDs for each node; just let
> the bnode carry it.
> 2) Use 'a' instead of :tag.
>
>               (PP
>                   of/IN
>                   (NP
>                       the/DT
>                       company/NN
>                   )
>               )
>
> @prefix pos: <http://eg.com/parts-of-speech#>
>
> [ a pos:PP;
>  pos:comprises (
>    [ pos:string "of"; a pos:IN ]
>    ( a pos:NP;
>        pos:comprises (
>            [ pos:string "the"; a pos:DT ]
>            [ pos:string "company"; a pos:NN ]
>        )
>    )
>  )
> ] .
>
>
>
> -Tim
>
>
> On Fri, Oct 16, 2009 at 11:27 AM, Chris Spencer <chrisspen@gmail.com> wrote:
>> On Fri, Oct 16, 2009 at 10:37 AM, naudts guido
>> <naudts_vannoten@yahoo.com> wrote:
>>> Hallo,
>>> this can be converted to N3 in the following manner:
>>> [:node "some_node eg VP"; :parentNode "parentNode1; :children ("childnode1" ..."childNoden")].
>>> Then you can query eg give all childnodes of VP:
>>> [:node "VP"; :children ?a].
>>> where ?a will be replaced by the children.
>>> (I translate XML to N3 in this manner).
>>> Of course you can easily add other characteristics to a node.
>>> With kind regards,
>>
>> Interesting, thanks.
>>
>> Just to clarify though, are you using the grammar tags as unique
>> identifiers? Isn't this impossible, since multiple nodes use the same
>> grammar tags (e.g. there are multiple VP nodes)?
>>
>> Wouldn't you instead store the grammar tag in a separate attribute like:
>> [:node "2103738"; :tag "VP"; :parentNode "9073"; :children("98732987"
>> "342323241" ...)]
>>
>> and then query it like:
>> [:node ?a; :tag "VP"; :children ?a]
>> ?
>>
>> Regards,
>> Chris
>>
>>
>
Received on Friday, 16 October 2009 17:11:23 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:01:06 UTC