- From: <subhini.reddy@ps.ge.com>
- Date: Wed, 2 Apr 2003 16:43:26 -0500
- To: drager@bbn.com
- Cc: mdean@bbn.com, www-rdf-logic@w3.org
- Message-ID: <25A89C8BA42DD3118A220008C7916E2B0B111512@nyschx11psge.sch.ge.com>
Dave, I tried to follow what you have asked me to do ... [1]I have turned the _cleanLoad to false [2]I have Downloaded the MSXML2 v3.0 and added reference ... while adding reference there was no interop so the system prompted to create a wraper for it and i approved it. But still the same error is comming up ... I am attaching the code ( this is same example that you have posted ) file and the daml file, I am also pasting the error message below, please take a look at them and tell me if i am doing anything wrong. " ..I wanted to run this example and see if DAML file can be parsed in C#.." I really appreciate for your time you have spend in answering me .... Thank you Vikram ***********************ERROR MESSAGE***************************** Error occurred in reading RDF source: System.Runtime.InteropServices.COMExceptio n (0x800C0006): System error: -2146697210. at Injektilo.RDF.RdfModel.CleanLoad(String file, String b) in c:\dev\visual s tudio projects\dotnet\bbn.rdf\rdfmodel.cs:line 261 at Injektilo.RDF.RdfModel.CleanLoad(String uri) in c:\dev\visual studio proje cts\dotnet\bbn.rdf\rdfmodel.cs:line 203 at BBN.RDF.Common.ModelCom.Read(String url) in c:\dev\visual studio projects\ dotnet\bbn.rdf\modelimpl.cs:line 636 at BBN.DAML.DAMLLoader.CollectRDFSources(Model m, String uri, String baseURI, String lang) in C:\dev\Visual Studio Projects\dotnet\BBN.RDF\DAMLLoader.cs:line 527 at BBN.DAML.DAMLLoader.Read(String uri, String b, String lang) in C:\dev\Visu al Studio Projects\dotnet\BBN.RDF\DAMLLoader.cs:line 184 ************************************************************************** -----Original Message----- From: Dave Rager [mailto:drager@bbn.com] Sent: Wednesday, April 02, 2003 4:20 PM To: Reddy, Subhini V (PS, Contractor, CASE) Subject: RE: DAML Parser You can do one or the other. I suggest try setting _cleanLoad to false first, if that doesn't work then try installing MSXML 3.0. Files that cause problems with the .NET parser have namespace declarations like: <rdf:RDF xmlns:rdf = "&rdf;" <-- [1] xmlns:daml = "&daml;" <-- OK xmlns = "&this;"> <-- [2] [1] Error when using substitution in namespace definition for the namespace of the current tag. [2] Error when using substitution in default namespace definition. -Dave At 03:33 PM 4/2/2003 -0500, you wrote: >Dave, >Thank you for replying >you want me to install MSXML3.0 insted of 2.0 and try, or do I have to turn >the _cleadLoad to false. >if I have to put _cleanLoad to false which file has this property ... > >Regards >Vikram > >-----Original Message----- >From: Dave Rager [mailto:drager@bbn.com] >Sent: Wednesday, April 02, 2003 3:07 PM >To: Reddy, Subhini V (PS, Contractor, CASE) >Subject: Re: DAML Parser > > >Try turning off cleanLoad on the model before parsing a file [1]. The .NET >XML parser has a couple of obscure bugs that appear if Entity substitutions >are used in namespace definitions. As a workaround when the cleanLoad flag >which will use the MSXML parser [2], which would require that MSXML 3.0 be >installed. > >-Dave > >[1] model._cleanLoad = false; >[2] >http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnmsxml/ht m >l/xmlparser.asp > >At 02:20 PM 4/2/2003 -0500, you wrote: > >Dear David, > >I am vikram r sudhini, I am presently working on a reaserch project to >parse > >the SUMO Ontology, I want to use the DAML dotnet API to parse the daml >file, > > > >I tried to run the example given by you in the web page but , it is > >throwiong exception and dying off. please tell me what coudl be the problem > >... and guide me > >The DAML file that i have is the following format: > >*************************************************************************** >* > >******************** > ><rdf:RDF > >xmlns:rdf ="http://www.w3.org/1999/02/22-rdf-syntax-ns#" > >xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" > >xmlns ="http://teknowledge.com/ontology/Merge.txt#" > > > > > > ><rdfs:Class rdf:ID= "Reasoning"> > ><rdfs:subClassOf>IntentionalPsychologicalProcess</rdfs:subClassOf> > ><rdfs:comment>" The Class of IntentionalPsychologicalProcesses > >which involve concluding, on the basis of either deductive > >or inductive > >evidence, that a particular Proposition or Sentence is > >true."</rdfs:comment> > ></rdfs:Class> > > > ><rdfs:Class rdf:ID= "BiologicalAttribute"> > ><rdfs:subClassOf>InternalAttribute</rdfs:subClassOf> > ><rdfs:comment>" Attributes that apply specifically > >to instances of Organism or parts of an > >Organism."</rdfs:comment> > ></rdfs:Class> > > > >*************************************************************************** >* > >************************* > >the error that is thrown is : > >*************************************************************************** >* > >************************* > >Error occurred in reading RDF source: > >System.Runtime.InteropServices.COMExceptio > >n (0x800C0006): System error: -2146697210. > > > > at Injektilo.RDF.RdfModel.CleanLoad(String file, String b) in > >c:\dev\visual s > >tudio projects\dotnet\bbn.rdf\rdfmodel.cs:line 261 > > at Injektilo.RDF.RdfModel.CleanLoad(String uri) in c:\dev\visual studio > >proje > >cts\dotnet\bbn.rdf\rdfmodel.cs:line 203 > > at BBN.RDF.Common.ModelCom.Read(String url) in c:\dev\visual studio > >projects\ > >dotnet\bbn.rdf\modelimpl.cs:line 636 > > at BBN.DAML.DAMLLoader.CollectRDFSources(Model m, String uri, String > >baseURI, > > String lang) in C:\dev\Visual Studio > >Projects\dotnet\BBN.RDF\DAMLLoader.cs:line > > 527 > > at BBN.DAML.DAMLLoader.Read(String uri, String b, String lang) in > >C:\dev\Visu > >al Studio Projects\dotnet\BBN.RDF\DAMLLoader.cs:line 184 > >*************************************************************************** >* > >********************** > > > >I have also tried with the "office.daml" file that you used in the example > >but still I couldnt solve the error .... > >please help me out and tell me what could be the best procedure to parse > >this DAML file in .Net are there any other solutions .... > >please through some light ..... > >eagerly awaiting your reply.... > > > >Vikram
Attachments
Received on Wednesday, 2 April 2003 16:47:04 UTC