Use URL in jOWL.load() parameters

91 views
Skip to first unread message

mahtab paydar

unread,
Jun 29, 2010, 12:58:59 AM6/29/10
to Ontology Online
Dear David,
I used the sample html code which I downloaded from code.google
(jOWLBrowser_1.0) and it works perfectly fine.
I still have some porblems:
1. As I studied the documentation, it should be possible to use URI in

jOWL.load(configuration.ontology, initjOWL, {reason : true, locale :
'en' });

as configuration.ontology, but when I replace for instance, the
"http://www.w3.org/TR/owl-guide/wine.rdf" it does not work at all!
would you please help me with using on-line ontologies?

2. Using some ontology file like "http://www.w3.org/TR/owl-guide/
food.rdf" which is quite general ontology, nothing loads in jowl
browser page. I found out there are some "Thing" tags like:

<owl:Thing rdf:ID="OffDry">
<owl:sameAs rdf:resource="http://www.w3.org/TR/2003/PR-owl-
guide-20031209/wine#OffDry"/>
</owl:Thing>

which does not let jOWL works perfectly. what can I do to make such
files work correctly?

with very special thanks in advance
Mahtab

David Decraene

unread,
Jun 29, 2010, 2:49:27 AM6/29/10
to Ontology Online
There is an important limitation to javascript, and that is that you
can not perform cross-domain requests.
Meaning that, with plain javascript, you cannot open pages on domain
example.com when you are on domain another.com.
See for example also http://jowl.ontologyonline.org/Ubiquity.html,
which uses a client-plugin to circumvent part of this problem.

As for the second, for the same reasons mentioned above jOWL cannot
download the referred wine ontology (other domain), hence it is unable
to deduce a class for things like 'OffDry'. This currently throws an
exception because a class is required for instances in jOWL.
Reply all
Reply to author
Forward
0 new messages