Menu

#2 Searching for a text string in comment fields

open
5
2006-09-11
2006-09-11
No

Can someone post a recipe for searching (within
Knowtator, so I presume that it would be a PAL axiom)
for a text string in comment fields? My specific need
is to be able to search in the comment fields that are
associated with text sources.

Discussion

  • Philip Ogren

    Philip Ogren - 2006-09-11
     
  • Philip Ogren

    Philip Ogren - 2006-09-11

    Logged In: YES
    user_id=1052182

    I'm not sure the best way to do this in Protege. PAL is not
    really good at doing string search (in fact it is bad.) I
    decided to write a very simple script that writes out the
    text source comments to a file. You can search through
    that. Sorry I don't have a more satisfactory answer!

    Attached is CommentsWriter which takes two arguments:
    1) the full path to your annotation/Protege project (.pprj file)
    2) a path to you comments file

    Double quote the arguments if you need to.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.