Hi Rinke,
Thanks :) Well, I have one ontology which imports another 5 or 6 ontologies,
all of which are mapped in the Java code to a physical location on my hard
disk. If I just try to load this top-level ontology without any of the other
mapped ontologies, I still get the error, so I guess it is something to do
with this top ontology. The top ontology is *just* a container ontology, and
its entire purpose is just to load the child ontologies. Would it help if I
sent this around? It has no classes or individuals itself.
Thanks again,
Allyson
2009/10/18 Rinke Hoekstra <hoekstra@...>
> Ah sorry, the 'its' was supposed to refer to the Apache server.
>
> ... I now re-read your problem description, and you are apparently
> loading the owl file from your local harddisk. Sorry, but then my
> trick doesn't apply.
>
> Does the problem pertain to a specific ontology?
>
> Rinke
>
> On 18 okt 2009, at 16:37, Allyson Lister wrote:
>
> > Hi Rinke,
> >
> > Thanks for the idea. I'd like to try what you suggest, but am
> > actually not sure how to do it. I'm not that knowledgeable about
> > where to put mime types in a file. If I have an RDF/XML *.owl file,
> > how do I add the OWL2 mime types to its config please?
> >
> > Thanks very much,
> > Allyson
> >
> > 2009/10/18 Rinke Hoekstra <hoekstra@...>
> > Hi,
> >
> > I had a similar problem when my webserver (Apache) did not serve my
> > ontologies using the correct mime type. Your RDF/XML files seem to be
> > served as if they are XHTML files.
> >
> > Perhaps you could try adding the OWL 2 mime types to its config?
> > (worked for me)
> >
> > See the OWL 2 specification for the correct types.
> >
> > Good luck,
> >
> > Rinke
> >
> >
> > On 18 okt 2009, at 16:01, Allyson Lister wrote:
> >
> > > Hi all,
> > >
> > > Thanks very much for all your help, but I've got one mystery left.
> > >
> > > None of the OWL files I'm loading have a DOCTYPE in them - where
> > > should I look next? Does anyone have idea where I should look next?
> > >
> > > Thanks again,
> > >
> > > Allyson
> > >
> > > 2009/10/17 Paul Libbrecht <paul@...>
> > > If I dare enrich your solution, please consider XML-Resolver which,
> > > I believe, supports the registration of privately-configured-DTDs
> > > for public ids. Something such as:
> > > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0//EN"
> > "http://www.w3.org/Math/DTD/mathml2/xhtml-math11-f.dtd
> > > ">
> > >
> > > paul
> > >
> > >
> > > Le 17-oct.-09 à 13:10, Tim rdf a écrit :
> > >
> > >
> > > Two sites that discuss this issue (for general XML issues, not just
> > > OWLAPI):
> > > *
> http://blog.sweetxml.org/2009/08/resolving-xhtml1-dtd-locally-avoiding.html
> > > * (which cites
> http://www.w3.org/blog/systeam/2008/02/08/w3c_s_excessive_dtd_traffic
> > > )
> > >
> > > My workaround:
> > >
> > > Download:
> > > http://www.w3.org/TR/xhtml1/DTD/xhtml-lat1.ent
> > > xhtml-special.ent
> > > xhtml-symbol.ent
> > > xhtml1-transitional.dtd
> > >
> > > to
> > >
> > > /absolute/path/to/my/local/xhtml-dtd/
> > >
> > > Replace The DOCTYPE in any file that gives the 503 with:
> > >
> > > <!DOCTYPE html SYSTEM
> > > "/absolute/path/to/my/local/xhtml-dtd/xhtml1-transitional.dtd">
> > >
> > > I think there is a more eloquent solution with catalog.xml, but I'm
> > > not that snazzy.
> > >
> > > Good luck!
> > > Tim Lebo
> > >
> > >
> > > On Sat, Oct 17, 2009 at 4:20 AM, Allyson Lister
> > > <a.l.lister@...> wrote:
> > > Hi all,
> > >
> > > I'm trying to load one of my ontologies (which loads with no
> > > problems in
> > > Protege 3.4) using the OWLAPI. However, every time I run the Java
> > > code, I
> > > get the following error for my top-level / main ontology:
> > >
> > > Parser: RDFXMLParser
> > > org.semanticweb.owl.io.OWLOntologyCreationIOException: Server
> > > returned HTTP
> > > response code: 503 for URL:
> > > http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd
> > >
> > > I have a few questions related to this error, especially as the dtd
> > > *is
> > > present* at the above url, and readily downloads if I load that URL
> > > into
> > > Firefox:
> > >
> > > 1. This dtd is not present anywhere in my OWL files, so why is the
> > > OWLAPI
> > > looking for it? Sometimes I import an additional file containing
> > > SWRL/SQWRL
> > > rules (though this isn't being imported in this instance) so the
> > > namespaces
> > > for SWRL and SQWRL are in my main ontology. Could this have anything
> > > to do
> > > with it?
> > > 2. Is there any way of providing a mapping for this file? I tried
> > > putting in
> > > a mapping with the logical URL above, and the downloaded copy of the
> > > dtd as
> > > the physical url, and I still get the same error message as above.
> > >
> > > This is pretty odd, and any help would be most appreciated. I've
> > > done some
> > > searching and can't find a similar thread.
> > >
> > > Thanks very much!
> > > Allyson
> > >
> > >
> > > --
> > > Allyson Lister
> > > http://themindwobbles.wordpress.com
> > >
> > > CISBAN, http://www.cisban.ac.uk
> > > Newcastle University
> > >
> > >
> >
> ------------------------------------------------------------------------------
> > > Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> > > is the only developer event you need to attend this year. Jumpstart
> > > your
> > > developing skills, take BlackBerry mobile applications to market and
> > > stay
> > > ahead of the curve. Join us from November 9 - 12, 2009. Register
> > now!
> > > http://p.sf.net/sfu/devconference
> > > _______________________________________________
> > > Owlapi-developer mailing list
> > > Owlapi-developer@...
> > > https://lists.sourceforge.net/lists/listinfo/owlapi-developer
> > >
> > >
> > >
> > >
> >
> ------------------------------------------------------------------------------
> > > Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> > > is the only developer event you need to attend this year. Jumpstart
> > > your
> > > developing skills, take BlackBerry mobile applications to market and
> > > stay
> > > ahead of the curve. Join us from November 9 - 12, 2009. Register
> > now!
> > > http://p.sf.net/sfu/devconference
> > > _______________________________________________
> > > Owlapi-developer mailing list
> > > Owlapi-developer@...
> > > https://lists.sourceforge.net/lists/listinfo/owlapi-developer
> > >
> > >
> > >
> >
> ------------------------------------------------------------------------------
> > > Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> > > is the only developer event you need to attend this year. Jumpstart
> > > your
> > > developing skills, take BlackBerry mobile applications to market and
> > > stay
> > > ahead of the curve. Join us from November 9 - 12, 2009. Register
> > now!
> > > http://p.sf.net/sfu/devconference
> > > _______________________________________________
> > > Owlapi-developer mailing list
> > > Owlapi-developer@...
> > > https://lists.sourceforge.net/lists/listinfo/owlapi-developer
> > >
> > >
> > >
> > >
> > > --
> > > Allyson Lister
> > > http://themindwobbles.wordpress.com
> > >
> > > CISBAN, http://www.cisban.ac.uk
> > > Newcastle University
> > >
> >
> ------------------------------------------------------------------------------
> > > Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> > > is the only developer event you need to attend this year. Jumpstart
> > > your
> > > developing skills, take BlackBerry mobile applications to market and
> > > stay
> > > ahead of the curve. Join us from November 9 - 12, 2009. Register
> > now!
> > >
> http://p.sf.net/sfu/devconference_______________________________________________
> > > Owlapi-developer mailing list
> > > Owlapi-developer@...
> > > https://lists.sourceforge.net/lists/listinfo/owlapi-developer
> >
> >
> > ---
> > Dr Rinke Hoekstra
> >
> > AI Department | Leibniz Center for Law
> > Faculty of Sciences | Faculty of Law
> > Vrije Universiteit | Universiteit van Amsterdam
> > De Boelelaan 1081a | Kloveniersburgwal 48
> > 1081 HV Amsterdam | 1012 CX Amsterdam
> > +31-(0)20-5987752 | +31-(0)20-5253499
> > hoekstra@... | hoekstra@...
> >
> > Homepage: http://www.few.vu.nl/~hoekstra<http://www.few.vu.nl/%7Ehoekstra>
> >
> >
> >
> >
> >
> >
> ------------------------------------------------------------------------------
> > Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> > is the only developer event you need to attend this year. Jumpstart
> > your
> > developing skills, take BlackBerry mobile applications to market and
> > stay
> > ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> > http://p.sf.net/sfu/devconference
> > _______________________________________________
> > Owlapi-developer mailing list
> > Owlapi-developer@...
> > https://lists.sourceforge.net/lists/listinfo/owlapi-developer
> >
> >
> >
> > --
> > Allyson Lister
> > http://themindwobbles.wordpress.com
> >
> > CISBAN, http://www.cisban.ac.uk
> > Newcastle University
> >
> ------------------------------------------------------------------------------
> > Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> > is the only developer event you need to attend this year. Jumpstart
> > your
> > developing skills, take BlackBerry mobile applications to market and
> > stay
> > ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> >
> http://p.sf.net/sfu/devconference_______________________________________________
> > Owlapi-developer mailing list
> > Owlapi-developer@...
> > https://lists.sourceforge.net/lists/listinfo/owlapi-developer
>
>
> ---
> Dr Rinke Hoekstra
>
> AI Department | Leibniz Center for Law
> Faculty of Sciences | Faculty of Law
> Vrije Universiteit | Universiteit van Amsterdam
> De Boelelaan 1081a | Kloveniersburgwal 48
> 1081 HV Amsterdam | 1012 CX Amsterdam
> +31-(0)20-5987752 | +31-(0)20-5253499
> hoekstra@... | hoekstra@...
>
> Homepage: http://www.few.vu.nl/~hoekstra<http://www.few.vu.nl/%7Ehoekstra>
>
>
>
>
>
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> http://p.sf.net/sfu/devconference
> _______________________________________________
> Owlapi-developer mailing list
> Owlapi-developer@...
> https://lists.sourceforge.net/lists/listinfo/owlapi-developer
>
--
Allyson Lister
http://themindwobbles.wordpress.com
CISBAN, http://www.cisban.ac.uk
Newcastle University
|