Coder Social home page Coder Social logo

kmax / cqels Goto Github PK

View Code? Open in Web Editor NEW
5.0 4.0 5.0 2.92 MB

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

Java 100.00%
rdf stream-processing

cqels's Issues

Update httpclient

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());
}

Performance of CQELS

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

It's not possible to unregister a continuous query (select or construct)

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)
  • and ExecContext.unregisterConstruct(ContinuousConstruct).

Where is the main-class?

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.

Compile Error in HeuristicRoutingPolicy

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.

Performance of BIND

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.