Hi Mehnaz,

With egrep under linux I managed to catch this case. This is the command itself:

egrep "(\"[^<>]*){3,}" wkb.nt

This will catch several double quotes (more than 3 to be precise) in a sequence of characters which do not contain the < or > which are used to describe a resource URI. That is, it will catch several double quotes in the labels.

Hope that will be of use.
Philip



Mehnaz Adnan wrote:
Thanks Philips,
Is there any way I can check this sort of error myself b/c in future I need to expand my knowledge base with more instances. And I dont want to bother you for such a small problem. Thanks again Mehnaz

2009/4/2 Philip Alexiev <[email protected] <mailto:[email protected]>>

    Hi Mehnaz,

    This is the line that causes the exception:

    <http://www.ontotext.com/kim/2006/05/wkb#marfan syndrome.9293>
    <http://www.w3.org/2000/01/rdf-schema#label> " marfan syndrome - A
    hereditary disorder of connective tissue characterized by tall
    stature, elongated extremities, dilatation of the ascending aorta,
    and "pigeon breast."" .


    The problem, particular is with the quotes. You should escape them
    with a single backslash like this:

    and \"pigeon breast.\""

    Greetings,
    Philip



    Mehnaz Adnan wrote:

        Hi Philip, Borislav,
         Please help I have send this email  to KIM-discussion but due
        to file size it bounces back.
         Thanks
         Mehnaz

        ---------- Forwarded message ----------
        From: *Mehnaz Adnan* <[email protected]
        <mailto:[email protected]>
        <mailto:[email protected]
        <mailto:[email protected]>>>
        Date: 2009/4/1
        Subject: problem in loading knowledge base
        To: [email protected]
        <mailto:[email protected]>
        <mailto:[email protected]
        <mailto:[email protected]>>


        Hi
         I have populated the knowledge base with my instances and
        replace the KIM/context/kb/wkb.nt with my wkb.nt. While
        starting KIM I got the following message in console:
         addThisOntology: kb/wkb.nt
        ......org.openrdf.rio.ParseException: Expected '.', found: p
         After getting this message KIM is annotating the
        instances(not all in wkb.nt)  found in text .
         I have checked the wkb.nt format using the ntriple validator
        avaliable from http://librdf.org/ntriples/
         The validator did not give any parsing error.
         Please help to overcome this problem
         I am attaching my wkb.nt file.
         I am using KIM2.3 RC1 on windows vista
-- Mehnaz Adnan
        Ph.D. Candidate,
        Department of Computer Science-Tamaki
        University of Auckland
        Phone: 09-3737599 ext 83274
        email: [email protected]
        <mailto:[email protected]>
        <mailto:[email protected]
        <mailto:[email protected]>>




-- Mehnaz Adnan
        Ph.D. Candidate,
        Department of Computer Science-Tamaki
        University of Auckland
        Phone: 09-3737599 ext 83274
        email: [email protected]
        <mailto:[email protected]>
        <mailto:[email protected]
        <mailto:[email protected]>>





--
Mehnaz Adnan
Ph.D. Candidate,
Department of Computer Science-Tamaki
University of Auckland
Phone: 09-3737599 ext 83274
email: [email protected] <mailto:[email protected]>

_______________________________________________
Kim-discussion mailing list
[email protected]
http://ontotext.com/mailman/listinfo/kim-discussion

Reply via email to