Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove Strings from Task API #18

Open
riccardotommasini opened this issue Dec 13, 2021 · 0 comments
Open

Remove Strings from Task API #18

riccardotommasini opened this issue Dec 13, 2021 · 0 comments

Comments

@riccardotommasini
Copy link
Member

Currently, Task API uses strings to refer to operator names, but it is very error prone

transform this

   TaskAbstractionImpl<Graph, Graph, Binding, Binding> t =
            new TaskAbstractionImpl.TaskBuilder(prefixes)
                    .addS2R(":observations", w1, "window1")
                    .addS2R(":tracing", w2, "window2")
                    .addR2R("window1", bgp)
                    .addR2R("window2", bgp2)
                    .addR2S("out", new Rstream<Binding, Binding>())
                    .addProjectionStrings(List.of("?s","?o","?s2"))
                    .build();

into this

TaskAbstractionImpl<Graph, Graph, Binding, Binding> t =
            new TaskAbstractionImpl.TaskBuilder(prefixes)
                    .addS2R(observationStream, w1)
                    .addS2R(outStream, w2)
                    .addR2R(w1, bgp)
                    .addR2R(w2, bgp2)
                    .addR2S(outStream, new Rstream<Binding, Binding>())
                    .addProjectionStrings(List.of("?s","?o","?s2"))
                    .build();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant