Hi Estella, I believe that Owlim is trying to parse the .nt file as an n-triples file. From what I see your RDF is in a turtle format. The proper file extension for which is .ttl . Owlim uses the file's extension to determine which parser to use. I am applying a list of the most common RDF formats and their corresponding extensions:
RDF/XML - .rdf N-Triples - .nt Turtle - .ttl N3/Notation3 - .n3 You can read the specifications for those format at w3c's official site. RDF/XML - http://www.w3.org/TR/REC-rdf-syntax/ N-Triples - http://www.w3.org/TR/rdf-testcases/#ntriples Turtle - http://www.w3.org/TR/turtle/ N3/Notation3 - http://www.w3.org/DesignIssues/Notation3.html Hope this helps, Philip On Mar 5, 2013, at 9:12 AM, 金碧漪 <estella...@hotmail.com> wrote: > Hi Phil, > > As we all know, my domain-specific ontology needs to inherit the class Entity > from the PROTON System module. So I wrote the following statements in a .nt > file. > > "@prefix protont: <http://proton.semanticweb.org/2006/05/protont#> . > @prefix protons: <http://proton.semanticweb.org/2006/05/protons#> . > @prefix robot: <http://in.space#> . > @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . > > robot:Robot rdfs:subClassOf protons:Entity . > robot:Person rdfs:subClassOf protont:Person . > " > However, when I restarted the KIM, the error came like this: > > "org.openrdf.rio.RDFParseException: Expected'<' or '_' , found: @ [line 1]" > > I cannot find the reason. Hope you can figure it out. > > Best Wishes! > > Estell a. > > From: philip.alex...@ontotext.com > Subject: Re: a problem occurred in starting kim > Date: Fri, 1 Mar 2013 11:54:13 +0200 > To: estella...@hotmail.com > > Hi Estella, > > Most probably your RDF is invalid and sesame complains. Sesame error are not > very descriptive. > > I usually check my custom RDF using an online validator like this one: > http://www.rdfabout.com/demo/validator/ . > > Try commenting/deleting some of the imports to see exactly which file is > invalid. Then concentrate on it and find the error. > > Hth, > Phil > > > On Feb 28, 2013, at 4:01 PM, 金碧漪 <estella...@hotmail.com> wrote: > > Dear Phil, > > I tried to use my own domain ontology in KIM by mapping my cuisine ontology > to the proton ontology. > > I made up two classes in my ontology(just for test) in a cuisine.owl file and > several instances of the two classes in a cuisine.nt file. > > Then according to the KIM customization document, I made up the following > files: > cuisine_proton.nt > cuisine_generated_by.n3 > cuisine_labels.n3 > cuisine_main_labels.n3 > > I imported the six files in the owlim.ttl file accordingly, it looks like > this: > owlim:imports&nb sp; > "kb/owl/owl.rdfs; > kb/owl/protons.owl; > kb/owl/protont.owl; > kb/owl/protonu.owl; > kb/owl/kimso.owl; > kb/owl/kimlo.owl; > kb/skos-owl1-dl.rdf; > kb/wkb.nt; > kb/wkbx.nt; > kb/cuisine/cuisine.owl; > kb/cuisine/cuisine.nt; > kb/cuisine/cuisine_proton.nt; > &n bsp; kb/cuisine/cuisine_generated_by.n3; > kb/cuisine/cuisine_labels.n3; > kb/cuisine/cuisine_main_labels.n3;" ; > > > owlim:defaultNS > "http://www.w3.org/2002/07/owl#; > http://proton.semanticweb.org/2006/05/protons#; > http://proton.semanticweb.org/2006/05/protont #; > http://proton.semanticweb.org/2006/05/protonu#; > http://www.ontotext.com/kim/2006/05/wkb#; > http://www.ontotext.com/kim/2006/05/wkb#; > http://www.ontotext.com/kim/2006/05/wkb#; > http://www.ontotext.com/kim/2006/05/wkb#;< span > class="ecxApple-tab-span" style="white-space:pre"> > http://www.ontotext.com/kim/2006/05/wkb#; > http://www.semanticweb.org/administrator/ontologies/2013/1/cuisine#; > http://www.semanticweb.org/administrator/ontologies/2013/1/cuisine#; > http://www.s emanticweb.org/administrator/o ntologies/2013/1/cuisine#; > http://www.semanticweb.org/administrator/ontologies/2013/1/cuisine#; > http://www.semanticweb.org/administrator/ontologies/2013/1/cuisine#; > http://www.semanticweb.org/administrator/ontologies/2013/1/cuisine#;" > > after that, I deleted the .../context/default/populated file and restarted > KIM. > > Lots of errors occurred(too many that I can not pasted here).The error > started from importing my own files. But I don't how to write the correct > mapping files. > > I have tried many times, but still can not find the problem. Would you please > give me any advice or some documents to read? > > Attached is my six files concerning the owl, instance and mapping. > > Thank you so much! Sorry to put you to inconvenience again. > > Best Wishes!! > > Estella > > > > From: philip.alex...@ontotext.com > Subject: Re: a problem occurred in starting kim > Date: Tue, 26 Feb 2013 17:15:18 +0200 > To: estella...@hotmail.com > > Hi Estella, > > This is a complicated matter. > The general answer is "yes". Although it may become complicated. > > The best resource you can refer to, I think, is : > http://gate.ac.uk/sale/tao/splitch15.html#x20-39200015 > > Hth, > Phil > > On Feb 26, 2013, at 2:57 PM, 金碧漪 <estella...@hotmail.com> wrote: > > Dear Phil, > > Here comes my another problem: > > Can KIM recognize the Ontology written in Chinese? I mean if I try to > integrate a new Chinese ontology in KIM, would it be possible? > > Best Wishes > > Estella > > From: philip.alex...@ontotext.com > Subject: Re: a problem occurred in starting kim > Date: Mon, 25 Feb 2013 15:54:15 +0200 > To: estella...@hotmail.com > > The default namespace serves to be append ed to objects in the RDF file > without namespace pr ovided, for example > :Philip rdfs:label "Philip" > > The first object is without a namespace, which means the default will be > appended. > If you have a common namespace you use for each of your custom objects in the > ontology, this is the one to set as default. > If you don't have objects without namespace, the default namespace you > provide has absolutely no effect. It is required n evertheless. > > Hth, > Phil > > > On Feb 25, 2013, at 3:47 PM, 金碧漪 <estella...@hotmail.com> wrote: > > Dear Philip, > > I think I'v got you~But still I cannot figure out how to add a default > namepace for my OWL file. > > Do the default namepace have a fixed format, like "http://..."? Where should > I get the name space ? Or can I just make it up? > > It's so nice of you~Thanks~ > > Estella > > From: philip.alex...@ontotext.com > Subject: Re: a problem occurred in starting kim > Date: Mon, 25 Feb 2013 10:24:09 +0200 > To: estella...@hotmail.com > > Hello Estella, > > You are always welcome. > > Let's try to fight one problem at a time. > > You can add files to the imports by copying the files in > KIM/context/default/kb/ ;or any subfolder (for example if you have more > than one files you may want to make a folder for your customization and put > all your files there). Then you add those files to the imports section in > owlim.ttl . As y ou can see, the paths are relative and start from > KIM/context/default . So for example if you have a file customization.ttl > and you put it in KIM/context/default/kb/customization.ttl then in the > owlim:imports you should add the following line: > kb/customizations.ttl; > Also after this, you should add a default namespace for the new import in the > owlim:defaultNS . This is mandatory. > > Maybe it is confusing with the relative paths. Most of the time (in most > files), they start fr om KIM/context/default as by design, this is the > location to put all your customizations. You can also check it out. In this > case if you do a file search for wkb.nt for example, in the KIM folder, you > will see that the file is located in KIM/context/default/kb/wkb.nt and you > will get the idea. > And of course you can always ask. > > I am here for your next questions. > > Hope thi s helps > Philip > > On Feb 25, 2013, at 9:07 AM, 金碧漪 <estella...@hotmail.com> wrote: > > < br>Dear Philip, > > Thanks to your help, I can run the KIM on my computer now! And thank you for > allways being patient to all of my questions. > > As we all konw, KIM is a semantic pl atform for information extraction and > retrieval. And I want to customize KIM for my own data. In other words, I > want to add a new ontology in KIM for my own research. > > I've read the pdf file:"cus tomizing KIM3" carefully. Although the steps > described in this file are quite detailed, I still have a problem to go with > it. > > I think the main reason is I do not have good knowledge of Semantic Web > technologies, For instance, I can't find a way when I try to add files to > "KIM/config/owlim.ttl". > < div> > I feel ashamed for my ignorance of t his kind of knowledge. If you have more > detailed files for how to customize KIM, please send some to me. > > Or could you please offer some other ways to help me out? I'm so sorry if I > put you to inconvenience.< /div> > > With thanks again and hope you have a nice day. > > Best Regards, > > Estella > > > > > From: philip.alex...@ontotext.com > Subject: Re: a problem occurred in starting kim > Date: Tue, 12 Feb 2013 17:18:35 +0200 > To: estella...@hotmail.com > > Hello Estella, > > We have just provided an updated version of the KIM platform 3 .7. Please > update your version, as 3.6 had a problem with the licenses. > > You can change the value of the Java maximum heap size by editing the > following script: > > Windows: > KIM/bin/config/config.bat > > Linux/Unix: > KIM/bin/config/config > > > You can change the setting in the following line: > Windows: > if "%KIM_MAX_JAVA_HEAP%"=="" set KIM_MAX_JAVA_HEAP=2g > > Linux/Unix: > export KIM_MAX_JAVA_HEAP="2g" > > > Feel free to contact me anytime if you have further difficulties. > > All the best, > Philip > > On Feb 12, 2013, at 5:12 PM, 金碧漪 <estella...@hotmail.com> wrote: > > Dear Philip, > > Thank you! Your sugestions really help me a lot! I do use a 32 bit system. > > One of my friend is running KIM successfully with a 32 bit system. When I > asked him about this problem, he told me that his KIM_MAX_HEAP_SIZE value is > 1G, and his KIM version is 3.0. So I think I find the key point of this > problem. > > But please forgive my ignorance——I cannot figure out how to edit the value of > this parameter. I can't find the correct file in the kim floder. > > Or could you tell me how to download the lower version of KIM? The current > version is 3.6. > > I appreciate your kindness! > > Thanks and best regards, > > Estella > > From: philip.alex...@ontotext.com > Subject: Re: a problem occurred in starting kim > Date: Mon, 11 Feb 2013 11:33:12 +0200 > To: estella...@hotmail.com > > Hello Estella, > > One guess is that you are using a 32 bit system. And it seems there is a > limit on the amount of memory a 32 bit process can allocate. It is about 1.5 > (differs on different OSes and jvm implementations). So if you are running a > 32 bit system please try to lower the KIM_MAX_HEAP_SIZE value to 1.5, 1.2 > etc. This variable actually holds the -Xmx val ue that is given to the JVM > upon starting of the server. > > Also please make sure you have all the desired memory available, when you > start the server. If not - the JVM will try to allocate it, and fail with > this very error.< /div> > These are my sugg estions, > If the problem still persists, please contact me. > > All the best, > Philip > > On Feb 9, 2013, at 10:26 AM, 金碧漪 << a > href="mailto:estella...@hotmail.com">estella...@hotmail.com> wrote: > > Dear Philip, > > Thank you for you timely and enthusiastic reply. Actually I do have 3GB total > system RAM. So I think that's enough for running KIM. > > But this problem still cannot been solved.< /div> > > It cou ldn't be better if you have other recommand method to deal with this > problem. > > Thank you so much. > > Estella > > > > Subject: Re : a problem occurred in starting kim > From: philip.alex...@ontotext.com > Date: Thu, 7 Feb 2013 13:21:12 +0200 > CC: kim-i...@ontotext.com > To: estella...@hotmail.com > > Hello Estella, > > This is a typical java virtual machine error log, when you do not have enough > memory on the machine to satisfy the prov ided requirem ents. > > Do you have 2 GB RAM mem ory free and avail able prior to starting the KIM > server? > > You can try lowering the heap size for the JVM, but it I strongly discourage > running KIM with less than 2 GB. > > Hope this helps, > Philip Alexiev > Software Engineer, KIM team > > On Feb 7, 2013, at 1:16 PM, 金碧漪 <estella...@hotmail.com> wrote: > > Dear Sir, > > I'm a new user of KIM platform. I downloaded and installed the KIM 3 for my > own resear ch days ago.&n bsp; > > However a problem occurred when I was trying to start KIM. After I tr ied > some useless ways I finally decide to write for your help. > > Here comes my question. > > when I < font class="ecxApple-style-span" size="2">executed the command of > "kim start" in the bin folder of KIM, the respond was " > > 'KIM_MAX_JAVA_HEAP=2g' > 'JAVA_HOME=D:\Java\jdk1.6.0_38' > 'KIM_HOME=D:\kim-platform-3.6\bin\..' > error occurred during initialization of VM > could not reserve enough space for object heap > could not create the Java virtual machine" > > > I really want to solve this problem, so please do me a favor and tell me how > to deal with it ! > > Thank you so much and hope you will write back as soon as possible. > > Best regards. > > Estella > > <cuisine_ontology.rar>
_______________________________________________ Kim-discussion mailing list Kim-discussion@ontotext.com http://ontomail.semdata.org/cgi-bin/mailman/listinfo/kim-discussion