public void addEndpoint(Operation operation, String endpointName) { addEndpoint(operation, endpointName, null); }
public void addEndpoint(Operation operation, String endpointName) { addEndpoint(operation, endpointName, null); }
/** Add an operation to a {@link DataService} with a given endpoint name */ public static void addServiceEP(DataService dataService, Operation operation, String endpointName) { dataService.addEndpoint(operation, endpointName) ; }
/** Add an operation to a {@link DataService} with a given endpoint name */ public static void addServiceEP(DataService dataService, Operation operation, String endpointName, AuthPolicy requestAuth) { dataService.addEndpoint(operation, endpointName, requestAuth) ; }
/** Add an operation to a {@link DataService} with a given endpoint name */ public static void addServiceEP(DataService dataService, Operation operation, String endpointName) { dataService.addEndpoint(operation, endpointName) ; }
/** Add an operation to a {@link DataService} with a given endpoint name */ public static void addServiceEP(DataService dataService, Operation operation, String endpointName, AuthPolicy requestAuth) { dataService.addEndpoint(operation, endpointName, requestAuth) ; }
dataService.addEndpoint(Operation.DatasetRequest_RW, "") ; } else if ( ! dataService.getEndpoints(Operation.GSP_R).isEmpty() || ! dataService.getEndpoints(Operation.Quads_R).isEmpty() ) { dataService.addEndpoint(Operation.DatasetRequest_R, "") ;
dataService.addEndpoint(Operation.DatasetRequest_RW, "") ; } else if ( ! dataService.getEndpoints(Operation.GSP_R).isEmpty() || ! dataService.getEndpoints(Operation.Quads_R).isEmpty() ) { dataService.addEndpoint(Operation.DatasetRequest_R, "") ;
@Test public void embedded_20() { DatasetGraph dsg = dataset() ; int port = FusekiLib.choosePort() ; DataService dSrv = new DataService(dsg) ; dSrv.addEndpoint(Operation.Query, "q") ; dSrv.addEndpoint(Operation.GSP_R, "gsp") ; FusekiServer server = FusekiServer.create() .add("/dsrv1", dSrv) .setPort(port) .build() ; server.start() ; try { query("http://localhost:"+port+"/dsrv1/q","ASK{}",x->{}) ; String x1 = HttpOp.execHttpGetString("http://localhost:"+port+"/dsrv1/gsp") ; assertNotNull(x1) ; } finally { server.stop() ; } }
@Test public void embedded_20() { DatasetGraph dsg = dataset() ; int port = WebLib.choosePort() ; DataService dSrv = new DataService(dsg) ; dSrv.addEndpoint(Operation.Query, "q") ; dSrv.addEndpoint(Operation.GSP_R, "gsp") ; FusekiServer server = FusekiServer.create() .add("/dsrv1", dSrv) .port(port) .build() ; server.start() ; try { query("http://localhost:"+port+"/dsrv1/q","ASK{}",x->{}) ; String x1 = HttpOp.execHttpGetString("http://localhost:"+port+"/dsrv1/gsp") ; assertNotNull(x1) ; } finally { server.stop() ; } }
@Test public void embedded_20() { DatasetGraph dsg = dataset() ; int port = WebLib.choosePort() ; DataService dSrv = new DataService(dsg) ; dSrv.addEndpoint(Operation.Query, "q") ; dSrv.addEndpoint(Operation.GSP_R, "gsp") ; FusekiServer server = FusekiServer.create() .add("/dsrv1", dSrv) .port(port) .build() ; server.start() ; try { query("http://localhost:"+port+"/dsrv1/q","ASK{}",x->{}) ; String x1 = HttpOp.execHttpGetString("http://localhost:"+port+"/dsrv1/gsp") ; assertNotNull(x1) ; } finally { server.stop() ; } }
@Test public void embedded_21() { DatasetGraph dsg = dataset() ; int port = WebLib.choosePort() ; DataService dSrv = new DataService(dsg) ; dSrv.addEndpoint(Operation.Query, "q") ; dSrv.addEndpoint(Operation.GSP_R, "gsp") ; FusekiServer server = FusekiServer.create() .add("/dsrv1", dSrv) .staticFileBase(DIR) .port(port) .build() ; server.start() ; try { query("http://localhost:"+port+"/dsrv1/q","ASK{}",x->{}) ; String x1 = HttpOp.execHttpGetString("http://localhost:"+port+"/dsrv1/gsp") ; assertNotNull(x1) ; // Static String x2 = HttpOp.execHttpGetString("http://localhost:"+port+"/test.txt"); assertNotNull(x2) ; } finally { server.stop() ; } }
@Test public void embedded_21() { DatasetGraph dsg = dataset() ; int port = WebLib.choosePort() ; DataService dSrv = new DataService(dsg) ; dSrv.addEndpoint(Operation.Query, "q") ; dSrv.addEndpoint(Operation.GSP_R, "gsp") ; FusekiServer server = FusekiServer.create() .add("/dsrv1", dSrv) .staticFileBase(DIR) .port(port) .build() ; server.start() ; try { query("http://localhost:"+port+"/dsrv1/q","ASK{}",x->{}) ; String x1 = HttpOp.execHttpGetString("http://localhost:"+port+"/dsrv1/gsp") ; assertNotNull(x1) ; // Static String x2 = HttpOp.execHttpGetString("http://localhost:"+port+"/test.txt"); assertNotNull(x2) ; } finally { server.stop() ; } }
@Test public void embedded_21() { DatasetGraph dsg = dataset() ; int port = FusekiLib.choosePort() ; DataService dSrv = new DataService(dsg) ; dSrv.addEndpoint(Operation.Query, "q") ; dSrv.addEndpoint(Operation.GSP_R, "gsp") ; FusekiServer server = FusekiServer.create() .add("/dsrv1", dSrv) .setStaticFileBase(DIR) .setPort(port) .build() ; server.start() ; try { query("http://localhost:"+port+"/dsrv1/q","ASK{}",x->{}) ; String x1 = HttpOp.execHttpGetString("http://localhost:"+port+"/dsrv1/gsp") ; assertNotNull(x1) ; // Static String x2 = HttpOp.execHttpGetString("http://localhost:"+port+"/test.txt"); assertNotNull(x2) ; } finally { server.stop() ; } }
dataService.addEndpoint(Operation.Quads_RW, ""); dataService.addEndpoint(Operation.Query, ""); dataService.addEndpoint(Operation.Update, ""); int port = WebLib.choosePort() ;
dataService.addEndpoint(Operation.Quads_RW, ""); dataService.addEndpoint(Operation.Query, ""); dataService.addEndpoint(Operation.Update, ""); int port = FusekiLib.choosePort() ;
dataService.addEndpoint(Operation.Quads_RW, ""); dataService.addEndpoint(Operation.Query, ""); dataService.addEndpoint(Operation.Update, ""); int port = WebLib.choosePort() ;