Skip to content

Commit

Permalink
Merge pull request #381 from c-martinez/reuse
Browse files Browse the repository at this point in the history
Make compliant with REUSE specification
  • Loading branch information
c-martinez authored Apr 22, 2023
2 parents c234273 + c4d138b commit ca0972d
Show file tree
Hide file tree
Showing 52 changed files with 249 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
# SPDX-FileCopyrightText: 2022 Albert Meroño, Rinke Hoekstra, Carlos Martínez
#
# SPDX-License-Identifier: MIT

docker-compose.yml merge=ours
19 changes: 19 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2022 Albert Meroño, Rinke Hoekstra, Carlos Martínez
#
# SPDX-License-Identifier: MIT

node_modules
.*!.gitignore
*/.DS_Store
Expand All @@ -20,3 +24,18 @@ bin/
share/
.idea
.pytest_cache
.eggs/
.vscode/
.ipynb_checkpoints/
ssl-certificates/
testQueries/
grlc.egg-info/
src/config.ini
src/FileLoaderTesting.ipynb
Dockerfile2
FileLoaders.ipynb
ReleaseProcedure.md
TODOs.md
TwitterAPIKeys.md
config.ini
ink_ext_XXXXXX_img0.png
5 changes: 5 additions & 0 deletions .reuse/dep5
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/

