Coder Social home page Coder Social logo

fortune-micro-api's People

Contributors

gr0uch avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

fortune-micro-api's Issues

Namespace support

Support custom namespaces. This will require some changes upstream in Fortune to allow meta-information on record types.

Stardog data store

Hi,

I've started some work on a potential "fortune-stardog" or "fortune-sparql" module, to try to link the fortune-micro-api to an RDF triple store by modifying the fortune-nedb module, starting with "create (type, records)"

I'm a ways off, but curious around the approach I'm taking since JSON-LD inbound are flattened triples if perhaps rather than converting from JSON-LD to an intermediary type & records. Instead grab the json and use the node json-ld library to manipulate it for the triple store?

This is what I started with and would like to instead have a fortune-micro-api in front of it so it would be JSON-LD from the restful service inbound as well as outbound :
https://github.com/Complexible/stardog.js/tree/develop/examples/express-app

Any feedback appreciated!

Updates to latest version of Micro API

The latest published version 2016-09-06 has some additions:

  • Entry point now includes vocabulary.
  • @vocab property must be path to API suffixed with #.
  • Optional application/x-micro-api media type based on MessagePack.

How does the "field" meta query work?

I apologize if I am missing something obvious, but I cannot get the "field" query parameter to work. In my case I have a user record type with a name and an age, and I want to show the name only. I have tried writing the query string in all kinds of formats, including "?field[name]" and "?fields[name]", but nothing happens and the meta object just says "µ:meta":{ ... "field":{} }".

I'd be grateful if you could give me an example on how to use the "fields" parameter correctly!

I happened upon another issue while trying to find the correct format for the query string. The following URL gave an unexpected result:

/users?limit=1&sort=-age&fields[age]

When making a GET request to the above URL, the meta object returned this "µ:meta":{ ... "field":{}, "sort":{"age&fields[age]":false} }".

Add option to capitalize type

Suppose I want to use schema.org context, and I have a type definition:

store.defineType('product', {...})

The value of @type has to be Product with a capital first letter.

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.