you are missing a semicolon ";" right after the 

http://www.semanticweb.org/ontologies/2007/10/11/MyExampleOntology.owl#

namespace in "defaultNS" parameter, e.g.

<param name="defaultNS" value=
    "http://www.w3.org/2002/07/owl#;
    http://proton.semanticweb.org/2005/04/protons#;
    http://proton.semanticweb.org/2005/04/protont#;
    http://proton.semanticweb.org/2005/04/protonu#;
    http://proton.semanticweb.org/2005/04/protonkm#;
    http://www.ontotext.com/kim/2005/04/kimso#;
    http://www.ontotext.com/kim/2005/04/kimlo#;
    http://www.semanticweb.org/ontologies/2007/10/11/MyExampleOntology.owl#; 
<<<HERE, add a ";"
    http://www.ontotext.com/kim/2005/04/wkb#;
    http://www.ontotext.com/kim/2005/04/wkb#;
    http://www.ontotext.com/kim/2005/04/wkb#;
    http://www.ontotext.com/kim/2005/04/wkb#;"/> 


regards,
Damyan Ognyanoff

  ----- Original Message ----- 
  From: Zoran Jeremic 
  To: [email protected] 
  Sent: Sunday, November 11, 2007 5:42 PM
  Subject: [KIM-discussion] Problem to start KIM server with domain ontology


  Hi everybody,

  I have the problem to start KIM server with extended domain ontology. I have 
developed a very simple ontology with only 1 class MyExampleTopic extending 
Class Topic from Proton Top ontology. I put it at the same folder with other 
proton ontologies (..\context\default\kb\owl). I have added 2 lines of code in 
"sesame.inmem.conf" to set params, as shown bellow.
  If I try to start KIM server I always get a list of errors, which does not 
come out if I do not extend Proton ontology. I have copied the myExample 
ontology, sesame.inmem.conf, Sesame and KIM screens bellow if it can help you 
to find what is the problem. I suppose that I have missed some step to do. I 
hope that somebody can help me to solve the problem.

  Best
  Zoran Jeremic

  ************myExample.owl********
  <?xml version="1.0"?>
  <!DOCTYPE rdf:RDF [
      <!ENTITY owl "http://www.w3.org/2002/07/owl#"; >
      <!ENTITY owl11 "http://www.w3.org/2006/12/owl11#"; >
      <!ENTITY xsd "http://www.w3.org/2001/XMLSchema#"; >
      <!ENTITY owl11xml "http://www.w3.org/2006/12/owl11-xml#"; >
      <!ENTITY rdfs "http://www.w3.org/2000/01/rdf-schema#"; >
      <!ENTITY rdf "http://www.w3.org/1999/02/22-rdf-syntax-ns#"; >
      <!ENTITY protont "http://proton.semanticweb.org/2005/04/protont#"; >
      <!ENTITY MyExampleOntology 
"http://www.semanticweb.org/ontologies/2007/10/11/MyExampleOntology.owl#"; >
  ]>
  <rdf:RDF 
xmlns="http://www.semanticweb.org/ontologies/2007/10/11/MyExampleOntology.owl#";
       
xml:base="http://www.semanticweb.org/ontologies/2007/10/11/MyExampleOntology.owl";
       xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#";
       xmlns:owl11="http://www.w3.org/2006/12/owl11#";
       xmlns:owl11xml="http://www.w3.org/2006/12/owl11-xml#";
       xmlns:owl="http://www.w3.org/2002/07/owl#";
       xmlns:xsd="http://www.w3.org/2001/XMLSchema#";
       
xmlns:MyExampleOntology="http://www.semanticweb.org/ontologies/2007/10/11/MyExampleOntology.owl#";
       xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#";
       xmlns:protont="http://proton.semanticweb.org/2005/04/protont#";>
      <owl:Ontology rdf:about="">
          <owl:imports 
