Skip to content

Commit

Permalink
Big refactoring to start from Shaclex server
Browse files Browse the repository at this point in the history
  • Loading branch information
labra committed Apr 15, 2018
1 parent 1ecd670 commit af3418e
Show file tree
Hide file tree
Showing 3,210 changed files with 268,470 additions and 14,068 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
1,813 changes: 0 additions & 1,813 deletions .cache-main

This file was deleted.

365 changes: 0 additions & 365 deletions .cache-tests

This file was deleted.

42 changes: 42 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# Scala CircleCI 2.0 configuration file
#
# Check https://circleci.com/docs/2.0/sample-config/ for more details
#
version: 2
jobs:
build:
docker:
# specify the version you desire here
- image: circleci/openjdk:8-jdk

# Specify service dependencies here if necessary
# CircleCI maintains a library of pre-built images
# documented at https://circleci.com/docs/2.0/circleci-images/
# - image: circleci/postgres:9.4

working_directory: ~/repo

environment:
# Customize the JVM maximum heap limit
JVM_OPTS: -Xmx3200m
TERM: dumb

steps:
- checkout

# Download and cache dependencies
- restore_cache:
keys:
- v1-dependencies-{{ checksum "build.sbt" }}
# fallback to using the latest cache if no exact match is found
- v1-dependencies-

- run: cat /dev/null | sbt test:compile

- save_cache:
paths:
- ~/.m2
key: v1-dependencies--{{ checksum "build.sbt" }}

# run tests!
- run: cat /dev/null | sbt test:test
22 changes: 21 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,26 @@ project/plugins/project/
.project
.classpath
.cache
.target
/bin
settings.json
.vscode
.ensime_cache
.ensime
.idea

node_modules/
.grunt
# Logs
logs
npm-debug.log*
yarn-debug.log*
yarn-error.log*
# Runtime data
pids
*.pid
*.seed
*.pid.lock
.npm
*.tgz

*~
4 changes: 4 additions & 0 deletions .jvmopts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
-Xms512M
-Xmx4096M
-Xss2M
-XX:MaxMetaspaceSize=1024M
2 changes: 2 additions & 0 deletions .scalafmt.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
style = defaultWithAlign
maxColumn = 120
5 changes: 3 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
language: scala
scala:
- 2.11.1
script: sbt test
- 2.12.3
jdk:
- oraclejdk8
27 changes: 27 additions & 0 deletions .zenodo.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"description": "SHACL/ShEx implementation",
"license": "other-open",
"title": "RDFSHape: Online demo implementation of ShEx and SHACL",
"version": "v0.0.70",
"upload_type": "software",
"publication_date": "2018-04-04",
"creators": [
{
"affiliation": "University of Oviedo",
"name": "Jose Emilio Labra Gayo"
}
],
"access_right": "open",
"related_identifiers": [
{
"scheme": "url",
"identifier": "https://github.com/labra/shaclex/tree/v0.0.69",
"relation": "isSupplementTo"
},
{
"scheme": "doi",
"identifier": "10.5281/zenodo.1212658",
"relation": "isPartOf"
}
]
}
44 changes: 44 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# Guide for contributors

This project follows a standard [fork and pull][fork-and-pull] model for accepting contributions via
GitHub pull requests:

0. [Pick (or report) an issue](#pick-or-report-an-issue)
1. [Write code](#write-code)
2. [Write tests](#write-tests)
3. [Submit a pull request](#submit-a-pull-request)

## Pick or report an issue

We always welcome bug reports and feature requests—please don't feel like you need to have time to
contribute a fix or implementation for your issue to be appreciated.

## Write code

We prefer functional programming for the code.

* Code and comments should be formatted to a width no greater than 100 columns.
* Files should not contain trailing spaces.
* Imports should be sorted alphabetically.

When in doubt, please run `sbt scalastyle` and let us know if you have any questions.

## Write tests

Shaclex uses [ScalaTest][scalatest] for testing.

## Submit a pull request

* Pull requests should be submitted from a separate branch (e.g. using
`git checkout -b "username/fix-123"`).
* In general we discourage force pushing to an active pull-request branch that other people are
commenting on or contributing to, and suggest using `git merge master` during development.
Once development is complete, use `git rebase master` and force push to [clean up the history][squash].
* The first line of a commit message should be no more than 72 characters long (to accommodate
formatting in various environments).
* Commit messages should general use the present tense, normal sentence capitalization, and no final
punctuation.
* If a pull request decreases code coverage more than by 2%, please file an issue to make sure that
tests get added.

This guide for contributors is inspired by [circe's guide](https://github.com/circe/circe/blob/master/CONTRIBUTING.md).
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
The MIT License (MIT)

Copyright (c) 2016 Jose Emilio Labra Gayo

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.
2 changes: 1 addition & 1 deletion Procfile
Original file line number Diff line number Diff line change
@@ -1 +1 @@
web: target/universal/stage/bin/rdfshape -Dhttp.port=${PORT}
web: target/universal/stage/bin/rdfshape --server -Dhttp.port=${PORT}
Loading

0 comments on commit af3418e

Please sign in to comment.