SwiftclassIntelligencePlatformCore

class IntelligencePlatformCore.GraphStore

Structure

What a query’s scopes step through. Every node here can be matched — see the syntax.

Members 24

  1. deinitdeinit
  2. fieldlet config: IntelligencePlatformCore.Configuration
  3. fieldlet db: IntelligencePlatformCore.GraphDatabase+0x10
  4. funcclearGraphTriples() -> Int
  5. funccurrentUser() -> [IntelligencePlatformCore.GraphTriple]
  6. funcdelete<A where A: IntelligencePlatformCore.GraphStoreRecord>([A]) -> Int
  7. funceventTripleCount() -> Int
  8. funcexpiredEventTripleCount() -> Int
  9. funcexpiredGraphTripleCount() -> Int
  10. funcgraphTripleCount() -> Int
  11. funcloadConstructionGraphTriples(subject: IntelligencePlatform.EntityIdentifier) -> [IntelligencePlatformCore.ConstructionGraphTriple]
  12. funcloadEventTriples() -> [IntelligencePlatformCore.EventTriple]
  13. funcloadGraphTriples(globPattern: String) -> [IntelligencePlatformCore.GraphTriple]
  14. funcloadGraphTriples(object: String) -> [IntelligencePlatformCore.GraphTriple]
  15. funcloadGraphTriples(subject: IntelligencePlatform.EntityIdentifier, predicates: [IntelligencePlatform.EntityPredicate]) -> [IntelligencePlatformCore.GraphTriple]
  16. funcloadGraphTriples(subject: IntelligencePlatform.EntityIdentifier, objectPrefix: String) -> [IntelligencePlatformCore.GraphTriple]
  17. funcloadGraphTriples(subject: IntelligencePlatform.EntityIdentifier) -> [IntelligencePlatformCore.GraphTriple]
  18. funcloadGraphTriples() -> [IntelligencePlatformCore.GraphTriple]
  19. funcloadGraphTriplesGroupedBySubject(groupsContainingObject: String) -> [IntelligencePlatform.EntityIdentifier : [IntelligencePlatformCore.GraphTriple]]?
  20. funcstore<A where A: IntelligencePlatformCore.GraphStoreRecord>([A]) -> ()
  21. functripleInsertingTransaction(transactionBody: (([IntelligencePlatformCore.GraphStoreRecord]) throws -> ()) throws -> IntelligencePlatformCore.GraphStore.TransactionOperation) throws -> ()
  22. initIntelligencePlatformCore.GraphStore.__allocating_init(config: IntelligencePlatformCore.Configuration) throws -> IntelligencePlatformCore.GraphStore
  23. typealiastypealias StorageDatabase = IntelligencePlatformCore.GraphDatabase
  24. typealiastypealias StorageDatabase = IntelligencePlatformCore.GraphDatabase
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
}