owllink-owlapi-developer Mailing List for owllink-owlapi
Brought to you by:
onoppens
You can subscribe to this list here.
| 2010 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(3) |
Jun
|
Jul
|
Aug
(1) |
Sep
(5) |
Oct
(11) |
Nov
(7) |
Dec
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2011 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(1) |
Oct
(2) |
Nov
|
Dec
|
| 2014 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(1) |
Dec
(3) |
| 2016 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(2) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|
From: Wang, Rong-L. <Wan...@ep...> - 2016-07-07 18:55:01
|
Dear OWLlink developers: I am working on an OWLAPI 4.2.5-based java application as a Maven project within Netbeans. Could I get some step by step help with regard to installing OWLlink as project dependencies? Does the latest OWLlink 1.2.2 even work for OWLAPI 4.2.5? Thanks much for your assistance, Rong-Lin Wang |
|
From: R-L W. <rl...@gm...> - 2016-07-06 16:22:41
|
Hi, This link, http://owllink-owlapi.sourceforge.net/download.html, says OWLlink API 1.2.2 supports OWL API 3.2. Is it going to work for OWL API 4.2.5? Thanks, -- Rong-Lin Wang |
|
From: Thorsten L. <li...@de...> - 2014-12-12 22:28:26
|
Frans, unfortunately this is not possible and honestly a rather rare query. There is a Told Data Access extension of OWLlink (which is currently not supported by any reasoner according to my knowledge) which at least would allow to query for the previously told domain as well as range axioms of a property. However, this would not include any inferred domains or ranges. Best Thorsten On 10.12.14 18:20, owl...@li... wrote: > Message: 4 > Date: Mon, 10 Nov 2014 18:52:54 +0100 > From: "frans@planet"<fra...@pl...> > Subject: [Owllink-owlapi-developer] Retrieving sources for rdfs:domain > To:owl...@li... > Message-ID:<724...@pl...> > Content-Type: text/plain; charset=us-ascii > > Is it possible to retrieve the sources for rdfs:domain for a certain class with the core of OWLlink? > > If I loadhttp://www.owllink.org/ontologies/primer.owl in a KB and I would ask for the sources for rdfs:domain for families:Man this should yield families:hasWife, and for families:Person this should yield families:hasAge. > > Regards, > Frans de Boer -- Dr. Thorsten Liebig Tel. +49 731 502 4207 mailto:li...@de... derivo GmbH <http://www.derivo.de> James-Franck-Ring, D-89081 Ulm Amtsgericht Ulm, HRB 725444 Geschäftsführer: Dr. Thorsten Liebig |
|
From: Thorsten L. <li...@de...> - 2014-12-12 22:28:24
|
Hi Jan, with respect to the C#/.NET client it is perfectly possible to link to a Java based server (that is what OWLlink is for). However, if the mentioned software package will do the job is not clear to me (if it conforms to the standard it will but I don't know the particular implementation you refer to). Concerning SWRL it depends. OWLlink as of today is not capable of "speaking" SWRL. There could be an extension to support SWRL but I'm not aware of any extension specification or implementation. However, if you just want to do standard queries (OWLlink Asks) you could try to load the SWRL ontology via OWL API to an OWLlink server with HermiT and then use OWLlink requests. Best Thorsten On 10.12.14 18:20, owl...@li... wrote: > Date: Wed, 10 Dec 2014 18:20:24 +0100 > From: "Jan Alberts"<jan...@gm...> > Subject: [Owllink-owlapi-developer] OWLlink C# and SWRL inferencing > To:<owl...@li...> > Message-ID:<006901d0149d$963a0470$c2ae0d50$@gmail.com> > Content-Type: text/plain; charset="us-ascii" > > Hi at all, > > > > I am new to the topic KBS and ontologies and have some questions about the > integration and application of OWLlink in c#. > > > > For a bachelor thesis I have to select a SWRL Reasoner for a KBS and program > an demonstrator. Unfortunately there is the requirement to support C# or > .NET. > > I found a C# version of OWLlink API made by a PHD student: > http://users.encs.concordia.ca/~pa_eid/PhD/index.html > > My idea is to make a HermiT Java Server, which communicates via OWLlink with > my .NET application using OWLlink C#. So my main application in .NET uses an > independent Java reasoner for the SWRL inferencing. > > > > My questions: > > . Is that possible? > > . Will there be full SWRL support? > > o I think yes, because the reasoner which does the inference of the SWRL > knowledge base is independent from the .NET application, but as I said, I am > new to the topic. > > > > Could you help me about that? > > Thanks a lot and best wishes, > > > > Jan -- Dr. Thorsten Liebig Tel. +49 731 502 4207 mailto:li...@de... derivo GmbH <http://www.derivo.de> James-Franck-Ring, D-89081 Ulm Amtsgericht Ulm, HRB 725444 Geschäftsführer: Dr. Thorsten Liebig |
|
From: Jan A. <jan...@gm...> - 2014-12-10 17:20:37
|
Hi at all, I am new to the topic KBS and ontologies and have some questions about the integration and application of OWLlink in c#. For a bachelor thesis I have to select a SWRL Reasoner for a KBS and program an demonstrator. Unfortunately there is the requirement to support C# or .NET. I found a C# version of OWLlink API made by a PHD student: http://users.encs.concordia.ca/~pa_eid/PhD/index.html My idea is to make a HermiT Java Server, which communicates via OWLlink with my .NET application using OWLlink C#. So my main application in .NET uses an independent Java reasoner for the SWRL inferencing. My questions: . Is that possible? . Will there be full SWRL support? o I think yes, because the reasoner which does the inference of the SWRL knowledge base is independent from the .NET application, but as I said, I am new to the topic. Could you help me about that? Thanks a lot and best wishes, Jan |
|
From: <fr...@pl...> - 2014-11-10 17:53:06
|
Is it possible to retrieve the sources for rdfs:domain for a certain class with the core of OWLlink? If I load http://www.owllink.org/ontologies/primer.owl in a KB and I would ask for the sources for rdfs:domain for families:Man this should yield families:hasWife, and for families:Person this should yield families:hasAge. Regards, Frans de Boer |
|
From: Olaf N. <no...@de...> - 2011-10-11 09:15:45
|
Hi Sarala,
it is one of the important feature to run an OWLlink server on one
machine and to run OWLlink clients on another machines. For example, if
the Pellet server is started on a computer X, it will listen for
incoming connection on the specified port and the IP address of X. You
need to configure the client with the help of a
"OWLlinkReasonerConfiguration":
OWLlinkReasonerConfiguration config = new
OWLlinkReasonerConfiguration(new URL("http://<address>:<port>"));
OWLReasoner reasoner = new
OWLlinktHTTPXMLReasonerFactory().createNonBufferingReasoner( <your
ontology>, config);
where <address> corresponds to the IP address of the computer X,
<port> corresponds to the port specified by starting the Pellet server
(e.g. 8080).
Hope it helps you.
Cheers,
Olaf
> Hi,
>
> I'm using OWLlink (Pellet server) to reason over several large ontologies.
> However this requires a lot of memory and I'm wondering whether it is
> possible to run OWLlink on a load sharing facility.
>
> Many thanks in advance.
> Sarala
>
>
> ------------------------------------------------------------------------------
> All the data continuously generated in your IT infrastructure contains a
> definitive record of customers, application performance, security
> threats, fraudulent activity and more. Splunk takes this data and makes
> sense of it. Business sense. IT sense. Common sense.
> http://p.sf.net/sfu/splunk-d2dcopy1
> _______________________________________________
> Owllink-owlapi-developer mailing list
> Owl...@li...
> https://lists.sourceforge.net/lists/listinfo/owllink-owlapi-developer
|
|
From: <sa...@eb...> - 2011-10-10 08:50:41
|
Hi, I'm using OWLlink (Pellet server) to reason over several large ontologies. However this requires a lot of memory and I'm wondering whether it is possible to run OWLlink on a load sharing facility. Many thanks in advance. Sarala |
|
From: simone m. <sim...@gm...> - 2011-09-05 13:37:39
|
I'm working with the latest release of OWLlink (1.2.1) and OWLAPI (3.2.4). In my ontology there are some SWRL. When i try to send, throught OWLlink, the ontology to the Reasoner (use HermiT 1.3.4) an exception will be generated : java.lang.NullPointerException at java.util.TreeSet.addAll(Unknown Source) at java.util.TreeSet.<init>(Unknown Source) at uk.ac.manchester.cs.owl.owlapi.SWRLRuleImpl.<init>(SWRLRuleImpl.java:63) at uk.ac.manchester.cs.owl.owlapi.OWLDataFactoryImpl.getSWRLRule(OWLDataFactoryImpl.java:1276) at org.coode.owlapi.owlxmlparser.SWRLRuleElementHandler.createAxiom(SWRLRuleElementHandler.java:28) at org.coode.owlapi.owlxmlparser.AbstractOWLAxiomElementHandler.endElement(AbstractOWLAxiomElementHandler.java:58) at org.semanticweb.owlapi.owllink.parser.MyOWLXMLParserHandler.endElement(MyOWLXMLParserHandler.java:898) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source) at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source) at javax.xml.parsers.SAXParser.parse(Unknown Source) at javax.xml.parsers.SAXParser.parse(Unknown Source) at org.semanticweb.owlapi.owllink.server.OWLlinkReasonerBridge.process(OWLlinkReasonerBridge.java:202) at org.semanticweb.owlapi.owllink.server.OWLlinkReasonerBridge.process(OWLlinkReasonerBridge.java:176) at org.semanticweb.owlapi.owllink.server.OWLlinkHTTPXMLServer.handle(OWLlinkHTTPXMLServer.java:76) at org.mortbay.http.HttpContext.handle(HttpContext.java:1530) at org.mortbay.http.HttpContext.handle(HttpContext.java:1482) at org.mortbay.http.HttpServer.service(HttpServer.java:909) at org.mortbay.http.HttpConnection.service(HttpConnection.java:816) at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:982) at org.mortbay.http.HttpConnection.handle(HttpConnection.java:833) at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:244) at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357) at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534) My question is: the latest version of OWLlink support the SWRL? or i use OWLlink in a wrong way? Thank you very much. Simone |
|
From: <sa...@eb...> - 2010-11-19 15:16:13
|
Hi Marko,
Thanks for the links. I was hoping for some java examples so that I get to
a fast start. I have started reading some of the documents but I'm still
struggling to understand some of the basics. I'm not an Ontology expert.
Here's a method that I'm playing around with. According the documentation
this creates a new KB. However, getPublicKBs() returns an empty set. I'm
confused about the root ontology and KBs as well. At the moment I'm only
interested in one KB but multiple clients accessing it. In order to get
access to a reasoner I need to call
factory.createNonBufferingReasoner(ontology, reasonerConfiguration) which
means I need to create a root ontology from each client. What does this
mean? How do I call a previously created KB from a new client?
public void getInfo(){
try {
ontology = manager.loadOntology(IRI.create(new
File("ontologies/quality.owl")));
} catch (OWLOntologyCreationException e) {
e.printStackTrace();
}
URL url = null;
try {
url = new URL("http://localhost:8081");
} catch (MalformedURLException e) {
e.printStackTrace();
}
OWLlinkReasonerConfiguration reasonerConfiguration = new
OWLlinkReasonerConfiguration(url);
OWLlinkHTTPXMLReasonerFactory factory = new
OWLlinkHTTPXMLReasonerFactory();
reasoner = factory.createNonBufferingReasoner(ontology,
reasonerConfiguration);
IRI defaultIRI = ((OWLlinkHTTPXMLReasoner)reasoner).getDefaultKB();
GetDescription getDescription = new GetDescription();
Description response = reasoner.answer(getDescription);
System.out.println(response.getPublicKBs().isEmpty());
GetAllClasses getAllClasses = new GetAllClasses(defaultIRI);
SetOfClasses classResponse = reasoner.answer(getAllClasses);
System.out.println(classResponse.size());
}
Many thanks in advance,
Sarala
> Hi Sarala,
>
> the OWLlink protocol specification can be found at
> <http://www.w3.org/Submission/owllink-structural-specification/> and the
> one of the HTTP/XML binding that is implemented by the OWLlink API at
> <http://www.w3.org/Submission/owllink-httpxml-binding/>. Extensive
> examples for the different OWLlink bindings can be found at
> <http://www.owllink.org/examples.html>.
>
> However, as you are using OWLlink via the OWLlink API that is layered on
> top of the OWL API, you might want to look also at the Java code examples
> for the OWL API at <http://owlapi.sourceforge.net/documentation.html>.
>
> Marko
>
> On 17.11.2010, at 14:04, sa...@eb... wrote:
>
>> Hi,
>>
>> I'm trying to get started with owllink. Are there any examples that I
>> can
>> follow except the ones on
>> http://owllink-owlapi.sourceforge.net/documentation.html.
>>
>> Cheers,
>> Sarala
>>
>>
>> ------------------------------------------------------------------------------
>> Beautiful is writing same markup. Internet Explorer 9 supports
>> standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3.
>> Spend less time writing and rewriting code and more time creating great
>> experiences on the web. Be a part of the beta today
>> http://p.sf.net/sfu/msIE9-sfdev2dev
>> _______________________________________________
>> Owllink-owlapi-developer mailing list
>> Owl...@li...
>> https://lists.sourceforge.net/lists/listinfo/owllink-owlapi-developer
>
>
>
> --
> Dr. Marko Luther
> Phone: +49-89-56824-204 mailto:lu...@do...
> Fax: +49-89-56824-301 <http://www.docomolab-euro.com>
> Mobile: +49 172-855 7763
>
> DOCOMO Communications Laboratories Europe GmbH
> Landsberger Strasse 312, 80687 Munich, Germany
> Geschäftsführer: Dr. Masami Yabusaki, Naoki Tani, Seiichi Ikeda
> Amtsgericht München, HRB 132967
>
>
|
|
From: Marko L. <lu...@do...> - 2010-11-18 08:13:26
|
Hi Sarala, the OWLlink protocol specification can be found at <http://www.w3.org/Submission/owllink-structural-specification/> and the one of the HTTP/XML binding that is implemented by the OWLlink API at <http://www.w3.org/Submission/owllink-httpxml-binding/>. Extensive examples for the different OWLlink bindings can be found at <http://www.owllink.org/examples.html>. However, as you are using OWLlink via the OWLlink API that is layered on top of the OWL API, you might want to look also at the Java code examples for the OWL API at <http://owlapi.sourceforge.net/documentation.html>. Marko On 17.11.2010, at 14:04, sa...@eb... wrote: > Hi, > > I'm trying to get started with owllink. Are there any examples that I can > follow except the ones on > http://owllink-owlapi.sourceforge.net/documentation.html. > > Cheers, > Sarala > > > ------------------------------------------------------------------------------ > Beautiful is writing same markup. Internet Explorer 9 supports > standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. > Spend less time writing and rewriting code and more time creating great > experiences on the web. Be a part of the beta today > http://p.sf.net/sfu/msIE9-sfdev2dev > _______________________________________________ > Owllink-owlapi-developer mailing list > Owl...@li... > https://lists.sourceforge.net/lists/listinfo/owllink-owlapi-developer -- Dr. Marko Luther Phone: +49-89-56824-204 mailto:lu...@do... Fax: +49-89-56824-301 <http://www.docomolab-euro.com> Mobile: +49 172-855 7763 DOCOMO Communications Laboratories Europe GmbH Landsberger Strasse 312, 80687 Munich, Germany Geschäftsführer: Dr. Masami Yabusaki, Naoki Tani, Seiichi Ikeda Amtsgericht München, HRB 132967 |
|
From: <sa...@eb...> - 2010-11-17 16:13:03
|
Hi, I'm struggling to understand how to use OWLlink API to do what I want. I have an owl file which imports EL versions of FMA, GO, PATO etc. Reasoning over this each time takes a long time. What I would like to do is to set up a pellet-owllink server with a reasoned/inferred copy which clients can then access to run Manchester queries. How do I go about doing this? Cheers, Sarala |
|
From: <sa...@eb...> - 2010-11-17 13:47:12
|
Hi, I'm trying to get started with owllink. Are there any examples that I can follow except the ones on http://owllink-owlapi.sourceforge.net/documentation.html. Cheers, Sarala |
|
From: <sa...@eb...> - 2010-11-17 13:16:19
|
Hi Olaf,
Thanks for your reply. It's actually
Exception in thread "main" java.lang.NoClassDefFoundError: Files
Caused by: java.lang.ClassNotFoundException: Files
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
Could not find the main class: Files. Program will exit.
I got everything working on linux but would be nice to get it working on
windows as well.
Cheers,
Sarala
|
|
From: Olaf N. <no...@de...> - 2010-11-16 10:21:57
|
> Hi, > > I'm trying to get pellet OWLlink server running. Unfortunately, I'm having > trouble getting it to work on windows. Is there any thing else I need to > do except copying the pellet jars into pellet-server-OWLAPI3/lib. > > Cheers, > Sarala Hi Sarala, you are right, one only needs to copy the pellet jar files into pellet-server-OWLAPI3/lib. Then one can run the start-pellet batch script. We have just tested it and it runs fine. Please make sure that you are using the latest pellet version (it must support the OWL API 3.1) and the latest OWLlink API version (supporting OWL API 3.1). Can you specify in more detail what problems you encountered (e.g. java exceptions stack trace)? Cheers, Olaf |
|
From: <sa...@eb...> - 2010-11-15 12:37:02
|
Hi, I'm trying to get pellet OWLlink server running. Unfortunately, I'm having trouble getting it to work on windows. Is there any thing else I need to do except copying the pellet jars into pellet-server-OWLAPI3/lib. Cheers, Sarala |
|
From: Olaf N. <ola...@un...> - 2010-10-11 10:38:15
|
Hi Artur, > [...] > I have checked all src/main/java and src/main/test directories as > src-folders and I have include all libs from lib direcotry. I have > added xercesImpl.jar and replaced the imports. But I have some > compile-errors regarding owl-api: > > Description Resource Path Location Type > The constructor OWLXMLWriter(Writer, OWLOntology) is undefined > MyOWLXMLWriter.java > /owllink-owlapi/owllinkhttpxml/src/main/java/org/semanticweb/owlapi/owllink/renderer > line 64 Java Problem > The method accept(OWLObjectVisitor) in the type OWLObject is not > applicable for the arguments (OWLXMLObjectRenderer) > OWLlinkXMLWriter.java > /owllink-owlapi/owllinkhttpxml/src/main/java/org/semanticweb/owlapi/owllink/renderer > line 206 Java Problem > The method accept(OWLObjectVisitor) in the type OWLObject is not > applicable for the arguments (OWLXMLObjectRenderer) > OWLlinkXMLWriter.java > /owllink-owlapi/owllinkhttpxml/src/main/java/org/semanticweb/owlapi/owllink/renderer > line 221 Java Problem > The method getIRIPrefixMap() is undefined for the type OWLXMLWriter > OWLlinkXMLWriter.java > /owllink-owlapi/owllinkhttpxml/src/main/java/org/semanticweb/owlapi/owllink/renderer > line 215 Java Problem > > Could you check, if everything on svn is ok? Please make sure that the classpath of your workingspace in your IDE first load lib/owlapi-bin.jar and then lib/owlapi-bin-2.jar. Otherwise the source code cannot be compiled because both jars contain the class OWLXMLWriter with different signatures in the constructor. Olaf |
|
From: Artur P. <art...@gm...> - 2010-10-11 10:26:36
|
W dniu 07.10.2010 18:00, Olaf Noppens pisze: > Hi Artur, >> With 2.1.0 I have still exception below: > I will check it. >> >> I need OWLlinkapi for Android application. But owllikapi is >> incompatible with Android due the use of some XML API which is not >> present in Android: >> >> 10-06 16:32:52.326: ERROR/dalvikvm(327): Could not find class >> 'com.sun.org.apache.xml.internal.serialize.XMLSerializer', referenced >> from method org.semanticweb.owlapi.owllink.HTTPSessionImpl.<init> > Please look at > http://sourceforge.net/mailarchive/forum.php?thread_name=4C7F8456.5070909%40derivo.de&forum_name=owllink-owlapi-developer > <http://sourceforge.net/mailarchive/forum.php?thread_name=4C7F8456.5070909%40derivo.de&forum_name=owllink-owlapi-developer>. > There I describe how to replace the XML API with the apache XML API. Is > the apache XML API available on android? > I have made a checkout from svn to eclipse project as follows: |-- owllink-owlapi | |-- antbuild | | `-- scripts | |-- bin | | `-- org | |-- lib | |-- owllinkapi | | `-- src | |-- owllinkhttpxml | | `-- src | |-- owllinkimpl | | `-- src | |-- owllinkprotege | | |-- antbuild | | `-- src | `-- owllinkserver | `-- src I have checked all src/main/java and src/main/test directories as src-folders and I have include all libs from lib direcotry. I have added xercesImpl.jar and replaced the imports. But I have some compile-errors regarding owl-api: Description Resource Path Location Type The constructor OWLXMLWriter(Writer, OWLOntology) is undefined MyOWLXMLWriter.java /owllink-owlapi/owllinkhttpxml/src/main/java/org/semanticweb/owlapi/owllink/renderer line 64 Java Problem The method accept(OWLObjectVisitor) in the type OWLObject is not applicable for the arguments (OWLXMLObjectRenderer) OWLlinkXMLWriter.java /owllink-owlapi/owllinkhttpxml/src/main/java/org/semanticweb/owlapi/owllink/renderer line 206 Java Problem The method accept(OWLObjectVisitor) in the type OWLObject is not applicable for the arguments (OWLXMLObjectRenderer) OWLlinkXMLWriter.java /owllink-owlapi/owllinkhttpxml/src/main/java/org/semanticweb/owlapi/owllink/renderer line 221 Java Problem The method getIRIPrefixMap() is undefined for the type OWLXMLWriter OWLlinkXMLWriter.java /owllink-owlapi/owllinkhttpxml/src/main/java/org/semanticweb/owlapi/owllink/renderer line 215 Java Problem Could you check, if everything on svn is ok? I was trying to checkout subprojects as different projects in eclipse, but I when I have configured the referenced projects I have got cycles in references warnings. Maybe you have some ready workspace for owllink which you could share? -- Regards Artur |
|
From: Artur P. <art...@gm...> - 2010-10-09 16:30:58
|
W dniu 09.10.2010 18:18, Olaf Noppens pisze: > Hi Artur, >> It is interesting, but I have a deadline in 3 weeks. For how many >> hours could you estimate this task? > OK, I see the problem ;-). I think it is a task of about 2 days. Let me > look at my code of the OWLlink API implementation this weekend and I can > then give you some pointers on Monday. Ok. I could try :) -- Regards Artur |
|
From: Artur P. <art...@gm...> - 2010-10-08 18:20:44
|
W dniu 08.10.2010 12:32, Olaf Noppens pisze: > Hi Artur, > >> But now SWRL rule executing doesn't work on owllinkapi. Locally it >> works. > > SWRL rules are currently not supported by OWLlink. > > Actually, OWLlink is a protocol that defines a standard way to interact > with components which supply reasoning or other services. The core > specification provides basic querying support. OWLlink extensions allow > to add further functionality (e.g., retraction, explanation etc.) to the > protocol. You are definitely right, that SWRL rules are very important > in the context of OWLlink. However, up to now, there exist no extension. > > You told me that you are working on your thesis. Maybe it is worth > considering whether an OWLlink extension could be part of this. > Actually, I propose that you adjust/extend the OWLlink API with SWRL > functionality (in fact, it is not to much overhead, one need to define a > specific request (maybe as an extension of tell) that allows to transfer > SWRL rules to the reasoner. Parsing and rendering of a binding (XML by > default) need also to be provided. But that is not difficult because one > can extend the parsers and renderes of the OWL API as already done for > the core OWLlink) and we could figure out an official specification for > an SWRL extension for OWLlink. What do you think? > > Please let me know if you are interested. > It is interesting, but I have a deadline in 3 weeks. For how many hours could you estimate this task? -- Regards Art |
|
From: Artur P. <art...@gm...> - 2010-10-07 19:17:22
|
W dniu 07.10.2010 18:15, Olaf Noppens pisze:
> It seems to me that the client code cannot access the correct OWLAPI.
> Please make sure that the Classpath of your client includes
> lib/owlapi-bin.jar and not lib/owlapi-bin-2.jar. Or at least make sure
> that lib/owlapi-bin.jar has a higher priority than owlapi-bin-2.jar.
>
> Let me know if it helps.
>
Good advice, thanks! I have duplicated owlapi-bin.jar on my classpath.
One was
from owllinkapi and second from pellet, because I didn't remember to
remove it after local pellet instance testing.
So reasoner work now with Pellet 2.1.1 :)
But now SWRL rule executing doesn't work on owllinkapi. Locally it
works. Stack trace is:
INFO [main] (Container.java:74) - Started
org.mortbay.http.HttpServer@3f57fb52
java.lang.NullPointerException
at java.util.TreeSet.addAll(TreeSet.java:283)
at java.util.TreeSet.<init>(TreeSet.java:143)
at
uk.ac.manchester.cs.owl.owlapi.SWRLRuleImpl.<init>(SWRLRuleImpl.java:56)
at
uk.ac.manchester.cs.owl.owlapi.OWLDataFactoryImpl.getSWRLRule(OWLDataFactoryImpl.java:1191)
at
org.coode.owlapi.owlxmlparser.SWRLRuleElementHandler.createAxiom(SWRLRuleElementHandler.java:51)
at
org.coode.owlapi.owlxmlparser.AbstractOWLAxiomElementHandler.endElement(AbstractOWLAxiomElementHandler.java:78)
at
org.semanticweb.owlapi.owllink.parser.MyOWLXMLParserHandler.endElement(MyOWLXMLParserHandler.java:857)
at
org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
at
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown
Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
Source)
at
org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown
Source)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:395)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:198)
at
org.semanticweb.owlapi.owllink.server.OWLlinkReasonerBridge.process(OWLlinkReasonerBridge.java:185)
at
org.semanticweb.owlapi.owllink.server.OWLlinkReasonerBridge.process(OWLlinkReasonerBridge.java:160)
at
org.semanticweb.owlapi.owllink.server.OWLlinkHTTPXMLServer.handle(OWLlinkHTTPXMLServer.java:60)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1565)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1517)
at org.mortbay.http.HttpServer.service(HttpServer.java:954)
at
org.mortbay.http.HttpConnection.service(HttpConnection.java:816)
at
org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:983)
at org.mortbay.http.HttpConnection.handle(HttpConnection.java:833)
at
org.mortbay.http.SocketListener.handleConnection(SocketListener.java:244)
at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357)
at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534)
Rule is:
<swrl:Variable rdf:about="http://mobilka.pl/owl/montclides.owl#x"/>
<swrl:Imp>
<swrl:head>
<swrl:AtomList>
<rdf:rest
rdf:resource="http://www.w3.org/1999/02/22-rdf-syntax-ns#nil"/>
<rdf:first>
<swrl:IndividualPropertyAtom>
<swrl:propertyPredicate
rdf:resource="http://mobilka.pl/owl/montclides.owl#has_intervention"/>
<swrl:argument2
rdf:resource="http://mobilka.pl/owl/montclides.owl#hospital_admit"/>
<swrl:argument1
rdf:resource="http://mobilka.pl/owl/montclides.owl#x"/>
</swrl:IndividualPropertyAtom>
</rdf:first>
</swrl:AtomList>
</swrl:head>
<swrl:body>
<swrl:AtomList>
<rdf:rest
rdf:resource="http://www.w3.org/1999/02/22-rdf-syntax-ns#nil"/>
<rdf:first>
<swrl:IndividualPropertyAtom>
<swrl:propertyPredicate
rdf:resource="http://mobilka.pl/owl/montclides.owl#has_symptome"/>
<swrl:argument2
rdf:resource="http://mobilka.pl/owl/montclides.owl#symptom1"/>
<swrl:argument1
rdf:resource="http://mobilka.pl/owl/montclides.owl#x"/>
</swrl:IndividualPropertyAtom>
</rdf:first>
</swrl:AtomList>
</swrl:body>
</swrl:Imp>
It have also created simple rule like in owlapi documentation example,
but it also didn't work like those above.
Could you look what's wrong with the parser?
--
Regards
Artur
|
|
From: Olaf N. <ola...@un...> - 2010-10-07 16:15:34
|
Hi Artur, > With 2.1.0 I have still exception below: > > Exception in thread "main" java.lang.NoSuchMethodError: > org.semanticweb.owlapi.reasoner.impl.DefaultNode.add(Lorg/semanticweb/owlapi/model/OWLLogicalEntity;)V > at > org.semanticweb.owlapi.owllink.builtin.response.IndividualSynsetImpl.asNode(IndividualSynsetImpl.java:93) > at > org.semanticweb.owlapi.owllink.builtin.response.SetOfIndividualSynsetsImpl.asNode(SetOfIndividualSynsetsImpl.java:91) > at > org.semanticweb.owlapi.owllink.OWLlinkHTTPXMLReasoner.getObjectPropertyValues(OWLlinkHTTPXMLReasoner.java:360) > at OwlAPITest.main(OwlAPITest.java:184) > It seems to me that the client code cannot access the correct OWLAPI. Please make sure that the Classpath of your client includes lib/owlapi-bin.jar and not lib/owlapi-bin-2.jar. Or at least make sure that lib/owlapi-bin.jar has a higher priority than owlapi-bin-2.jar. Let me know if it helps. Regards, Olaf |
|
From: Artur P. <art...@gm...> - 2010-10-06 16:50:58
|
W dniu 06.10.2010 18:34, Olaf Noppens pisze: > We will provide an OWLlink API which is based on OWLAPI 3.1.0 as soon as > possible. In the meantime, please use an OWLAPI 3.0-compatible version > of Pellet, e.g., Pellet 2.1.0. > With 2.1.0 I have still exception below: Exception in thread "main" java.lang.NoSuchMethodError: org.semanticweb.owlapi.reasoner.impl.DefaultNode.add(Lorg/semanticweb/owlapi/model/OWLLogicalEntity;)V at org.semanticweb.owlapi.owllink.builtin.response.IndividualSynsetImpl.asNode(IndividualSynsetImpl.java:93) at org.semanticweb.owlapi.owllink.builtin.response.SetOfIndividualSynsetsImpl.asNode(SetOfIndividualSynsetsImpl.java:91) at org.semanticweb.owlapi.owllink.OWLlinkHTTPXMLReasoner.getObjectPropertyValues(OWLlinkHTTPXMLReasoner.java:360) at OwlAPITest.main(OwlAPITest.java:184) I need OWLlinkapi for Android application. But owllikapi is incompatible with Android due the use of some XML API which is not present in Android: 10-06 16:32:52.326: ERROR/dalvikvm(327): Could not find class 'com.sun.org.apache.xml.internal.serialize.XMLSerializer', referenced from method org.semanticweb.owlapi.owllink.HTTPSessionImpl.<init> If you would like to run owllinkapi on Android you could review the experiences of androjena [1] Thanks for your help. -- Regards Artur [1] http://androjena.sourceforge.net |
|
From: Olaf N. <ola...@un...> - 2010-10-06 16:34:56
|
> I use the newest Pellet 2.2.2. Is it ok? > Hi Artur, the current release of the OWLlink API is based on the OWLAPI 3.0. Pellet 2.2.2, however, utilized the recently released OWLAPI 3.1.0 which is not compatible with the previous version. We will provide an OWLlink API which is based on OWLAPI 3.1.0 as soon as possible. In the meantime, please use an OWLAPI 3.0-compatible version of Pellet, e.g., Pellet 2.1.0. Kind regards, Olaf |
|
From: Artur P. <art...@gm...> - 2010-10-06 14:44:09
|
Hello, I have tried to use older version of Pellet. >From 2.2.2 to 2.2.0 there is exception mentioned in my previous post. In 2.1.1 I have another exception: Exception in thread "main" java.lang.NoSuchMethodError: org.semanticweb.owlapi.reasoner.impl.DefaultNode.add(Lorg/semanticweb/owlapi/model/OWLLogicalEntity;)V at org.semanticweb.owlapi.owllink.builtin.response.IndividualSynsetImpl.asNode(IndividualSynsetImpl.java:93) at org.semanticweb.owlapi.owllink.builtin.response.SetOfIndividualSynsetsImpl.asNode(SetOfIndividualSynsetsImpl.java:91) at org.semanticweb.owlapi.owllink.OWLlinkHTTPXMLReasoner.getObjectPropertyValues(OWLlinkHTTPXMLReasoner.java:360) at OwlAPITest.main(OwlAPITest.java:184) where OwlAPITest.java:184 is: NodeSet<OWLNamedIndividual> petValuesNodeSet = reasoner.getObjectPropertyValues(smith, obProp); (this code works with local reasoner) Please help, I need remote reasoning to my thesis :) -- Best regards Artur |