6 ms·
Fabric – A simple triplestore written in Go
- crimsonalucard 7y agoThere's a bunch of software products with the name fabric.
- leetrout 7y agoHardest problem in computer science.
- overcast 7y agoI mean, I'm working in UI Fabric right now (MS). Clearly there needs to be some sanity checks when naming software these days.
- person_of_color 7y agoI agree. Come on. The Python fabric package is really popular.
- danpalmer 7y agoNice to see more triple store implementations. What’s the industry take up of data stores like this? It always struck me as much more academic and not used as much in industry. I saw a SaaS triple store a while ago but it seemed to disappear or never really take off.
- xfhtjxfhj 7y agoat topsy almost a decade ago, we had a triple store written in perl and backed with innodb for storing our copy of twitter. that 80 node cluster of dl380s was a beast to operate, but damn was it spiffy when it was working well rip ux8
- edraferi 7y ago+1 I got a lot of mileage out of the triple model when working with social media data. You just don’t know what data patterns you will find when you start looking, and need to support generic queries.
- refset 7y agoNubank recently raised $400M at a $10B valuation and they depend on Datomic [1] heavily for their core systems [2]. The RDF database marketplace is very established [3], and the likes of MarkLogic, DB2, and Oracle have clearly encountered profitable reasons to add RDF support. I believe RDF has good traction in knowledge-intensive industry domains such as clinical research and life sciences. Disclosure: I work on Crux [4] which adds bitemporal versioning and eviction to a document->triplestore model running on top of Kafka. [1] https://www.datomic.com/customers.html https://www.datomic.com/customers.html [2] https://www.datomic.com/nubanks-story.html https://www.datomic.com/nubanks-story.html [3] https://en.wikipedia.org/wiki/Comparison_of_triplestores https://en.wikipedia.org/wiki/Comparison_of_triplestores [4] https://github.com/juxt/crux https://github.com/juxt/crux
- dustingetz 7y agoHappy Datomic user here – simple, flexible, powerful. I've recently heard good things about https://www.stardog.com/ https://www.stardog.com/ which is a real triple store (Datomic adds a time dimension)
- kevinsundar 7y agoeBay actually has an open source distributed triple store they released recently: https://github.com/eBay/akutan https://github.com/eBay/akutan Seems to me they'd be using it internally.
- deleted 7y ago[deleted]
- streetcat1 7y agoThis data stores are the ONLY way to create decent chat bots (ones that know what they are talking about and can engage in a conversations).
- grenoire 7y agoAre there any differences between a KV-store in the form of "Bob:Knows" — "John" and a triple store in the form of "Bob" — "Knows" — "John"? Redis, for example, can query the first one easily by scanning. Bonus question: What are some real-life use cases for triple stores?
- xfhtjxfhj 7y agoyou might want to search based on the predicate, or you might have versioned triples where the predicate changes in one version, you have these two ideas represented: [bob,likes,cake] [ann,suspects,[bob, likes, cake]] this may change in another version: [bob,likes,cake] [ann,knows,[bob,likes,cake]] a decent triple store will allow you to version these ideas and explore how they change over time, or maybe query by predicate
- coldtea 7y agoFor one you could easily ask "what is the relationship between Bob and John?" --> Knows, which you can't without text manipulation in the KV format. Sounds contrived, but can be handy in many uses cases. Triple relationships like the above are the kind of queries a Prolog engine can answer well (and far more). Semantic Web's RDF is also like this.
- kd5bjo 7y agoA slightly more plausible example is “Who knows John?”. I think about turning to triple stores when I’m still exploring an application domain and don’t know what data access patterns will look like yet. Something like a hexastore that maintains full indexes for all query orders seems like a reasonable compromise for read-heavy applications in the prototype stage.
- Someone 7y agoHow you store your triples affects performance, but, conceptually, is only an implementation detail. But then, why stop at a KV-store? A set with entries “Bob:Knows:John” will work just as well, if you ignore performance. But then, why stop at a set? A string “Bob:Knows:John;Bob:Loves:John;John;Is;vegetarian” works just as well (conceptually!) IMO, a major real-life use case is as a means to produce PhD’s :-). The concept is enticing and easily grasped, but there are zillions of papers to write on query planning, automatic storage optimization, discovering heuristics, etc. It’s just like the early days of SQL: you don’t have to read decades of papers to move to the front of development.
- alephnan 7y agoWhat's the use-case for a triple store vs a graph DB? Social networks?
- PaulHoule 7y agoPeople also call triple stores graph DBs. Triple stores support a disciplined set of primitive types that come from xml schema, so you have "xsd:integer", "xsd:datetime", "xsd:decimal", really the critical things that are missing in JSON. That is, there is a kind of fact where the object is a literal. Triple stores also support facts where the object is an identifier for another object. That could be a URI which names it, or it could be an internal "blank node" identifier. Other kinds of "graph database" have different semantics, for instance they might not have support for literals, or have a different set of literal data types, or they might let you attach facts to the edges (hypergraph, property graph, ...)
- kevinsundar 7y agoCould you compare this to eBay's distributed triple store https://github.com/eBay/akutan https://github.com/eBay/akutan ? Looks like it is written in Go too. I can see your's being much simpler to get up and running initially though. Looks like akutan isn't as simple since its built on docker and is a daemon.
- Insanity 7y agoNice job! Perhaps consider adding it to awesome-go? https://github.com/avelino/awesome-go https://github.com/avelino/awesome-go I looked at the report card already and seems like you've done a great job, so you'll have no trouble getting added! https://goreportcard.com/report/github.com/spy16/fabric https://goreportcard.com/report/github.com/spy16/fabric
- ordinarydev 7y agoI thought this was going to be about the Python SSH library - a bit confusing.
- creddit 7y agoIts title specifying that it’s a “simple triple store written in Go” wasn’t enough to tell you that it wasn’t?