Files: tests/repo/endpoint.txt tests/repo/*.rq tests/repo/*.json tests/repo/*.sparql tests/repo/*.tpf tests/repo/*.yml src/static/toolinfo.json src/static/*.png src/static/favicon.ico requirements-test.txt requirements.txt docker-assets/assets/runtime/functions docker-assets/assets/runtime/env-defaults docker-assets/assets/runtime/configs/nginx/grlc doc/notebooks/GrlcFromNotebook.ipynb doc/img/*.png doc/img/grlc_logo_01.eps CITATION.cff .zenodo.json .travis.yml .github/workflows/tweet-release.yml .dependabot/config.yml
Copyright: 2022 Albert Meroño, Rinke Hoekstra, Carlos Martínez
License: MIT
4 changes: 4 additions & 0 deletions .travis/before_deploy.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#!/bin/bash

# SPDX-FileCopyrightText: 2022 Albert Meroño, Rinke Hoekstra, Carlos Martínez
#
# SPDX-License-Identifier: MIT

# Deactivate testing virtualenv and reactivate original one
if [[ $TRAVIS_BUILD_STAGE_NAME == 'Deploy' ]]; then
deactivate
Expand Down
4 changes: 4 additions & 0 deletions .travis/before_install.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#!/bin/bash

# SPDX-FileCopyrightText: 2022 Albert Meroño, Rinke Hoekstra, Carlos Martínez
#
# SPDX-License-Identifier: MIT

# Store location of original virtualenv so we can reactivate it on deploy
if [[ $TRAVIS_BUILD_STAGE_NAME == 'Deploy' ]]; then
ORIG_ENV="$(dirname $(which python))/activate"
Expand Down
4 changes: 4 additions & 0 deletions .travis/install.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#!/bin/bash

# SPDX-FileCopyrightText: 2022 Albert Meroño, Rinke Hoekstra, Carlos Martínez
#
# SPDX-License-Identifier: MIT

if [[ $TRAVIS_OS_NAME == 'osx' ]]; then
pyenv global $PYENV_VERSION
if [[ $PYENV_VERSION == 2* ]]; then
Expand Down
4 changes: 4 additions & 0 deletions .travis/run.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#!/bin/bash

# SPDX-FileCopyrightText: 2022 Albert Meroño, Rinke Hoekstra, Carlos Martínez
#
# SPDX-License-Identifier: MIT

if [[ $TRAVIS_BUILD_STAGE_NAME == 'Deploy' ]]; then
source venv/bin/activate
fi
Expand Down
6 changes: 6 additions & 0 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
<!--
SPDX-FileCopyrightText: 2022 Albert Meroño, Rinke Hoekstra, Carlos Martínez
SPDX-License-Identifier: MIT
-->

# Contributor Covenant Code of Conduct

## Our Pledge
Expand Down
6 changes: 6 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
<!--
SPDX-FileCopyrightText: 2022 Albert Meroño, Rinke Hoekstra, Carlos Martínez
SPDX-License-Identifier: MIT
-->

Thank you very much for your interest in contributing to grlc! It's people like you that truly make the Semantic Web more accessible to everyone :)

## Communication channels
Expand Down
6 changes: 6 additions & 0 deletions CONTRIBUTORS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
<!--
SPDX-FileCopyrightText: 2022 Albert Meroño, Rinke Hoekstra, Carlos Martínez
SPDX-License-Identifier: MIT
-->

# Contributors
This is a list of all people who have contributed to grlc. Big thanks to everyone.

Expand Down
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2022 Albert Meroño, Rinke Hoekstra, Carlos Martínez
#
# SPDX-License-Identifier: MIT

FROM python:3.6.8
MAINTAINER [email protected]

Expand Down
9 changes: 9 additions & 0 deletions LICENSES/MIT.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
MIT License

Copyright (c) <year> <copyright holders>

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.
4 changes: 4 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2022 Albert Meroño, Rinke Hoekstra, Carlos Martínez
#
# SPDX-License-Identifier: MIT

include requirements.txt
include requirements-test.txt
include CITATION.cff
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
<!--
SPDX-FileCopyrightText: 2022 Albert Meroño, Rinke Hoekstra, Carlos Martínez
SPDX-License-Identifier: MIT
-->

<p algin="center"><img src="https://raw.githubusercontent.com/CLARIAH/grlc/master/src/static/grlc_logo_01.png" width="250px"></p>

[![PyPI version](https://badge.fury.io/py/grlc.svg)](https://badge.fury.io/py/grlc)
Expand Down
5 changes: 5 additions & 0 deletions bin/grlc-server
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
#!/usr/bin/env python

# SPDX-FileCopyrightText: 2022 Albert Meroño, Rinke Hoekstra, Carlos Martínez
#
# SPDX-License-Identifier: MIT

"""Grlc server.
Usage:
Expand Down
4 changes: 4 additions & 0 deletions config.default.ini
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
; SPDX-FileCopyrightText: 2022 Albert Meroño, Rinke Hoekstra, Carlos Martínez
;
; SPDX-License-Identifier: MIT

[auth]
github_access_token = xxx

Expand Down
4 changes: 4 additions & 0 deletions docker-assets/assets/build/.gitattributes
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
# SPDX-FileCopyrightText: 2022 Albert Meroño, Rinke Hoekstra, Carlos Martínez
#
# SPDX-License-Identifier: MIT

install.sh merge=ours
5 changes: 5 additions & 0 deletions docker-assets/assets/build/install.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
#!/bin/bash

# SPDX-FileCopyrightText: 2022 Albert Meroño, Rinke Hoekstra, Carlos Martínez
#
# SPDX-License-Identifier: MIT

set -e


Expand Down
5 changes: 5 additions & 0 deletions docker-assets/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
#!/bin/bash

# SPDX-FileCopyrightText: 2022 Albert Meroño, Rinke Hoekstra, Carlos Martínez
#
# SPDX-License-Identifier: MIT

set -e
source ${GRLC_RUNTIME_DIR}/functions

Expand Down
6 changes: 6 additions & 0 deletions paper.bib
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
@Comment{
SPDX-FileCopyrightText: 2022 Albert Meroño, Rinke Hoekstra, Carlos Martínez
SPDX-License-Identifier: MIT
}
@article{Espinoza2021,
title = {Crossing the chasm between ontology engineering and application development: A survey},
journal = {Journal of Web Semantics},
Expand Down
6 changes: 6 additions & 0 deletions paper.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
<!--
SPDX-FileCopyrightText: 2022 Albert Meroño, Rinke Hoekstra, Carlos Martínez
SPDX-License-Identifier: MIT
-->

---
title: 'grlc: the git repository linked data API constructor.'
tags:
Expand Down
4 changes: 4 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
# SPDX-FileCopyrightText: 2022 Albert Meroño, Rinke Hoekstra, Carlos Martínez
#
# SPDX-License-Identifier: MIT

[metadata]
description-file = README.md
5 changes: 5 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
#!/usr/bin/env python

# SPDX-FileCopyrightText: 2022 Albert Meroño, Rinke Hoekstra, Carlos Martínez
#
# SPDX-License-Identifier: MIT

# -*- coding: iso-8859-15 -*-

import codecs
Expand Down
4 changes: 4 additions & 0 deletions src/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
# SPDX-FileCopyrightText: 2022 Albert Meroño, Rinke Hoekstra, Carlos Martínez
#
# SPDX-License-Identifier: MIT

from .__version__ import __version__
4 changes: 4 additions & 0 deletions src/__version__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2022 Albert Meroño, Rinke Hoekstra, Carlos Martínez
#
# SPDX-License-Identifier: MIT

import os
import sys
import yaml
Expand Down
4 changes: 4 additions & 0 deletions src/fileLoaders.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2022 Albert Meroño, Rinke Hoekstra, Carlos Martínez
#
# SPDX-License-Identifier: MIT

import grlc.static as static
from grlc.queryTypes import qType
import grlc.glogging as glogging
Expand Down
4 changes: 4 additions & 0 deletions src/glogging.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2022 Albert Meroño, Rinke Hoekstra, Carlos Martínez
#
# SPDX-License-Identifier: MIT

import logging

import grlc.static as static
Expand Down
4 changes: 4 additions & 0 deletions src/gquery.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#!/usr/bin/env python

# SPDX-FileCopyrightText: 2022 Albert Meroño, Rinke Hoekstra, Carlos Martínez
#
# SPDX-License-Identifier: MIT

# gquery.py: functions that deal with / transform SPARQL queries in grlc

import yaml
Expand Down
4 changes: 4 additions & 0 deletions src/pagination.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2022 Albert Meroño, Rinke Hoekstra, Carlos Martínez
#
# SPDX-License-Identifier: MIT

from urllib.parse import urlparse, urlunparse, parse_qsl, urlencode, ParseResult

def getSwaggerPaginationDef(resultsPerPage):
Expand Down
4 changes: 4 additions & 0 deletions src/prov.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#!/usr/bin/env python

# SPDX-FileCopyrightText: 2022 Albert Meroño, Rinke Hoekstra, Carlos Martínez
#
# SPDX-License-Identifier: MIT

# prov.py: class generating grlc related W3C prov triples

from rdflib import Graph, URIRef, Namespace, RDF, Literal
Expand Down
4 changes: 4 additions & 0 deletions src/queryTypes.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2022 Albert Meroño, Rinke Hoekstra, Carlos Martínez
#
# SPDX-License-Identifier: MIT

"""Definition of grlc query types."""

qType = {
Expand Down
4 changes: 4 additions & 0 deletions src/server.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#!/usr/bin/env python

# SPDX-FileCopyrightText: 2022 Albert Meroño, Rinke Hoekstra, Carlos Martínez
#
# SPDX-License-Identifier: MIT

# server.py: the grlc server

from flask import Flask, request, jsonify, render_template, make_response
Expand Down
4 changes: 4 additions & 0 deletions src/sparql.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2022 Albert Meroño, Rinke Hoekstra, Carlos Martínez
#
# SPDX-License-Identifier: MIT

from SPARQLWrapper import SPARQLWrapper, CSV, JSON
from flask import jsonify
from collections import defaultdict
Expand Down
4 changes: 4 additions & 0 deletions src/static.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#!/usr/bin/env python

# SPDX-FileCopyrightText: 2022 Albert Meroño, Rinke Hoekstra, Carlos Martínez
#
# SPDX-License-Identifier: MIT

# static.py: static values for the grlc Server
import os
from configparser import ConfigParser
Expand Down
6 changes: 6 additions & 0 deletions src/static/css/grlc.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/*
* SPDX-FileCopyrightText: 2022 Albert Meroño, Rinke Hoekstra, Carlos Martínez
*
* SPDX-License-Identifier: MIT
*/