rdf:resource="http://proton.semanticweb.org/2005/04/protont"/>
      </owl:Ontology>
      
   
      <owl:Class rdf:about="&protont;Topic"/>
      
      <owl:Class rdf:about="#MyExampleTopic">
          <rdfs:subClassOf rdf:resource="&protont;Topic"/>
      </owl:Class>
  </rdf:RDF>

  ***********sesame.inmem.conf********************
  ...
  <param name="imports" value=
      "kb/owl/owl.rdfs;
       kb/owl/protons.owl;
       kb/owl/protont.owl;
       kb/owl/protonu.owl;
       kb/owl/protonkm.owl;
       kb/owl/kimso.owl;
       kb/owl/kimlo.owl;
       kb/owl/myExample.owl;
       kb/wkb.nt;
       kb/wkbx.nt;
       kb/ignorelist.nt;
       kb/visibility.nt;"/>
      <param name="defaultNS" value=
      "http://www.w3.org/2002/07/owl#;
      http://proton.semanticweb.org/2005/04/protons#;
      http://proton.semanticweb.org/2005/04/protont#;
      http://proton.semanticweb.org/2005/04/protonu#;
      http://proton.semanticweb.org/2005/04/protonkm#;
      http://www.ontotext.com/kim/2005/04/kimso#;
      http://www.ontotext.com/kim/2005/04/kimlo#;
      http://www.semanticweb.org/ontologies/2007/10/11/MyExampleOntology.owl#
      http://www.ontotext.com/kim/2005/04/wkb#;
      http://www.ontotext.com/kim/2005/04/wkb#;
      http://www.ontotext.com/kim/2005/04/wkb#;
      http://www.ontotext.com/kim/2005/04/wkb#;"/> 
  ****************Start Sesame screen
  ...
  Rule set compiled.
  _addThisOntology: kb/owl/owl.rdfs ... processed for 78ms
  _addThisOntology: kb/owl/protons.owl ... processed for 16ms
  _addThisOntology: kb/owl/protont.owl ... processed for 31ms
  _addThisOntology: kb/owl/protonu.owl ... processed for 62ms
  _addThisOntology: kb/owl/protonkm.owl ... processed for 16ms
  _addThisOntology: kb/owl/kimso.owl ... processed for 16ms
  _addThisOntology: kb/owl/kimlo.owl ... processed for 15ms
  _addThisOntology: kb/owl/myExample.owl ... processed for 16ms
  _addThisOntology: kb/wkb.nt ... processed for 8484ms
  _addThisOntology: kb/wkbx.nt ... processed for 16ms
  _addThisOntology: kb/ignorelist.nt ... processed for 0ms
  java.util.NoSuchElementException
          at java.util.StringTokenizer.nextToken(StringTokenizer.java:332)
          at 
org.openrdf.sesame.sailimpl.OWLIMSchemaRepository.doLocalInit(OWLIMSc
  hemaRepository.java:316)
          at 
org.openrdf.sesame.sailimpl.OWLIMSchemaRepository.initialize(OWLIMSch
  emaRepository.java:254)
          at 
org.openrdf.sesame.repository.local.LocalService._createRepository(Lo
  calService.java:376)
          at 
org.openrdf.sesame.repository.local.LocalService.getRepository(LocalS
  ervice.java:238)
          at com.ontotext.omm.RegisteringThread.run(RMICenter.java:176)
  RUN ENDED!

  *******************Start KIM server screen
  ...

  1 warning
  Rule set compiled.
  _addThisOntology: kb/owl/owl.rdfs ... processed for 125ms
  _addThisOntology: kb/owl/protons.owl ... processed for 16ms
  _addThisOntology: kb/owl/protont.owl ... processed for 31ms
  _addThisOntology: kb/owl/protonu.owl ... processed for 63ms
  _addThisOntology: kb/owl/protonkm.owl ... processed for 31ms
  _addThisOntology: kb/owl/kimso.owl ... processed for 0ms
  _addThisOntology: kb/owl/kimlo.owl ... processed for 31ms
  _addThisOntology: kb/owl/myExample.owl ... processed for 0ms
  _addThisOntology: kb/wkb.nt ... processed for 8578ms
  _addThisOntology: kb/wkbx.nt ... processed for 16ms
  _addThisOntology: kb/ignorelist.nt ... processed for 0ms
  java.util.NoSuchElementException
          at java.util.StringTokenizer.nextToken(StringTokenizer.java:332)
          at 
org.openrdf.sesame.sailimpl.OWLIMSchemaRepository.doLocalInit(OWLIMSc
  hemaRepository.java:316)
          at 
