From: Ignazio P. <ipa...@gm...> - 2013-07-03 12:27:57
|
On 3 Jul 2013 10:48, "mycircuit" <myc...@su...> wrote: > > Hi Peter > Thanks, do you intend to integrate these patches in the upcoming release ? > > mycircuit > That change is too big for 3.4.5. We'll add that to 4.0 but that's still very far in the future. I. > > On 1 July 2013 23:02, Peter Ansell <ans...@gm...> wrote: >> >> I have some patches that allow selective parsing if you specify a content type or OWLOntologyFormatFactory when creating a document source. You can use that without modifying OWLManager. >> >> -- >> Peter >> >> On 02/07/2013, at 6:53 AM, mycircuit <myc...@su...> wrote: >> >>> Hi Ignazio >>> >>> Thanks a lot, if this is the recommended (;- way, that's fine for me. Just wanted to make sure that I don't miss some "official" way in the API. >>> >>> >>> mycircuit >>> >>> >>> On 1 July 2013 14:11, Ignazio Palmisano <ipa...@gm...> wrote: >>>> >>>> >>>> On 1 Jul 2013 12:30, "mycircuit" <myc...@su...> wrote: >>>> > >>>> > Hi, >>>> > >>>> > When loading ontologies with loadOntologyFromOntologyDocument, I get the message: >>>> > >>>> > org.semanticweb.owlapi.io.UnparsableOntologyException: Problem parsing http://localhost:8090/workspace-antlr/owlapi/json_code.omn >>>> > Could not parse ontology. Either a suitable parser could not be found, or parsing failed. >>>> > >>>> > The following parsers were tried: >>>> > 1) RDFXMLParser >>>> > 2) OWLXMLParser >>>> > 3) OWLFunctionalSyntaxOWLParser >>>> > 4) TurtleOntologyParser >>>> > 5) OWLOBOParser >>>> > 6) KRSS2OWLParser >>>> > 7) ManchesterOWLSyntaxOntologyParser >>>> > >>>> > My document is in Manchester format (7), and I don't want to drill down the error trace to find out what syntax error the corrrect parser ( 7 in my case ) has found. >>>> > >>>> > Is there a way to say: "try with Manchester syntax first - because I know that is the format - and fail if there a syntax errors, don't try anything else" >>>> > >>>> > Thanks for your time >>>> > >>>> >>>> There's a way but it's not too easy. If you open the source code for OWLManager, you'll find that parser factories are registered there. You can replicate the process skipping the factories you don't want. >>>> HTH, >>>> I. >>>> >>>> > ------------------------------------------------------------------------------ >>>> > This SF.net email is sponsored by Windows: >>>> > >>>> > Build for Windows Store. >>>> > >>>> > http://p.sf.net/sfu/windows-dev2dev >>>> > _______________________________________________ >>>> > Owlapi-developer mailing list >>>> > Owl...@li... >>>> > https://lists.sourceforge.net/lists/listinfo/owlapi-developer >>>> > >>>> >>>> >>>> ------------------------------------------------------------------------------ >>>> This SF.net email is sponsored by Windows: >>>> >>>> Build for Windows Store. >>>> >>>> http://p.sf.net/sfu/windows-dev2dev >>>> _______________________________________________ >>>> Owlapi-developer mailing list >>>> Owl...@li... >>>> https://lists.sourceforge.net/lists/listinfo/owlapi-developer >>>> >>> >>> ------------------------------------------------------------------------------ >>> This SF.net email is sponsored by Windows: >>> >>> Build for Windows Store. >>> >>> http://p.sf.net/sfu/windows-dev2dev >>> >>> _______________________________________________ >>> Owlapi-developer mailing list >>> Owl...@li... >>> https://lists.sourceforge.net/lists/listinfo/owlapi-developer >> >> >> ------------------------------------------------------------------------------ >> This SF.net email is sponsored by Windows: >> >> Build for Windows Store. >> >> http://p.sf.net/sfu/windows-dev2dev >> _______________________________________________ >> Owlapi-developer mailing list >> Owl...@li... >> https://lists.sourceforge.net/lists/listinfo/owlapi-developer >> > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Windows: > > Build for Windows Store. > > http://p.sf.net/sfu/windows-dev2dev > _______________________________________________ > Owlapi-developer mailing list > Owl...@li... > https://lists.sourceforge.net/lists/listinfo/owlapi-developer > |