simple rdf templat e query

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

simple rdf templat e query

rvj-2
given a datsource how do you limit the child to just the immediate child of
the ref  (node)

<seq id="root">
        <seq ref="node">
                    <seq  text="1a">
                            <seq text="1a1a">
                            <seq text="1a1b">
                            .............

                    <seq text="1b">
                           <seq text="1b1a">
                           <seq text="1b1b">
                            ..................


in other words I only want to generate

        1a
        1b


is there some kind of depth rule that limits the scope?


_______________________________________________
dev-tech-rdf mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-tech-rdf
Reply | Threaded
Open this post in threaded view
|

Re: simple rdf templat e query

rvj-2

I guess a single generation  solution is some kind of rule that checks that
the  descendents of a "ref" node have
an immediate parent with the ref id?

similarly if you need a two generation search you would add a second rule
that checks that the
 parent of the immediate parent of a descendent has the target ref id ?

Is this possible?

... or is it simpler than this ??


"rvj" <[hidden email]> wrote in message
news:[hidden email]...

> given a datsource how do you limit the child to just the immediate child
> of the ref  (node)
>
> <seq id="root">
>        <seq ref="node">
>                    <seq  text="1a">
>                            <seq text="1a1a">
>                            <seq text="1a1b">
>                            .............
>
>                    <seq text="1b">
>                           <seq text="1b1a">
>                           <seq text="1b1b">
>                            ..................
>
>
> in other words I only want to generate
>
>        1a
>        1b
>
>
> is there some kind of depth rule that limits the scope?
>


_______________________________________________
dev-tech-rdf mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-tech-rdf