Giter VIP home page Giter VIP logo

ldp-service-jena's People

Contributors

berezovskyi avatar jamsden avatar neil-ibm avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

jljohnson

ldp-service-jena's Issues

Normalize error and HTTP status code handling

Handling of err vs. status code is not consistent. storage.js isn’t necessarily HTTP, so it might have error codes that don’t correspond to HTTP status codes.

On the other hand, since storage and HTTP are both essentially CRUD, the same status codes might be used for both. And other errors, say from parsing or serializing, can be statusCode 500. So be consistent, any err returned from a callback should be considered an HTTP status code.

What should the default interaction model be?

Perhaps the default interaction model should be LDPR, not null. Or perhaps RDFSource if the server is only dealing with LDP-RS RDF resources, which a Fuseki/Jena persistence implementation would. A server of course could have different routes for different data sources.

Should it be null unless its specified in a Link header?

The query function should be moved to oslc-service

LDP should not be aware of OSLC query capability syntax. ldp-service may however need to exposed some generic query capability to make OSLC query easier to implement on different storage.js implementations.

Needs to be refactored to provide concrete storage.js implementation for ldp-service

ldp-service-jena is currently a full implementation of ldp-service on Jena, using request to send SPARQL queries to Fuseki.

This needs to be refactored into a concrete implementation of ldp-service/storage.js so that express web apps can use ldp-service, and select ldp-service-jena as the underlying concrete db implementation for specific routes.

See ldp-service-mongodb as an example of such a refactoring.

Note that ldp-service-mongodb, ldp-service-jena, and ldp-service-fs are intended to be three different backend storage implementations for ldp-service. The idea was to use these three implementations to do some commonality/variability analysis in order to design ldp-service/storage.js as a good abstract implementation of ldp-service's required storage facilities that can be easily implemented on different DBMS technologies.

BasicContainer support needs to be finished and tested.

Probably the only thing that needs to be done is to remove the containment triples from the BasicContainer resource representation if the Prefer header is ldp:PreferMinimalContainer.

Also need to create an example of a BasicContainer, and do the testing of GET using the prefer header, and the POST methods for adding and removing members.

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.