kmax / cqels Goto Github PK
View Code? Open in Web Editor NEWA fork of CQELS (Continuous Query Evaluation over Linked Data)
Home Page: https://code.google.com/p/cqels/
License: GNU Lesser General Public License v3.0
A fork of CQELS (Continuous Query Evaluation over Linked Data)
Home Page: https://code.google.com/p/cqels/
License: GNU Lesser General Public License v3.0
The following method is causing a compile error:
@Override
public void removeRouter(OpRouter from, OpRouter to) {
next.remove(from.getId(), to);
}
next is a HashMap that takes only one parameter to remove an element.
Hi,
In your tests, you didn't use any extensive data sets, and I was wondering If you have any concrete performance measures for large amount of data sets. Cheers
We call ExecContext.registerSelect(String)
or ExecContext.registerConstruct(String)
to register a continuous query, but there is no API that could unregister it.
Implement two methods in ExecContext
:
ExecContext.unregisterSelect(ContinuousSelect)
ExecContext.unregisterConstruct(ContinuousConstruct)
.Need to update version of the dependency with groupId org.apache.httpcomponents and artifactId httpclient on 4.3.1 from 4.2.6. You see error if you added a new Test to RemoteSPARQLEndpoint, e.g.:
@Test
public void simpleRemoteTest(){
final String rmtService = "http://dbpedia.org/sparql";
RDFStream stream = new DefaultRDFStream(context, STREAM_ID_PREFIX);
ContinuousSelect query = context.registerSelect(""
+"PREFIX rdf:<http://www.w3.org/1999/02/22-rdf-syntax-ns#>"
+ "SELECT ?x ?y ?z ?p WHERE {"
+ "STREAM <" + STREAM_ID_PREFIX + "> [NOW] {?x ?y ?z}"
+ "SERVICE <"+rmtService+"> { ?x rdf:type ?p} "
+ "}");
SelectAssertListener listener = new SelectAssertListener();
query.register(listener);
stream.stream(new Triple(
Node.createURI("http://www.w3.org/2002/07/owl#inverseOf"),
Node.createURI("http://example.org/ontology#hasValue"),
Node.createLiteral("123")));
List<Mapping> mappings = await().until(listener, hasSize(1));
List<Node> nodes = Helpers.toNodeList(context, mappings.get(0));
Helpers.print(context, mappings);
assertEquals("http://www.w3.org/2002/07/owl#inverseOf", nodes.get(0).getURI());
assertEquals("http://example.org/ontology#hasValue",
nodes.get(1).getURI());
assertEquals("123", nodes.get(2).getLiteralValue());
assertEquals("http://www.w3.org/1999/02/22-rdf-syntax-ns#Property", nodes.get(3).getURI());
}
hello, i am really appreciate that the code you just share with us.
but i am really confused that i don't find the main function?
how could i do the experiments?
And also i download the csparqls.jar at the google code, in the MANIFEST.MF, it says the main-class: eu.larkc.csparql.readytogopack.CSPARQL,while couldn't find it in the source file.
Thanks for your help.
Currently CQELS depends on already an out-dated version of Apache Jena.
Running the CQELS engine with a query that requires a BIND drastically reduces performance. For example, the query:
CONSTRUCT { [] ?p ?o . }
WHERE {
STREAM <http://example.org/stream> [RANGE 1s] {
?s ?p ?o .
}
}
is many times faster than:
CONSTRUCT { ?bnode ?p ?o . }
WHERE {
STREAM <http://example.org/stream> [RANGE 1s] {
?s ?p ?o .
}
BIND(BNODE() AS ?bnode)
}
In my particualr use-case the latter form introduced an extra 250-350 ms delay per result. Is there an explanation for why BIND is so slow?
Also, the first query seems to reuse the same blank node for all evaluations: is this the expected behavior?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.