/* Adapted from bootstrap's cover.css */

/*
Expand Down
4 changes: 4 additions & 0 deletions src/static/js/grlc-api.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2022 Albert Meroño, Rinke Hoekstra, Carlos Martínez
//
// SPDX-License-Identifier: MIT

/**
* Log to JavaScript console.
*/
Expand Down
4 changes: 4 additions & 0 deletions src/static/js/grlc-layout.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2022 Albert Meroño, Rinke Hoekstra, Carlos Martínez
//
// SPDX-License-Identifier: MIT

// Create the layout component
class GrlcLayout extends React.Component {
render() {
Expand Down
4 changes: 4 additions & 0 deletions src/swagger.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2022 Albert Meroño, Rinke Hoekstra, Carlos Martínez
#
# SPDX-License-Identifier: MIT

import json
import grlc.utils
import grlc.gquery as gquery
Expand Down
6 changes: 6 additions & 0 deletions src/templates/api-docs.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
<!--
SPDX-FileCopyrightText: 2022 Albert Meroño, Rinke Hoekstra, Carlos Martínez
SPDX-License-Identifier: MIT
-->

<!DOCTYPE html>
<html lang="en">
<head>
Expand Down
6 changes: 6 additions & 0 deletions src/templates/index.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
<!--
SPDX-FileCopyrightText: 2022 Albert Meroño, Rinke Hoekstra, Carlos Martínez
SPDX-License-Identifier: MIT
-->

<!DOCTYPE html>
<html lang="en">
<head>
Expand Down
4 changes: 4 additions & 0 deletions src/util.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#!/usr/bin/env python

# SPDX-FileCopyrightText: 2022 Albert Meroño, Rinke Hoekstra, Carlos Martínez
#
# SPDX-License-Identifier: MIT

# util.py: grlc utility functions

import datetime
Expand Down
4 changes: 4 additions & 0 deletions src/utils.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2022 Albert Meroño, Rinke Hoekstra, Carlos Martínez
#
# SPDX-License-Identifier: MIT

import grlc.static as static
import grlc.gquery as gquery
import grlc.pagination as pageUtils
Expand Down
3 changes: 3 additions & 0 deletions tests/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# SPDX-FileCopyrightText: 2022 Albert Meroño, Rinke Hoekstra, Carlos Martínez
#
# SPDX-License-Identifier: MIT
Loading

0 comments on commit ca0972d

Please sign in to comment.