I would like to call fuseki server endpoint and create a model from my Clojure program. Is there a library in Clojure for fuseki or shld I call Apache Jena Java library, if so can you pls tell me how as I'm new to Clojure. Your help is much appreciated. Thanks.
Some fairly straightforward googling suggests that Seabass may be of interest.
https://github.com/ryankohl/seabass/
This is a wrapping of Jena.
Related
I would like to extend geode with custom binary data (serialization). Is there any documentation about how to kickoff a minimal setup/system using geode? I saw a docker image but didn't find any docs on this.
It would be more than enough for me to have a c++ client which can push and query the stored (~30 GB of) data by a key.
Thank you very much for your help!
Checkout... https://cwiki.apache.org/confluence/display/GEODE/Index#Index-Geodein5minutes
There is more information on the Geode Wiki as well that maybe of use to you.
https://cwiki.apache.org/confluence/display/GEODE/Application+Development
This maybe of particular interests to you...
https://cwiki.apache.org/confluence/display/GEODE/PDX+Serialization+Internals
Hope this helps get you started.
Cheers!
The C++ and C# clients are currently not part of Apache Geode, just Pivotal GemFire.
You will find information about Geode and Docker here, here and here.
There may not be actual documentation for C++, but you can use the REST client to communication with GemFire as well. Documentation is here and here.
I am using clojure with Vertx and can see my request/response roundtrip. However I would like to leverage the Ring framework, which comes with only a Jetty adapter. Does anyone know of a ready made one for Vertx? I am interested in learning how to write my own, but am short of time to research it.
I don't know anything about vertx myself, but you should be aware that Jetty is certainly not the only webserver that ring can interoperate with: it's the only one bundled into ring proper, but a quick google search reveals a handful of other adapters, eg for netty, simpleweb, mongrel2, and finagle. I did find a discussion about vertx/clojure interop on the google group, though. Looks half-baked and perhaps never finished, but worth looking into at least.
I don't believe so - although such adapter would be ultimately cool!
Have you checked http-kit?
It seems to be fairly performance-effective (haven't checked it myself though) and is 99.9% Ring-compatible.
You can also check out. https://github.com/RallySoftware/netty-ring-adapter It is a drop in replacement for Jetty using Netty.
There is a clojure module here thats being actively developed. There is a ring adapter here .
I'm trying to remember the name of the piece of software that would help you self-document your REST and SOAP API's as well as other things. It has a wiki that would go along with it as well...
Does anyone remember it? It's open source
I figured it out; it's called enunciate
Webserver(Apache2/ngnix) + PHP(fastcgi) + MySQL
The above combination is common.
How about using C++ instead of PHP? As there is a C++ driver for MySQL, so database connection won't be a big problem. But how to implement the fastcgi in C++? Is looking at php-fpm a good starting point?
Anyone with similar experience please share.
Thanks.
Perhaps it might be easier to write a C++ extension for PHP that has all your code in it. That way, you can use the PHP fastcgi engine but your entire webapp bypasses PHP (the language and the compiler) entirely.
"Ablaze is a FastCGI web application development framework for C++ designed for efficiency, high throughput and lightning response time."
Hi this http://cplusplus-soup.com/2009/12/28/c-instead-of-php-for-the-web/ can be usefull
I was told I have to use winsock, but I dont know where to start. For example, I am trying to access, lets say http://www.newegg.com/, I am trying to get the text title of just the three front page products. Any help is greatly appreciated. :D
I'd also recommend libcurl for this sort of thing.
You can use the cURL command line tool to generate sample code as well, which is helpful for experimentation.
W3.org themselves provide sample C / C++ librarys for Http requests.
Find them here
Specifically, look for HTTPReq.c
Use boost library and poco. They both provide solutions for network programming. Boost also provide spirit library which you can use for parsing data from websites. Poco libraru also provides NetSSL, crypto solutions.
P.S. boost::spirit is not a library for parsing data from websites, it provides solution for parsing strings ...
you need to open a socket.
then you need to do an http get
somewhat like :-
http://www.esqsoft.com/examples/troubleshooting-http-using-telnet.htm
You could use the QNetworkAccessmanager class from Qt framework.
I'm assuming you need to use c++ for a reason, such as integration with existing software, otherwise, as per some of the other suggestions, choosing a language with a more convenient framework (eg: scripting language) would be better suited for the task.
If you would like to avoid getting your hands dirty with WINSOCK, or have the need to run on a platform other than windows, you could look at the using the boost asio library.
The following page contains links to simple sync and async http clients:
http://www.boost.org/doc/libs/1_37_0/doc/html/boost_asio/examples.html
You can find documentation on the library itself at:
http://www.boost.org/doc/libs/1_37_0/doc/html/boost_asio.html
Use c++ if you must, but it might be a lot less painful to use python.
Look at the Python httplib module for how to set the host you want to pull from etc. Python's available for free for most platforms and is enough like C++ that you can probably learn python a heck of a lot faster than you can learn to write a program controlled browser in c++. Well, maybe that's not true for everyone on this site, but I'll bet it's true for "most" of us. I used to get stock quotes updated in near real time from CNN Money years ago and IIRC it was around 100 lines of python code.
Hotei