Error trying to import a a daml file in protege - file

I'm trying to import a daml file (.daml) in protege, but I get the following exception:
Exception in thread "AWT-EventQueue-0" java.lang.noClassDefFoundError: org/apache/xerces/utils/URI$MalformedURIException
at edu.standford.smi.protegex.storage.daml.DAMLJenaParser.jenaparse(DAMLJenaParser.java:49)...
Does any of you know how to get around this? Does any of you know any other powerful ontology app. dvelopment environment other than protege for developing daml+oil documents?
Please reply as soon as you can. Thanks in advance.

Its solved. I new I needed xerces but did not know exactly which version. As my version of protege (portege 1.9 2000) is an old one it seems that I needed an old version of xerces. I just did not know which one. Now, its working fine. I think the version of xerces is 1.4x
Thanks for your time.

Related

What is going to replace the DataImportHandler in Solr 9.0?

The latest documentation (8.8) for Apache Solr says that the Data Import Handler is deprecated is going to be removed in future versions. It only lists a third-party plugin maintained on Github, and no other native alternative to import data from relational databases. Am I missing something or has Solr dropped native support for this?
Data import handler will still be there, but as a contrib package.
I'll do what I did before data import handler existed and write a separate program. I prefer Python, where reading a database and sending JSON updates is pretty simple.
Be sure to batch the updates.
Alternative solr DIH
https://github.com/saro-lab/solr-db-importer
I made an alternative program to DIH and released the source code and manual.
I want to implement your solr-sb-importer
But it seems stay stuck at running.
I suspect the loading of the schema is not working
http://localhost:8983/solr/succesboeken_sb/sb-schema
I get:
Exception in thread "main" org.springframework.web.client.HttpClientErrorException$NotFound: 404 Not Found: " Searching for Solr? You must type the correct path. Solr will respond."
while excecuting:
java -jar solr-db-importer-1.4.jar
I am using Solr 9.1.0
Have you encountered this before?

How to update statsmodels to 0.13.0.dev0 version (to use OrderedModel module)?

What I was trying to do?
I was trying to analyze data using ordinal logistic regression. For that, I tried to import OrderedModel from statsmodels.miscmodels.ordinal_model as suggested by this doc.
Then, what is the problem?
After execution of the above mentioned import statement, I got the following error.
No module named 'statsmodels.miscmodels.ordinal_model'
How did I try to solve the problem?
First of all, I checked the statsmodels version, I am using. I find that I am using the latest version (0.12.1), available in Anaconda. From this doc, I perceive that I will need to use 0.13.0.dev0 version to get the OrderedModel module, as in v0.12.1, there is no folder/file named OrderedModel. However, I do not find any way to update the statsmodels to 0.13.0.dev0 version.
Then, my question
How can I update statsmodels to 0.13.0.dev0 version so that I can use OrderedModel module?
Note: I know that in Python, there are some other ways to do ordinal logit regression. However, I want to use statsmodels due to it's nice summary of analysis.
Thanks in advance!
You can install a recent build from the nightly wheel repository hosted on Anaconda.org.
Run pip install -i https://pypi.anaconda.org/scipy-wheels-nightly/simple statsmodels.
It looks like you will need to compile from the GitHub. See prior related question here:
How to update to the developer version of statsmodels using Conda?

What is the maintained version of google-app-engine mapreduce for python?

It seems that the latest documentation is this one:
https://github.com/GoogleCloudPlatform/appengine-mapreduce/wiki/1-MapReduce
so I assumed that the code in this repo is the latest, is that so?
It seems that in the SDK one can also find a mapreduce lib under google.appengine.ext.mapreduce.
The issue is that I can't find a working example using either one of them, nor a good installation instructions (just putting the mapreduce dir from the above repo doesn't seem to work). Also running the tests fails.
So before digging in and working through the issues to get it working I wonder if I'm missing something obvious?
Any help will be great.
Got response from the Google team that indeed this library is maintain.
Indeed the code example was missing but it was added back now and some of the documentation was updated.
The best tutorial I have found is this one:
http://sookocheff.com/series/mapreduce-api/
Now linked from the official documentation.
One thing that wasn't clear to me in the documentation is that in addition to the mapreduce lib which you need to add to your app code, you need also to add the dependencies:
simplejson
cloudstorage
graphy
appengine-pipelines
the code comes with a build.sh which does it on the some code but you need to do it your self if you are adding the mapreduce lib to your code project.
To use the lib you need to add just this folder to your project. Then use these imports:
from mapreduce import base_handler
from mapreduce import mapreduce_pipeline
This is a good start point.

ClassCastException+spring

Hi following error I have got please let me know solution
java.lang.ClassCastException: org.apache.catalina.util.DefaultAnnotationProcessor cannot be cast to org.apache.AnnotationProcessor –
Im using tomcat 6.0
This is a known issue. This is the reason:
This was due to efforts from MYFACES-1246, proposal of annotation
processing here in list (adding method), but this of course breaks
compatibility of the same named interfaces.
If you have older code using org.apache.AnnotationProcessor you can make
it work on Tomcat.
Solution is:
Add <Loader delegate="true"/> into context.xml file (to Context element) in tomcat/conf directory.
This makes classloading in Tomcat sticking to J2EE spec.
(I couldn't make it work with suggested approach for only 1 webapp)
This is the reference: http://mail-archives.apache.org/mod_mbox/myfaces-dev/200703.mbox/%3C45F6D22B.1020803#ataco.cz%3E

Is there a Solr-Camel component?

I've been looking for this for a while and haven't found anything yet. Is there any reason to that ? I would like to proxy a solr server with the camel integration framework and I understand it must be quite straight forward without it, but less elegant :).
If someone has worked on this, I would love some feedback.
Nicolas.
yep, there is a new camel-solr component
There is an Apache Lucene component
http://camel.apache.org/lucene
But I dont think anyone has done any Apache Solr component. However in the end its all Java code, so you should be able to leverage them together.
Also check out github as people spin off projects there creating all kind of Camel related components.
There is a camel-solr component proposal https://issues.apache.org/jira/browse/CAMEL-4539
I have build a Camel Solr endpoint as part of a search project. Solr and Camel fits smoothly and I have had no problems. Its available at here. Its still in the early days, i.e. I'm writing the documentation and testing as we speak.
It would be great if you could try it out and provide feedback, both to its usage as well as to the documentation.
Cheers

Resources