33 lines
675 B
Protocol Buffer
33 lines
675 B
Protocol Buffer
syntax = "proto3";
|
|||
|
|
package org.graphofliberty.inference;
|
||
|
|
|
||
|
|
import "google/protobuf/empty.proto";
|
||
|
|
|
||
|
|
message OntologyLoadRequest {
|
||
|
|
string path = 1;
|
||
|
|
}
|
||
|
|
|
||
|
|
message OntologyLoadResponse {
|
||
|
|
uint64 input_size = 1;
|
||
|
|
uint64 old_size = 2;
|
||
|
|
uint64 new_size = 3;
|
||
|
|
}
|
||
|
|
|
||
|
|
message OntologyClearResponse {
|
||
|
|
uint64 size = 1;
|
||
|
|
}
|
||
|
|
|
||
|
|
message OntologyQueryRequest {
|
||
|
|
optional string turtle = 1;
|
||
|
|
string sparql_query = 2;
|
||
|
|
}
|
||
|
|
|
||
|
|
message OntologyQueryResponse {
|
||
|
|
string results = 1;
|
||
|
|
}
|
||
|
|
|
||
|
|
service Ontology {
|
||
|
|
rpc Load(OntologyLoadRequest) returns (OntologyLoadResponse);
|
||
|
|
rpc Clear(google.protobuf.Empty) returns (OntologyClearResponse);
|
||
|
|
rpc Query(OntologyQueryRequest) returns (OntologyQueryResponse);
|
||
|
|
}
|