Hello,I use: matchmaker-client
In the class OWLSProfileParser, I have a problem in this 
instruction:ontModel.addLoadedImport(URI);kowing that 
URI="http://www.daml.org/services/owl-s/1.0/BravoAirProfile.owl"I have the 
following error:Exception in thread "main" java.lang.NullPointerExceptionat 
EDU.cmu.Atlas.owls1_1.parser.OWLSProfileParser.read(OWLSProfileParser.java:118)at
 
EDU.cmu.Atlas.owls1_1.parser.OWLSProfileParser.read(OWLSProfileParser.java:97)at
 
EDU.cmu.Atlas.matchmaker.client.OWLSMatchmakerClient.parseOWLSProfile(OWLSMatchmakerClient.java:226)at
 
EDU.cmu.Atlas.matchmaker.client.OWLSMatchmakerClient.register(OWLSMatchmakerClient.java:99)at
 
EDU.cmu.Atlas.matchmaker.client.OWLSMatchmakerClient.main(OWLSMatchmakerClient.java:247)
I understand that ontModel is null. But, I don’t know how to create an 
ontology.I try to create an ontology using this instruction before calling the 
method addLoadedImport:ontModel = ModelFactory.createOntologyModel();
 But, I have the following error message:Exception in thread "main" 
java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactoryat 
com.hp.hpl.jena.rdf.model.impl.PropertyImpl.<clinit>(PropertyImpl.java:58)at 
com.hp.hpl.jena.enhanced.BuiltinPersonalities.<clinit>(BuiltinPersonalities.java:28)at
 com.hp.hpl.jena.rdf.model.impl.ModelCom.<init>(ModelCom.java:51)at 
com.hp.hpl.jena.rdf.model.ModelFactory.createDefaultModel(ModelFactory.java:119)at
 
com.hp.hpl.jena.rdf.model.ModelFactory.createDefaultModel(ModelFactory.java:113)at
 com.hp.hpl.jena.vocabulary.OWL.<clinit>(OWL.java:37)at 
com.hp.hpl.jena.ontology.ProfileRegistry.<clinit>(ProfileRegistry.java:48)at 
com.hp.hpl.jena.rdf.model.ModelFactory.createOntologyModel(ModelFactory.java:327)at
 
DU.cmu.Atlas.owls1_1.parser.OWLSProfileParser.getNewOntModel(OWLSProfileParser.java:224)at
 
EDU.cmu.Atlas.owls1_1.parser.OWLSProfileParser.read(OWLSProfileParser.java:121)at
 
EDU.cmu.Atlas.owls1_1.parser.OWLSProfileParser.read(OWLSProfileParser.java:99)at
 
EDU.cmu.Atlas.matchmaker.client.OWLSMatchmakerClient.parseOWLSProfile(OWLSMatchmakerClient.java:226)at
 
EDU.cmu.Atlas.matchmaker.client.OWLSMatchmakerClient.register(OWLSMatchmakerClient.java:99)at
 
EDU.cmu.Atlas.matchmaker.client.OWLSMatchmakerClient.main(OWLSMatchmakerClient.java:254)
 So, can someone give me an example of creation of ontology, please?Thank you 
in advance.
Best regards, Maria
                                          

Reply via email to