Skip to content

Commit

Permalink
Merge branch 'master' of github.com:jiemakel/snapper
Browse files Browse the repository at this point in the history
  • Loading branch information
jiemakel committed Sep 12, 2014
2 parents b5d7dc1 + 0bdb08f commit ee65e59
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 5 deletions.
21 changes: 21 additions & 0 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
The MIT License (MIT)

Copyright (c) 2014 Eetu Mäkelä

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.
40 changes: 35 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,25 +1,55 @@
Snapper
====
# Snapper

Snapper is a browser-based [Turtle](http://www.w3.org/TR/turtle/) editor. Try it at http://jiemakel.github.io/snapper/ .

It supports:
Snapper supports:

* Syntax highlighting
* Autocompletion of resources
* Autocompletion of resources based on either labels or IRI prefixes
* Autocompletion of prefixes
* Loading and storing data into an endpoint

Some of the functionalities require suitable SPARQL endpoints. Basically, the spread is as follows:

SPARQL graph store protocol endpoint:

* loading/replacing by graph, adding triples

SPARQL update endpoint:

* deleting/replacing individual resources

SPARQL query endpoint:

* label autocompletion & label display
* listing graphs in the graph store
* single resource loading (but Snapper can also load resources with simple GETs)

Being a completely client-side application, Snapper also requires all these endpoints to set appropriate CORS-headers. If your endpoint does not, you can use it through a CORS-proxy, like http://ldf.fi/corsproxy (for http://ldf.fi/corsproxy, append your URL without http://, e.g. http://ldf.fi/corsproxy/dbpedia.org/sparql)
Being a completely client-side application, Snapper also requires all these endpoints to set appropriate CORS-headers.

If your endpoint does not set appropriate CORS-headers, you can use it through a CORS-proxy, like http://ldf.fi/corsproxy (for http://ldf.fi/corsproxy, append your URL without http://, e.g. http://ldf.fi/corsproxy/dbpedia.org/sparql).

Another option is to deploy the Snapper application locally in your own domain.

## Licensing

Snapper is licensed under the terms of the MIT license.

## Installing

Should you wish to run your own instance of Snapper, you need to:

1) check out the project from GitHub and 2) install the required dependencies by running:

npm install
bower install

After this, you can run a local instance of the tool by entering:

gulp serve

If you want to create the distribution version of the project, you need to run:

gulp dist

This will create a dist folder under the project, which you can then deploy to any web server of your choice.

0 comments on commit ee65e59

Please sign in to comment.