File tree Expand file tree Collapse file tree 2 files changed +26
-1
lines changed
rdf-processing-toolkit-cli/src/main/java/org/aksw/sparql_integrate/cli/cmd Expand file tree Collapse file tree 2 files changed +26
-1
lines changed Original file line number Diff line number Diff line change
1
+ package org .aksw .sparql_integrate .cli .cmd ;
2
+
3
+ import java .util .ArrayList ;
4
+ import java .util .List ;
5
+ import java .util .stream .Stream ;
6
+
7
+ import org .aksw .rdf_processing_toolkit .cli .cmd .CmdRptMain ;
8
+
9
+ import picocli .CommandLine ;
10
+ import picocli .CommandLine .Command ;
11
+ import picocli .CommandLine .ParentCommand ;
12
+ import picocli .CommandLine .Unmatched ;
13
+
14
+ @ Command (name = "serve" , description = "Alias for `integrate --server`" )
15
+ public class CmdRptServe implements Runnable {
16
+ @ ParentCommand CmdRptMain parent ;
17
+
18
+ @ Unmatched
19
+ public List <String > args = new ArrayList <>();
20
+
21
+ @ Override
22
+ public void run () {
23
+ new CommandLine (new CmdSparqlIntegrateMain ())
24
+ .execute (Stream .concat (Stream .of ("--server" ), args .stream ()).toArray (String []::new ));
25
+ }
26
+ }
Original file line number Diff line number Diff line change 29
29
import picocli .CommandLine .Option ;
30
30
import picocli .CommandLine .Parameters ;
31
31
32
-
33
32
@ Command (name = "integrate" ,
34
33
versionProvider = VersionProviderRdfProcessingToolkit .class ,
35
34
description = "Run sequences of SPARQL queries and stream triples, quads and bindings" )
You can’t perform that action at this time.
0 commit comments