org.openrdf.sesame.sailimpl.OWLIMSchemaRepository.initialize(OWLIMSch
  emaRepository.java:254)
          at 
org.openrdf.sesame.repository.local.LocalService._createRepository(Lo
  calService.java:376)
          at 
org.openrdf.sesame.repository.local.LocalService.getRepository(LocalS
  ervice.java:238)
          at 
com.ontotext.kim.KIMServiceImpl.getSemanticRepositoryBySesameFactory(
  KIMServiceImpl.java:185)
          at 
com.ontotext.kim.KIMServiceImpl.getSemanticRepositoryAPI(KIMServiceIm
  pl.java:139)
          at 
com.ontotext.kim.KIMServiceImpl.getKBVersion(KIMServiceImpl.java:334)
          at com.ontotext.kim.KIMServiceImpl.<init>(KIMServiceImpl.java:92)
          at com.ontotext.kim.KIMServiceImpl.<init>(KIMServiceImpl.java:79)
          at 
com.ontotext.kim.FactoryInterfaceImpl.bind(FactoryInterfaceImpl.java:
  58)
          at com.ontotext.kim.KIMServer.main(KIMServer.java:27)
  Get SemanticRepositoryRemoteAPI.
  Failed to get KB Version due to :
  java.lang.NullPointerException
          at 
com.ontotext.kim.KIMServiceImpl.getKBVersion(KIMServiceImpl.java:334)
          at com.ontotext.kim.KIMServiceImpl.<init>(KIMServiceImpl.java:92)
          at com.ontotext.kim.KIMServiceImpl.<init>(KIMServiceImpl.java:79)
          at 
com.ontotext.kim.FactoryInterfaceImpl.bind(FactoryInterfaceImpl.java:
  58)
          at com.ontotext.kim.KIMServer.main(KIMServer.java:27)
  Unable to construct KIMServiceImpl
  java.lang.RuntimeException: Attempting to get KB Version
          at 
com.ontotext.kim.KIMServiceImpl.getKBVersion(KIMServiceImpl.java:344)
          at com.ontotext.kim.KIMServiceImpl.<init>(KIMServiceImpl.java:92)
          at com.ontotext.kim.KIMServiceImpl.<init>(KIMServiceImpl.java:79)
          at 
com.ontotext.kim.FactoryInterfaceImpl.bind(FactoryInterfaceImpl.java:
  58)
          at com.ontotext.kim.KIMServer.main(KIMServer.java:27)
  Caused by: java.lang.NullPointerException
          at 
com.ontotext.kim.KIMServiceImpl.getKBVersion(KIMServiceImpl.java:334)
          ... 4 more
  Exception in thread "main" com.ontotext.kim.client.KIMRuntimeException: 
java.lan
  g.RuntimeException: Attempting to get KB Version
          at 
com.ontotext.kim.FactoryInterfaceImpl.bind(FactoryInterfaceImpl.java:
  61)
          at com.ontotext.kim.KIMServer.main(KIMServer.java:27)
  Caused by: java.lang.RuntimeException: Attempting to get KB Version
          at 
com.ontotext.kim.KIMServiceImpl.getKBVersion(KIMServiceImpl.java:344)
          at com.ontotext.kim.KIMServiceImpl.<init>(KIMServiceImpl.java:92)
          at com.ontotext.kim.KIMServiceImpl.<init>(KIMServiceImpl.java:79)
          at 
com.ontotext.kim.FactoryInterfaceImpl.bind(FactoryInterfaceImpl.java:
  58)
          ... 1 more
  Caused by: java.lang.NullPointerException
          at 
com.ontotext.kim.KIMServiceImpl.getKBVersion(KIMServiceImpl.java:334)
          ... 4 more

  __________________________________________________
  Do You Yahoo!?
  Tired of spam? Yahoo! Mail has the best spam protection around 
  http://mail.yahoo.com 



------------------------------------------------------------------------------


  _______________________________________________
  NOTE: Please REPLY TO ALL to ensure that your reply reaches all members of 
this mailing list.

  KIM-discussion mailing list
  [email protected]
  http://ontotext.com/mailman/listinfo/kim-discussion_ontotext.com
_______________________________________________
NOTE: Please REPLY TO ALL to ensure that your reply reaches all members of this 
mailing list.

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

Reply via email to