How do I start a Fuseki server from Jena API Eclipse project? - jena

Hi I am new to the Semantic Web domain and Apache Jena enviroments too, which is why I am posting this question.
I have a project that makes use of Jena API. And when I run it, it shows output in the console.
I did run Fuseki server from cmd line and it ran as a local server and I could do some playing around with queries and all that.
My question is, is it possible to run the project on the server through my project that makes use of the API, and if so, why it should be done? I am confused as to the reason why we have a Fuseki server but aren't starting it through the API.

Like any java program with command line execution, you can call main directly:
org.apache.jena.fuseki.FusekiCmd.main("--loc=DB", "--update", "/ds") ;
This can be in a forked thread if you want.

Related

How to invoke a SOAP UI request from an external system?

I have a requirement to upload few xml into my Siebel Application.
Since it is possible using SOAP UI software, I want to invoke the SOAP UI request using command line or using Linux terminal ?
Note: By External System I mean using command line or Linux terminal.
SoapUI can be invoked from a commandline. You just need a Java Runtime Environment in order to do so.
In a windows commandline prompt, you just use the testrunner.bat
Running on Linux, you will need to adjust the commands accordingly, but it is absolutely doable.

Is it possible to run appium server as a service in Linux OS like Ubuntu?

I've googled the topic but no result. One alternative way is to use Java client to start appium server programatically. However, I am using Python as my test script. It seems the Python client does not have such APIs.
So, I want to know if it is possible to run appium server as a service, so that I can use the following command to start/stop it:
service appium-server start
service appium-server stop
Any information will be appreciated.

Client server communication using ruby

Am new to ruby
i want to run a ruby script in ubuntu machine.
Inside the ruby script i need to call an exe file from windows machine(C:\data\file.exe)...
How can i achieve the client server communication for this purpose?
or any other methods used for calling an exe file
Pleas esuggest any other methods also for performing this task
ruby code
exec('C:\data\file.exe')
Actually in ubuntu machine am running a ruby script for doing automation using that script i have to run an exe file conatined in the windows machine.and it wil up the exe in the windows machine.i dont want any output from the windows machine to unduntu amchine
I do not understand your setup yet, but some general pointers:
Besides
1) communication over sockets, you could
2) implement a small web-application (for example with Sinatra - if you can run ruby on your windows machine) and make the ruby script communicate with that application, by sending a http request.
Or
3) if you are running in a virtual machine setup you could touch a marker file in a shared folder and watch it from the other side.
Of course there must be many other and more involved methods (like native windows rpc calls), but I think these three ways are the quickest to learn and implement. Personally I would walk the second path, just for the fun of it.

Highcharts Server side generation not working on windows 2008 server

I am trying to generate highcharts images using phantomjs on windows 2008 rc2 server, but for some reason the command exits without generating the SVG. The following command is being executed to generate the chart,
E://BrandManagement//HighCharts//phantomjs//phantomjs E://BrandManagement//HighCharts//js//highcharts-convert.js -infile C:\Tomcatx64\temp\ILmZ47YS4358686612292944754.json -outfile C:\Tomcatx64\temp\ILmZ47YS4358686612292944754.svg -callback C:\Tomcatx64\temp\OpwX6N8a931179010207236357cb.js -constr Chart
If I execute the command prompt the svg does get created, but not from the java process. If there anything special that needs to be takes care of.
Regards,
Ayush
Th problem was with windows permission, tomcat was running as a service, hence probably not able to execute the command.
Went to services>> properties>> security and started running the service as the Administrator logon permission and that did the trick.
Regards,
Ayush

Is there a simpler way to deploy to WebSphere?

I have seen this question about deploying to WebSphere using the WAS ant tasks.
Is there a simpler way to do this? In the past I have deployed to Tomcat by dropping a war file into a directory. I was hoping there would be a similar mechanism for WebSphere that doesn't involve calling the IBM libraries or rely on RAD to be installed on your workstation.
Just a hint: if you activate "Log command assistance commands" in System Administration / Console preferences, you will get a logfile in the server log directory that contains the jython scripts for all actions you did on the console. So you can just deploy your stuff per console the first time, and then grab the commands for later and feed them into wsadmin.bat -lang jython "thecommandscomehere" for the next deployment.
There is the concept of WebSphere Rapid Deployment. It's supposed to be the same experience as what you describe for Tomcat.
One way to do it could be using Jython or jacl scripts. See those samples at IBM site.
[EDIT] Especially the wsadminlib.py.zip download near the bottom of the page contains a huge set of examples and helper functions to get you started.
WAS does provide a client jar containing some custom ant tasks. However they seem to be extremely bugy and dont work with remote servers.
IBM ANT TASK Javadoc
Netbeans also has support for was 6 and 6.1 but this again is still quite buggy, however it can be useful for generating some the bindings files etc.

Resources