2026-08-12 14:11:47 -04:00
|
|
|
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;
|
2026-08-13 22:44:37 -04:00
|
|
|
optional string sparql_query = 2;
|
2026-08-13 09:44:46 -04:00
|
|
|
map<string, string> prefixes = 3;
|
|
|
|
|
optional string base = 4;
|
2026-08-12 14:11:47 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
message OntologyQueryResponse {
|
|
|
|
|
string results = 1;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
service Ontology {
|
|
|
|
|
rpc Load(OntologyLoadRequest) returns (OntologyLoadResponse);
|
|
|
|
|
rpc Clear(google.protobuf.Empty) returns (OntologyClearResponse);
|
|
|
|
|
rpc Query(OntologyQueryRequest) returns (OntologyQueryResponse);
|
|
|
|
|
}
|