SWI-Prolog for the semantic web
swi-prolog.org
swi-prolog.org
The title was "SWI-Prolog as a Semantic Web Tool for semantic querying in Bioclipse: Integration and performance benchmarking", and it is available for download here: https://www.researchgate.net/publication/50313589_SWI-Prolog...
In this particular task, SWI-Prolog totally knocked out Jena, and it was also more amenable to some heuristic optimiziations, where we the running time really became infinitesimal in comparison to other tools.
You say this in the paper:
> It is an interesting observation that writing the Prolog query on the simpler form (Figure 18) made it amenable to heuristic optimization by sorting the values searched for, while this was not possible in the longer Prolog program
I'm afraid I didn't read carefully and will go back, but could you clarify this a bit? I didn't understand about the longer vs. the shorter prolog code. Would this optimization be required always get better performance than Jena or Pellet?
And then this:
> Additionally, a drawback of SWI-Prolog speci?cally, against Jena and Pellet, is that since it is not written in Java, it is not as portable (i.e. the same code can not easily be executed) to di?erent platforms such as Mac, Windows, Linux etc. Instead the source code has to be compiled separately for each platform. This also has the result that the SWI-Prolog Bioclipse integration plugin will not be as portable as Bioclipse itself.
Really, though, Bioclipse is dependent on the portabilty of Eclipse which probably doesn't support any more platforms than SWI Prolog (and most probably fewer than SWI Prolog), so I wouldn't really see that as a limitation. I would think you could provide the binaries in the distribution itself.
The separate conditions enables "shortcut" of the match-testing, in a way that the recursive list-parsing did not: As soon as one of the conditions is not met, the current spectrum will be rejected and the backtracking will go on with the next item, while with the recursive list-parsing version each item of the list of values will be compared to the reference [value-]list regardless of whether the current spectra has already been rejected or not.
The "shorter" prolog version, with separate conditions, thus enables to order the conditions according so that statistically rare peak values come first (thus, "heuristically"), so that a spectrum can be rejected as soon as possible.
Being a heuristic solution, the performance would of course depend on the prior knowledge of the values in the data.
But as can be seen from figure 15, both prolog versions beat Jena and Pellet by a large margin, though the "shorter" version did so well that it is even hard to notice an increase of the running time linear to the number of triples in the triplestore, in the diagram.
Hope that made it a tad clearer!
The cleopatria semantic web server is interesting, but I have just played with it. The core RDF storage and inference get libraries were solid and nice to use.
That pattern's a red flag whenever I see it. Like an ostensible proof of P!=NP that begins with a 30 page history written for laymen. Who is that paragraph aimed at? Is there really a sizeable population casually using RDF and Prolog but losing sleep over HTML and JSON?
Have you met academics?
Just kidding ;), but by exaggerating, not by lying. (Also I know for a fact that you have met academics). Of course any compsci academic can pick-up HTML and JSON in half an hour of time, but it's not mad to imagine that some of them never were interested in actual web technologies (working on RDF can be done from a purely theoretical point of view) and seeing this sentences on HTML and JSON may be a useful information to them, just as mentioning a practical use-case at the end of a paper's abstract can be.
Librarians invented metadata not computer scientists.
* BlipKit - Biomedical Logic Programming : http://www.blipkit.org
I don't even think it's computationally possible for SPARQL to be fast.
Also, if your data store is "fast in practice" but has worst cases that are PSPACE-complete, how do you prevent worst-case queries from DOSing it?
Worst cases are prevented from DOSing by having query management features like auto-killing queries that run too long, etc.
If anyone knows a way to do something similar in SPARQL, I'm highly interested to know.