Syntax Search Help - OpenText.org

Fred Chapman
Fred Chapman Member Posts: 5,899 ✭✭✭
edited November 2024 in English Forum

The following is a graph of Ephesians 5:5. I cannot figure out how to get this set up to search for similar structure with the same two predicators.

I have been able to generate a search that will give me either the embedded clause and predicator or the conjunction and a predicator, but not both at the same time.

Comments

  • Rick Brannan (Logos)
    Rick Brannan (Logos) Member, Logos Employee Posts: 1,862

    Hi Fred.

    It might help a little to see all of the structure; looks like you're (profitably) using the "Display" functionality to remove the word group items from the display. Here's the clause with all the annotation:

    image

    The conjunction (cj) and Predicator (P) are in what is called a "Gap". This type of thing can happen frequently with post-positives.

    To find this sort of structure, you need to use the "Gap" operator in the syntax query editor to model the query.

    (Apologies, I'm on 4.3 beta 5 which has a known bug in display of syntax queries, it forces the 'concise' view instead of the 'detail' view)

    image


    To model the query, I'd start with the structure I have highlighted in the graph. The above only has the structures you're displaying (outside of the initial PC). Basically, the gap sits between the right-most structures that it can. Note also the dotted lines connecting the gap to the objects in the gap; these indicate that "Matching skips levels" is selected. This is also a requirement for the gap; the conjunction and predicator are not direct children of the gap, they're attached somewhere further back in the hierarchy of the graph structure.

    This query returns 3 hits, Ac 7.45, Ro 4.1 and Eph 5.5. When I remove the conjunction from the gap, I get 64 results. Note I haven't added any word objects (so no lemma data, etc.). To do that, you could add a word object with the "Matching skips levels" selected, or you could replicate the hierarchy of the complete graph. You can see a query for the complete graph (which returns one hit, Eph 5.5) below.  

    image

    Hope it helps.

    Rick Brannan
    Data Wrangler, Faithlife
    My books in print

  • Fred Chapman
    Fred Chapman Member Posts: 5,899 ✭✭✭


    Hi Fred.

    It might help a little to see all of the structure; looks like you're (profitably) using the "Display" functionality to remove the word group items from the display. Here's the clause with all the annotation:

    image

    The conjunction (cj) and Predicator (P) are in what is called a "Gap". This type of thing can happen frequently with post-positives.

    To find this sort of structure, you need to use the "Gap" operator in the syntax query editor to model the query.

    (Apologies, I'm on 4.3 beta 5 which has a known bug in display of syntax queries, it forces the 'concise' view instead of the 'detail' view)

    image

     

    To model the query, I'd start with the structure I have highlighted in the graph. The above only has the structures you're displaying (outside of the initial PC). Basically, the gap sits between the right-most structures that it can. Note also the dotted lines connecting the gap to the objects in the gap; these indicate that "Matching skips levels" is selected. This is also a requirement for the gap; the conjunction and predicator are not direct children of the gap, they're attached somewhere further back in the hierarchy of the graph structure.

    This query returns 3 hits, Ac 7.45, Ro 4.1 and Eph 5.5. When I remove the conjunction from the gap, I get 64 results. Note I haven't added any word objects (so no lemma data, etc.). To do that, you could add a word object with the "Matching skips levels" selected, or you could replicate the hierarchy of the complete graph. You can see a query for the complete graph (which returns one hit, Eph 5.5) below.  

     

    image

    Hope it helps.


    Rick,

    That is exactly what I was looking for. Great explanation, I'll be sure to store this away for future reference.

    Thanks for the quick response

  • Rick Brannan (Logos)
    Rick Brannan (Logos) Member, Logos Employee Posts: 1,862

    Rick,

    That is exactly what I was looking for. Great explanation, I'll be sure to store this away for future reference.

    Thanks for the quick response

    Hi Fred.

    Glad to help. Gaps can be a little tricky; if you have further questions, I'll be happy to try to answer them.

    Rick Brannan
    Data Wrangler, Faithlife
    My books in print