All Projects → CosmicMind → Graph

CosmicMind / Graph

Licence: mit
Graph is a semantic database that is used to create data-driven applications.

Programming Languages

swift
15916 projects

Projects that are alternatives of or similar to Graph

Samples
Sample projects using Material, Graph, and Algorithm.
Stars: ✭ 386 (-54.85%)
Mutual labels:  graph, database, data
Reddit Detective
Play detective on Reddit: Discover political disinformation campaigns, secret influencers and more
Stars: ✭ 129 (-84.91%)
Mutual labels:  graph, database, data
Grakn
TypeDB: a strongly-typed database
Stars: ✭ 2,947 (+244.68%)
Mutual labels:  graph, graph-theory, database
Chat
基于自然语言理解与机器学习的聊天机器人,支持多用户并发及自定义多轮对话
Stars: ✭ 516 (-39.65%)
Mutual labels:  graph, database
Tensorbase
TensorBase BE is building a high performance, cloud neutral bigdata warehouse for SMEs fully in Rust.
Stars: ✭ 440 (-48.54%)
Mutual labels:  database, data
Bogus
📇 A simple and sane fake data generator for C#, F#, and VB.NET. Based on and ported from the famed faker.js.
Stars: ✭ 5,083 (+494.5%)
Mutual labels:  database, data
Django Smuggler
Django Smuggler is a pluggable application for Django Web Framework that helps you to import/export fixtures via the automatically-generated administration interface.
Stars: ✭ 350 (-59.06%)
Mutual labels:  database, data
Lightgraphs.jl
An optimized graphs package for the Julia programming language
Stars: ✭ 611 (-28.54%)
Mutual labels:  graph, graph-theory
Opencypher
Specification of the Cypher property graph query language
Stars: ✭ 534 (-37.54%)
Mutual labels:  graph, database
Quickqanava
C++14 network/graph visualization library / Qt node editor.
Stars: ✭ 611 (-28.54%)
Mutual labels:  graph, graph-theory
Metabase
The simplest, fastest way to get business intelligence and analytics to everyone in your company 😋
Stars: ✭ 26,803 (+3034.85%)
Mutual labels:  database, data
Datacleaner
The premier open source Data Quality solution
Stars: ✭ 391 (-54.27%)
Mutual labels:  database, data
Faker
Faker is a pure Elixir library for generating fake data.
Stars: ✭ 673 (-21.29%)
Mutual labels:  database, data
Sheetjs
📗 SheetJS Community Edition -- Spreadsheet Data Toolkit
Stars: ✭ 28,479 (+3230.88%)
Mutual labels:  database, data
Things.sh
Simple read-only comand-line interface to your Things 3 database
Stars: ✭ 492 (-42.46%)
Mutual labels:  graph, database
Arquero
Query processing and transformation of array-backed data tables.
Stars: ✭ 384 (-55.09%)
Mutual labels:  database, data
Eliasdb
EliasDB a graph-based database.
Stars: ✭ 611 (-28.54%)
Mutual labels:  graph, database
Mithril Data
A rich data model library for Mithril javascript framework
Stars: ✭ 17 (-98.01%)
Mutual labels:  database, data
Synckit
Automatic CloudKit synchronization
Stars: ✭ 280 (-67.25%)
Mutual labels:  coredata, icloud
Altair
✨⚡️ A beautiful feature-rich GraphQL Client for all platforms.
Stars: ✭ 3,827 (+347.6%)
Mutual labels:  database, data

Graph

Welcome to Graph

Graph is a semantic database that is used to create data-driven applications.

Material Sample

Features

  • [x] iCloud Support
  • [x] Multi Local & Cloud Graphs
  • [x] Thread Safe
  • [x] Store Any Data Type, Including Binary Data
  • [x] Relationship Modeling
  • [x] Action Modeling For Analytics
  • [x] Model With Graph Theory and Set Theory
  • [x] Asynchronous / Synchronous Search
  • [x] Asynchronous / Synchronous Saving
  • [x] Data-Driven Architecture
  • [x] Data Model Observation
  • [x] Comprehensive Unit Test Coverage
  • [x] Example Projects

Requirements

  • iOS 8.0+ / Mac OS X 10.10+
  • Xcode 8.0+

Communication

  • If you need help, use Stack Overflow. (Tag 'cosmicmind')
  • If you'd like to ask a general question, use Stack Overflow.
  • If you found a bug, and can provide steps to reliably reproduce it, open an issue.
  • If you have a feature request, open an issue.
  • If you want to contribute, submit a pull request.

Installation

Embedded frameworks require a minimum deployment target of iOS 8.

CocoaPods

CocoaPods is a dependency manager for Cocoa projects. You can install it with the following command:

$ gem install cocoapods

To integrate Graph's core features into your Xcode project using CocoaPods, specify it in your Podfile:

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'
use_frameworks!

pod 'Graph', '~> 3.1.0'

Then, run the following command:

$ pod install

Carthage

Carthage is a decentralized dependency manager that builds your dependencies and provides you with binary frameworks.

You can install Carthage with Homebrew using the following command:

$ brew update
$ brew install carthage

To integrate Graph into your Xcode project using Carthage, specify it in your Cartfile:

github "CosmicMind/Graph"

Run carthage update to build the framework and drag the built Graph.framework into your Xcode project.

Changelog

Graph is a growing project and will encounter changes throughout its development. It is recommended that the Changelog be reviewed prior to updating versions.

Samples

The following are samples to see how Graph may be used within your applications.

  • Visit the Samples repo to see example projects using Graph.

Creating an Entity for an ImageCard

An Entity is a model (data) object that represents a person, place, or thing. It may store property values, be a member of groups, and can be tagged.

In the following example, we create an ImageCard view using Material and populate it's properties with an Entity that stores the data for that view.

Material ImageCard

Creating data

let graph = Graph()

let entity = Entity(type: "ImageCard")
entity["title"] = "Graph"
entity["detail"] = "Build Data-Driven Software"
entity["content"] = "Graph is a semantic database that is used to create data-driven applications."
entity["author"] = "CosmicMind"
entity["image"] = UIImage.load(contentsOfFile: "frontier", ofType: "jpg")

graph.sync()

Setting the view's properties

imageCard.toolbar?.title = entity["title"] as? String
imageCard.toolbar?.detail = entity["detail"] as? String
imageCard.imageView?.image = entity["image"] as? UIImage

let contentLabel = UILabel()
contentLabel.text = entity["content"] as? String
imageCard.contentView = contentLabel

let authorLabel = UILabel()
authorLabel.text = entity["author"] as? String
imageCard.bottomBar?.centerViews = [authorLabel]

Searching a list of users in realtime

Using the Search API is incredibly flexible. In the following example, Search is used to create a live search on user names with a dynamic UI provided by Material's SearchBar.

Material SearchBar

Preparing the search criteria

let graph = Graph()

let search = Search<Entity>(graph: graph).for(types: "User").where(properties: "name")

Asynchronously searching graph

search.async { [weak self, pattern = pattern] (users) in

	guard let regex = try? NSRegularExpression(pattern: pattern, options: []) else {
	    return
    }

	var data = [Entity]()

	for user in users {
		if let name = user["name"] as? String {
			let matches = regex.matches(in: name, range: NSRange(location: 0, length: name.utf16.count))

			if 0 < matches.count {
				data.append(user)
			}
		}
	}

	self?.tableView.data = data
}

License

The MIT License (MIT)

Copyright (C) 2019, CosmicMind, Inc. http://cosmicmind.com. All rights reserved.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].