-
Notifications
You must be signed in to change notification settings - Fork 6
RSP Services
APIs allowing consumers to interact with RDF Stream processors.
-
Response 200 (application/json)
{ "name": "csparql", "host": "csparql/", "port": 8182, "empty_results": false, "inference": false, "timestamfunction": false, "backloop": true }
-
Response 200 (application/json)
[ { "iri": "https://streamreasoning.org/ds1.rdf", "isDefault": false, "name": "ds1", "serialization": "RDF/XML", "status": "STATIC" }, { "iri": "https://streamreasoning.org/ds2.rdf", "isDefault": true, "name": "ds2", "serialization": "JSON-LD", "status": "STATIC" } ]
-
Request
- Parameters
- dataset (required, string,
str1
) ... Stringname
of the Datasets.
- dataset (required, string,
- Parameters
-
Response 200 (application/json)
{ "iri": "https://streamreasoning.org/SensorRepository.rdf", "isDefault": false, "name": "SensorRepository", "serialization": "RDF/XML", "status": "STATIC" }
-
Request (application/x-www-form-urlencoded)
-
Parameters
- dataset (required, string) ... String
name
of the Dataset.
- dataset (required, string) ... String
-
Body
+ location: `https://streamreasoning.org/SensorRepository.rdf`) + name: (string, `SensorRepository`) ... internal name of the dataset. + serialization: (string, `RDF/XML`) ... serialization of the dataset. + default: (boolean, 'false') ... specifies if the dataset should be considered as default in queries
-
-
Response 200 (application/json)
-
Body
"Dataset SensorRepository succesfully registered with IRI https://streamreasoning.org/SensorRepository.rdf"
-
-
Request
- Parameters
- dataset (required, string,
str1
) ... Stringname
of the Datasets.
- dataset (required, string,
- Parameters
-
Response 200 (application/json)
-
Body
"Dataset SensorRepository succesfully unregistered"
-
-
Response 200 (application/json)
[ { "streamURL": "str2", "status": "RUNNING" }, { "streamURL": "str1", "status": "RUNNING" } ]
-
Request
- Parameters
- stream (required, string,
str1
) ... Stringname
of the Stream.
- stream (required, string,
- Parameters
-
Response 200 (application/json)
{ "streamURL": "str2", "status": "RUNNING" }
-
Request (application/x-www-form-urlencoded)
-
Parameters
- stream (required, string) ... String
name
of the Stream.
- stream (required, string) ... String
-
Body
streamIri: (uri, `http://192.168.99.100:4000/sgraph`) ... Location URI of the Stream.
-
-
Response 200 (application/json)
-
Body
"Stream str1 succesfully registered with IRI http://192.168.99.100:4000/sgraph"
-
-
Request
- Parameters
- stream (required, string,
str1
) ... Stringname
of the stream.
- stream (required, string,
- Parameters
-
Response 200 (application/json)
-
Body
"stream name succesfully unregistered"
-
-
Request
- Parameters
- query (required, string,
query1
) String name of the query
- query (required, string,
- Parameters
-
Response 200 (application/json)
[ { "id": "query2", "type": "STREAM", "status": "RUNNING" }, { "id": "query1", "type": "STREAM", "status": "RUNNING" } ]
-
Request
- Parameters
- query (required, string,
query1
) ... Stringname
of the Stream.
- query (required, string,
- Parameters
-
Response 200 (application/json)
{ "id": "query1", "type": "STREAM", "streams": [ "str1" ], "body": "REGISTER STREAM query1 AS CONSTRUCT {?s ?p ?o} FROM STREAM <str1> [RANGE 1m STEP 1m] WHERE {?s ?p ?o}", "status": "RUNNING" }
-
Request
-
Parameters
- query (required, string,
query1
) String name of the query
- query (required, string,
-
Body
queryBody: REGISTER STREAM query1 AS CONSTRUCT {?s ?p ?o} FROM STREAM <str1> [RANGE 1m STEP 1m] WHERE {?s ?p ?o}
-
-
Response 200 (application/x-www-form-urlencoded)
"Query query1 succesfully registered"
- Request
- Parameters
- query (required, string,
query1
) ... Stringname
of the Query.
- query (required, string,
- Parameters
-
Request
- Parameters
- query (required, string,
query1
) ... Stringname
of the Query.
- query (required, string,
- Parameters
-
Response 200 (application/json)
[ { "id": "observer2", "url": "ws://localhost:8282/query1" }, { "id": "observer1", "url": "ws://localhost:8282/query1" } ]
-
Request
- Parameters
- query (required, string,
query1
) ... Stringname
of the Query. - observer (required, string,
obs1
) ... Stringname
of the Observer.
- query (required, string,
- Parameters
-
Response 200 (application/json)
{ "id": "query1-observer1", "queryName": "query1", "url": "ws://localhost:8282/query1", "observer": { "sendEmptyResults": true, "host": "localhost", "port": 8282, "path": "/query1", "dataPath": "ws://localhost:8282/query1/results" } }
-
Request
-
Parameters
- query (required, string,
query1
) ... Stringname
of the Query. - observer (required, string,
obs1
) ... Stringname
of the Observer.
- query (required, string,
-
Body
+ type (optional, string, `ws`) ... The type of the observer (websocket or pull) + host (optional, string, `localhost`) ... The address of the websocket observer + port (optional, integer, `9999`) ... The port of the websocket observer
-
-
Response 200 (application/x-www-form-urlencoded)
"http://localhost:8181/queries/query1/observers/{query}-{observer}"
- Request
- Parameters
- query (required, string,
query1
) ... Stringname
of the Query. - observer (required, string,
obs1
) ... Stringname
of the Observer.
- query (required, string,
- Parameters
TripleWave, RSP Services and RSPLib are maintained separate repositories: