SwiftclassIntelligencePlatformCore
class IntelligencePlatformCore.GraphStore
Structure
What a query’s scopes step through. Every node here can be matched — see the syntax.
inherits{}
- protocolSwift.Equatable
- protocolSwift.Hashable
Members 24
- deinit
deinit - field
let config: IntelligencePlatformCore.Configuration - field
let db: IntelligencePlatformCore.GraphDatabase+0x10 - func
clearGraphTriples() -> Int - func
currentUser() -> [IntelligencePlatformCore.GraphTriple] - func
delete<A where A: IntelligencePlatformCore.GraphStoreRecord>([A]) -> Int - func
eventTripleCount() -> Int - func
expiredEventTripleCount() -> Int - func
expiredGraphTripleCount() -> Int - func
graphTripleCount() -> Int - func
loadConstructionGraphTriples(subject: IntelligencePlatform.EntityIdentifier) -> [IntelligencePlatformCore.ConstructionGraphTriple] - func
loadEventTriples() -> [IntelligencePlatformCore.EventTriple] - func
loadGraphTriples(globPattern: String) -> [IntelligencePlatformCore.GraphTriple] - func
loadGraphTriples(object: String) -> [IntelligencePlatformCore.GraphTriple] - func
loadGraphTriples(subject: IntelligencePlatform.EntityIdentifier, predicates: [IntelligencePlatform.EntityPredicate]) -> [IntelligencePlatformCore.GraphTriple] - func
loadGraphTriples(subject: IntelligencePlatform.EntityIdentifier, objectPrefix: String) -> [IntelligencePlatformCore.GraphTriple] - func
loadGraphTriples(subject: IntelligencePlatform.EntityIdentifier) -> [IntelligencePlatformCore.GraphTriple] - func
loadGraphTriples() -> [IntelligencePlatformCore.GraphTriple] - func
loadGraphTriplesGroupedBySubject(groupsContainingObject: String) -> [IntelligencePlatform.EntityIdentifier : [IntelligencePlatformCore.GraphTriple]]? - func
store<A where A: IntelligencePlatformCore.GraphStoreRecord>([A]) -> () - func
tripleInsertingTransaction(transactionBody: (([IntelligencePlatformCore.GraphStoreRecord]) throws -> ()) throws -> IntelligencePlatformCore.GraphStore.TransactionOperation) throws -> () - init
IntelligencePlatformCore.GraphStore.__allocating_init(config: IntelligencePlatformCore.Configuration) throws -> IntelligencePlatformCore.GraphStore - typealias
typealias StorageDatabase = IntelligencePlatformCore.GraphDatabase - typealias
typealias StorageDatabase = IntelligencePlatformCore.GraphDatabase
Header
class GraphStore { struct OntologyKey { let entityClass: Swift.String let predicate: Swift.String let relationshipPred: Swift.String } struct PredicateStats { let tripleStats: [IntelligencePlatformCore.GraphStore.OntologyKey : Swift.Int] let entityStats: [Swift.String : Swift.Int] } class RawTriple { var row: GRDBInternal.Row? let columns: IntelligencePlatformCore.SubgraphDatabaseTable.SubgraphColumns let subjectCol: Swift.Int let predicateCol: Swift.Int let relationshipIdCol: Swift.Int let relationshipPredicateCol: Swift.Int let objectCol: Swift.Int let sourceCol: Swift.Int let confidenceCol: Swift.Int let sourceDuplicatesCol: Swift.Int let timestampCol: Swift.Int let isGraph: Swift.Bool let isExpired: Swift.Bool let query: Swift.String let forwardQuery: Swift.String } class RawTripleCursor { let cursor: GRDBInternal.RowCursor var triple: IntelligencePlatformCore.GraphStore.RawTriple var needStep: Swift.Bool } class FilteredBatchLoader { let database: GRDBInternal.Database let filters: [IntelligencePlatformCore.GraphStore.ResolvedKnowledgeGraphFilter] let batchSize: Swift.Int } struct ResolvedKnowledgeGraphFilter { let entityType: Swift.Int? let entityTypes: Swift.Set<Swift.Int>? let predicates: Swift.Set<Swift.String>? let sources: Swift.Int64? let objectRegex: _StringProcessing.Regex<_StringProcessing.AnyRegexOutput>? } struct StorableRawTriple { let columns: IntelligencePlatformCore.SubgraphDatabaseTable.SubgraphColumns let subject: Swift.Int64 let predicate: Swift.String let relationshipId: Swift.Int64 let relationshipPredicate: Swift.String let object: Swift.String let sources: Swift.Int64 let confidence: Swift.Double let sourceDuplicates: Swift.String let timestamp: Swift.Double let isGraph: Swift.Bool let isExpired: Swift.Bool } enum TransactionOperation { case commit case rollback } let db: IntelligencePlatformCore.GraphDatabase let config: IntelligencePlatformCore.Configuration init(config: IntelligencePlatformCore.Configuration) throws final func loadConstructionGraphTriples(subject: IntelligencePlatform.EntityIdentifier) -> [IntelligencePlatformCore.ConstructionGraphTriple] final func loadGraphTriplesGroupedBySubject(groupsContainingObject: Swift.String) -> [IntelligencePlatform.EntityIdentifier : [IntelligencePlatformCore.GraphTriple]]? final func loadGraphTriples(globPattern: Swift.String) -> [IntelligencePlatformCore.GraphTriple] final func loadGraphTriples(object: Swift.String) -> [IntelligencePlatformCore.GraphTriple] final func loadGraphTriples(subject: IntelligencePlatform.EntityIdentifier, predicates: [IntelligencePlatform.EntityPredicate]) -> [IntelligencePlatformCore.GraphTriple] final func loadGraphTriples(subject: IntelligencePlatform.EntityIdentifier, objectPrefix: Swift.String) -> [IntelligencePlatformCore.GraphTriple] final func loadGraphTriples(subject: IntelligencePlatform.EntityIdentifier) -> [IntelligencePlatformCore.GraphTriple] final func loadGraphTriples() -> [IntelligencePlatformCore.GraphTriple] final func clearGraphTriples() -> Swift.Int final func expiredGraphTripleCount() -> Swift.Int final func currentUser() -> [IntelligencePlatformCore.GraphTriple] final func eventTripleCount() -> Swift.Int final func graphTripleCount() -> Swift.Int final func loadEventTriples() -> [IntelligencePlatformCore.EventTriple] final func expiredEventTripleCount() -> Swift.Int final func tripleInsertingTransaction(transactionBody: (_: @escaping (_: [any IntelligencePlatformCore.GraphStoreRecord]) throws -> ()) throws -> IntelligencePlatformCore.GraphStore.TransactionOperation) throws final func store<A>(_: [A]) where A: IntelligencePlatformCore.GraphStoreRecord final func delete<A>(_: [A]) -> Swift.Int where A: IntelligencePlatformCore.GraphStoreRecord deinit }