Coder Social home page Coder Social logo

styx's Introduction

styx

https://pkg.go.dev/github.com/underlay/styx

Styx is an experimental RDF database that works like a key/value store, where the keys are RDF IRI terms and the values are RDF datasets. It also exposes a subgraph iterator interface that lets you iterate over all the subgraphs of the database that match a given pattern.

You can use Styx as a Go module by importing github.com/underlay/styx. Alternatively, you can run in the background by building the package github.com/underlay/styx/api:

% cd api
% go build -o styx
% export STYX_PREFIX=http://example.com/
% ./styx

This will start an API server exposing get/set/delete via GET, PUT, and DELETE requests, and subgraph iteration over a websocket RPC interface.

Set the Styx database location by setting the STYX_PATH evironment variable. It will default to /tmp/styx.

Set the API port with STYX_PORT. It will default to 8086.

You also need to set the STYX_PREFIX variable to a string like http://... that all of the keys you'll set will start with. For example, setting STYX_PREFIX=http://example.com/ means that you'll be able to insert datasets with keys beginning with http://example.com/. It will default to http://localhost:${STYX_PORT}. You don't need this if you only ever use the default dataset.

styx's People

Contributors

joeltg avatar metasj avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

styx's Issues

Cannot run 'make install': dependency errors

Log:

$ make install
export GOPROXY='https://proxy.golang.org'
go build -buildmode=plugin -i -o styx.so plugin/plugin.go
go: parsing /Users/joel/go/src/github.com/ipfs/go-ipfs/go.mod: open /Users/joel/go/src/github.com/ipfs/go-ipfs/go.mod: no such file or directory
go: github.com/dgraph-io/badger/[email protected]: missing github.com/dgraph-io/badger/go.mod and .../v2/go.mod at revision v2.0.0-rc2
go: error loading module requirements
make: *** [Makefile:6: build] Error 1

Removing the replace line in go.mod and rerunning make install results in:

$ make install
export GOPROXY='https://proxy.golang.org'
go build -buildmode=plugin -i -o styx.so plugin/plugin.go
go: finding github.com/ipfs/go-ipfs v0.0.0-00010101000000-000000000000
go: github.com/dgraph-io/badger/[email protected]: missing github.com/dgraph-io/badger/go.mod and .../v2/go.mod at revision v2.0.0-rc2
go: github.com/ipfs/[email protected]: unknown revision 000000000000
go: error loading module requirements
make: *** [Makefile:6: build] Error 1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.