Commit 9bdd0d75 authored by Jonas Smedegaard's avatar Jonas Smedegaard

Initial packaging.

parent 1477aaac
ontospy (0~20190107~dfsg-1) experimental; urgency=low
* Initial packaging release.
Closes: bug#921033.
-- Jonas Smedegaard <dr@jones.dk> Thu, 31 Jan 2019 23:38:00 +0100
Source: ontospy
Section: utils
Priority: optional
Maintainer: Jonas Smedegaard <dr@jones.dk>
Build-Depends:
bash-completion,
debhelper,
dh-python,
help2man,
python3,
python3-click,
python3-colorama (>= 0.3.7),
python3-django (>= 1.10.3),
python3-html5lib (>= 1.0.1),
python3-keepalive,
python3-pyfiglet,
python3-pygments (>= 2.1.3),
python3-pyparsing (>= 2.1.10),
python3-rdflib (>= 4.2.1),
python3-rdflib-jsonld,
python3-requests (>= 2.20.0),
python3-setuptools,
python3-sparqlwrapper,
shellcheck <!nocheck>,
Standards-Version: 4.3.0
Vcs-Git: https://salsa.debian.org/debian/ontospy.git
Vcs-Browser: https://salsa.debian.org/debian/ontospy
Homepage: https://lambdamusic.github.io/Ontospy/
Rules-Requires-Root: no
Package: ontospy
Architecture: all
Depends:
python3-ontospy (= ${binary:Version}),
${misc:Depends},
${python3:Depends},
Description: query, inspect and visualize RDF/OWL ontologies - CLI tool
Ontospy is a lightweight Python library and command line tool
for inspecting and visualizing vocabularies
encoded using W3C Semantic Web standards,
that is, RDF or any of its dialects (RDFS, OWL, SKOS).
.
Ontospy can be used to generate HTML documentation
for an ontology pretty easily.
.
This package provides the Ontospy command-line tool.
Package: python3-ontospy
Architecture: all
Depends:
${misc:Depends},
${python3:Depends},
Recommends:
python3-django (>= 1.10.3),
python3-pygments (>= 2.1.3),
Description: query, inspect and visualize RDF/OWL ontologies - library
Ontospy is a lightweight Python library and command line tool
for inspecting and visualizing vocabularies
encoded using W3C Semantic Web standards,
that is, RDF or any of its dialects (RDFS, OWL, SKOS).
.
Ontospy can be used to generate HTML documentation
for an ontology pretty easily.
.
This package provides the Ontospy library for Python 3.
This diff is collapsed.
#!/bin/sh
# Copyright © 2016-2019 Jonas Smedegaard <dr@jones.dk>
# Description: helper script to update copyright_hints
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3, or (at your option)
# any later version.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
set -eu
# * extract metadata from graphics files before copyright check
# * skip data files unlikely to contain copyright/licensing info
export DEB_COPYRIGHT_EXTRACT_EXTS="jpg png"
export DEB_COPYRIGHT_CHECK_IGNORE_EXTS="wav"
make -f /usr/share/cdbs/1/rules/utils.mk pre-build || true
make -f /usr/share/cdbs/1/rules/utils.mk clean DEB_COPYRIGHT_CHECK_STRICT=1
# unconditionally merge changes - safe to do with git-tracked package
[ ! -f debian/copyright_newhints ] || mv -f debian/copyright_newhints debian/copyright_hints
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: FIXME
Upstream-Contact: FIXME
Source: FIXME
Disclaimer: Autogenerated by CDBS
Files: ERROR.txt
MANIFEST.in
README.md
TODO.md
debian/compat
debian/control
debian/gbp.conf
debian/ontospy.bash-completion
debian/ontospy.install
debian/ontospy.manpages
debian/patches/1001_fix_syntax_error.patch
debian/patches/2001_privacy.patch
debian/patches/README
debian/patches/series
debian/python3-ontospy.install
debian/python3-ontospy.lintian-overrides
debian/rules
debian/source/format
debian/tests/control
debian/tests/ontospy.t
debian/watch
docs/_config.yml
docs/index.md
docs/pages/changelog.md
docs/static/logo.png
docs/static/logo2.png
docs/static/logo_sm.jpg
nose.cfg
ontospy/__init__.py
ontospy/cli.py
ontospy/core/__init__.py
ontospy/core/actions.py
ontospy/core/entities.py
ontospy/core/manager.py
ontospy/core/ontospy.py
ontospy/core/rdf_loader.py
ontospy/core/sparqlHelper.py
ontospy/extras/hacks/README.md
ontospy/extras/hacks/__init__.py
ontospy/extras/hacks/click_example.py
ontospy/extras/hacks/gist.py
ontospy/extras/hacks/matcher.py
ontospy/extras/hacks/pptoolkit.py
ontospy/extras/hacks/rdf-schema.ttl
ontospy/extras/hacks/turtle-cli.py
ontospy/extras/hacks/vocabsturtleprompt.py
ontospy/extras/loading.go.output.txt
ontospy/extras/shell.py
ontospy/extras/shell_lib.py
ontospy/extras/shell_quotes.py
ontospy/extras/sparqlpy.md
ontospy/ontodocs/CONFIG.py
ontospy/ontodocs/__init__.py
ontospy/ontodocs/media/static/README.md
ontospy/ontodocs/media/static/custom/css/familytree.css
ontospy/ontodocs/media/static/custom/css/sticky-footer-navbar.css
ontospy/ontodocs/media/static/custom/css/tabletree.css
ontospy/ontodocs/media/static/custom/css/xxx_familytree.css
ontospy/ontodocs/media/static/img/404-error.png
ontospy/ontodocs/media/templates/d3/d3_barHierarchy.html
ontospy/ontodocs/media/templates/d3/d3_bubblechart.html
ontospy/ontodocs/media/templates/d3/d3_packhierarchy.html
ontospy/ontodocs/media/templates/d3/d3_partitionTable.html
ontospy/ontodocs/media/templates/d3/d3_rotatingCluster.html
ontospy/ontodocs/media/templates/d3/d3_treePie.html
ontospy/ontodocs/media/templates/d3/d3tree.html
ontospy/ontodocs/media/templates/d3/d3tree_hiddendivs.html
ontospy/ontodocs/media/templates/html-multi/base.html
ontospy/ontodocs/media/templates/html-multi/breadcrumbs.html
ontospy/ontodocs/media/templates/html-multi/browser/browser_classinfo.html
ontospy/ontodocs/media/templates/html-multi/browser/browser_conceptinfo.html
ontospy/ontodocs/media/templates/html-multi/browser/browser_entities_az.html
ontospy/ontodocs/media/templates/html-multi/browser/browser_entities_tree.html
ontospy/ontodocs/media/templates/html-multi/browser/browser_propinfo.html
ontospy/ontodocs/media/templates/html-multi/browser/browser_shapeinfo.html
ontospy/ontodocs/media/templates/html-multi/index.html
ontospy/ontodocs/media/templates/html-multi/navbar.html
ontospy/ontodocs/media/templates/html-multi/onto_header.html
ontospy/ontodocs/media/templates/html-multi/sidebar.html
ontospy/ontodocs/media/templates/html-multi/statistics.html
ontospy/ontodocs/media/templates/html-multi/viz_list.html
ontospy/ontodocs/media/templates/html-single/html-single.html
ontospy/ontodocs/media/templates/markdown/markdown_base.md
ontospy/ontodocs/media/templates/markdown/markdown_classinfo.md
ontospy/ontodocs/media/templates/markdown/markdown_conceptinfo.md
ontospy/ontodocs/media/templates/markdown/markdown_ontoinfo.md
ontospy/ontodocs/media/templates/markdown/markdown_propinfo.md
ontospy/ontodocs/media/templates/misc/sigmajs.html
ontospy/ontodocs/misc/html-tests/d3_packhierarchy/d3test_static/d3.layout.js
ontospy/ontodocs/misc/html-tests/d3_packhierarchy/d3test_static/flare.json
ontospy/ontodocs/misc/html-tests/d3_packhierarchy/d3test_static/index.html
ontospy/ontodocs/misc/html-tests/d3_packhierarchy/flare.json
ontospy/ontodocs/misc/html-tests/d3tree/_index.html
ontospy/ontodocs/misc/html-tests/d3tree/_index2works.html
ontospy/ontodocs/misc/html-tests/d3tree/_sample.js
ontospy/ontodocs/misc/html-tests/family_tree.html
ontospy/ontodocs/misc/html-tests/family_tree_multiparent.html
ontospy/ontodocs/misc/html-tests/family_tree_property.html
ontospy/ontodocs/misc/html-tests/forceDirected2.html
ontospy/ontodocs/misc/html-tests/forceDirectedTemplate.html
ontospy/ontodocs/misc/html-tests/forcedirected.html
ontospy/ontodocs/misc/html-tests/html-template.html
ontospy/ontodocs/misc/html-tests/json-template.html
ontospy/ontodocs/misc/html-tests/splitter.html
ontospy/ontodocs/misc/html-tests/template1.html
ontospy/ontodocs/misc/html-tests/treeTemplate.html
ontospy/ontodocs/misc/scripts/__init__.py
ontospy/ontodocs/utils.py
ontospy/ontodocs/viz/README.md
ontospy/ontodocs/viz/__init__.py
ontospy/ontodocs/viz/viz_d3barHierarchy.py
ontospy/ontodocs/viz/viz_d3bubbleChart.py
ontospy/ontodocs/viz/viz_d3packHierarchy.py
ontospy/ontodocs/viz/viz_d3partitionTable.py
ontospy/ontodocs/viz/viz_d3rotatingCluster.py
ontospy/ontodocs/viz/viz_d3tree.py
ontospy/ontodocs/viz/viz_d3treePie.py
ontospy/ontodocs/viz/viz_html_multi.py
ontospy/ontodocs/viz/viz_html_single.py
ontospy/ontodocs/viz/viz_markdown.py
ontospy/ontodocs/viz/viz_sigmajs.py
ontospy/ontodocs/viz_factory.py
ontospy/tests/__init__.py
ontospy/tests/rdf/bfo-1.1.owl
ontospy/tests/rdf/foaf.rdf
ontospy/tests/rdf/periodical.jsonld
ontospy/tests/rdf/pizza.ttl
ontospy/tests/shapes/articles.content-hub.ttl
ontospy/tests/shapes/articles.dds.ttl
ontospy/tests/shapes/articles.dimensions.ttl
ontospy/tests/shapes/categorization-events.molecular-connections.ttl
ontospy/tests/shapes/contributions.dds.ttl
ontospy/tests/shapes/grants.dimensions.ttl
ontospy/tests/shapes/index-check-events.scopus.ttl
ontospy/tests/shapes/index-check-events.web-of-science.ttl
ontospy/tests/shapes/journals.dds.ttl
ontospy/tests/shapes/skos.poolparty.ttl
ontospy/tests/shapes/subjects.poolparty.ttl
ontospy/tests/test_load_local.py
ontospy/tests/test_load_remote.py
ontospy/tests/test_methods.py
ontospy/tests/test_quick.py
ontospy/tests/test_shaped_properties.py
ontospy/tests/test_shapes.py
ontospy/tests/test_sparql.py
requirements.txt
setup.cfg
setup.py
shell_profile.py
tests/out.log
tools/run-all-tests.sh
tools/run-make-release.sh
tools/run-quick-test.sh
tools/run-shell.sh
Copyright: NONE
License: UNKNOWN
FIXME
Files: ontospy/core/utils.py
ontospy/extras/hacks/server.py
ontospy/extras/hacks/sketch.py
ontospy/ontodocs/misc/scripts/export_all.py
Copyright: 2010-2015
2013-2017
2014
2015
License: UNKNOWN
FIXME
Files: ontospy/VERSION.py
ontospy/extras/dbpedia.py
ontospy/extras/hacks/compare.py
Copyright: 2013, Michele Pasin"
2015-2018, Michele Pasin"
License: UNKNOWN
FIXME
Files: ontospy/tests/rdf/schema/schema.ttl
ontospy/tests/rdf/schema/webapi.ttl
Copyright: Year a rdf:Property ;
Year" ;
for the CreativeWork was first asserted." .
License: UNKNOWN
FIXME
Files: ontospy/ontodocs/misc/html-tests/_FOAFspecification.html
Copyright: 2000-2014, Dan Brickley and Libby Miller</p>
applies to the <em>FOAF Vocabulary Specification</em> and accompanying documentation in RDF. Regarding underlying technology, FOAF uses W3C's <a href="http:www.w3.org/RDF/">RDF</a> technology, an open Web standard that can be freely used by anyone.</p>
date to 2009</li>
License: CC-BY
FIXME
Files: ontospy/tests/rdf/npg-article-types-ontology.ttl
Copyright: NONE
License: CC0-1.0
FIXME
Files: LICENSE
Copyright: 2017, Michele Pasin
License: Expat
FIXME
Files: ontospy/ontodocs/builder.py
Copyright: 2016, Ontospy project [http:lambdamusic.github.io/Ontospy/
License: Expat
FIXME
Files: debian/copyright-check
Copyright: 2016-2019, Jonas Smedegaard <dr@jones.dk>
check
License: GPL-3+
FIXME
Files: ontospy/extras/sparqlpy.py
Copyright: 2013, Michele Pasin - based on http:terse-words.blogspot.co.uk/2012/01/get-real-data-from-semantic-web.html"
License: UNKNOWN
FIXME
Files: ontospy/ontodocs/media/static/custom/css/simple-sidebar.css
Copyright: 2013-2017, Start Bootstrap
License: UNKNOWN
FIXME
Files: debian/source/lintian-overrides
Copyright: CC0-1.0
GPL-3+
cc0-1.0
gpl-3+
License: UNKNOWN
FIXME
Files: ontospy/tests/shapes/books.dds.ttl
Copyright: Year ;
License: UNKNOWN
FIXME
# Configuration file for git-buildpackage and friends
[DEFAULT]
pristine-tar = True
sign-tags = True
filter = */.git*
debian-branch = debian/master
debian/bash-completion ontospy
debian/_ontospy /usr/share/zsh/vendor-completions
usr/bin
Description: Fix syntax errors
Author: Jonas Smedegaard <dr@jones.dk>
Last-Update: 2019-01-31
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/ontospy/extras/dbpedia.py
+++ b/ontospy/extras/dbpedia.py
@@ -98,10 +98,10 @@
if len(args) > 0: #dont take no args
parser.print_help()
- raise SystemExit, 1
+ raise SystemExit(1)
if not (opts.query or opts.describe or opts.alltriples or opts.ontology):
parser.print_help()
- raise SystemExit, 1
+ raise SystemExit(1)
return opts, args
@@ -161,7 +161,7 @@
try:
main()
sys.exit(0)
- except KeyboardInterrupt, e: # Ctrl-C
+ except KeyboardInterrupt as e: # Ctrl-C
raise e
--- a/ontospy/extras/sparqlpy.py
+++ b/ontospy/extras/sparqlpy.py
@@ -268,7 +268,7 @@
if len(args) < 1:
parser.print_help()
- raise SystemExit, 1
+ raise SystemExit(1)
return opts, args
@@ -332,5 +332,5 @@
try:
main()
sys.exit(0)
- except KeyboardInterrupt, e: # Ctrl-C
+ except KeyboardInterrupt as e: # Ctrl-C
raise e
Description: Avoid privacy breach
Author: Jonas Smedegaard <dr@jones.dk>
Last-Update: 2019-01-31
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/ontospy/ontodocs/media/templates/html-multi/base.html
+++ b/ontospy/ontodocs/media/templates/html-multi/base.html
@@ -31,12 +31,6 @@
<!-- Custom styles for this template -->
<link href="{{STATIC_URL}}custom/css/sticky-footer-navbar.css" rel="stylesheet">
- <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
- <!--[if lt IE 9]>
- <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
- <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
- <![endif]-->
-
<style type="text/css">
.lead-plus {font-size: 26.5px;}
0xxx: Grabbed from upstream development.
1xxx: Possibly relevant for upstream adoption.
2xxx: Only relevant for official Debian release.
1001_fix_syntax_error.patch
2001_privacy.patch
# False positives: template sections omitted unless explicitly enabled
privacy-breach-generic usr/lib/python3/dist-packages/ontospy/ontodocs/media/templates/d3/d3tree.html [<script type="text/javascript" src="http://d3js.org/d3.v3.min.js">] (http://d3js.org/d3.v3.min.js)
privacy-breach-generic usr/lib/python3/dist-packages/ontospy/ontodocs/media/templates/d3/d3tree.html [<script type="text/javascript" src="http://nnattawat.github.io/slidereveal/asset/js/jquery.slidereveal.js">] (http://nnattawat.github.io/slidereveal/asset/js/jquery.slidereveal.js)
#!/usr/bin/make -f
include /usr/share/dpkg/pkg-info.mk
# resolve if release is experimental
EXP_RELEASE = $(filter experimental% UNRELEASED,$(DEB_DISTRIBUTION))
destdir = debian/tmp
cmd = ontospy
python3path = $(destdir)/usr/lib/$(shell py3versions -d)/dist-packages
python3path_build = .pybuild/cpython3_$(shell py3versions -dv)/build
path_build = build/scripts-$(shell py3versions -dv):$(PATH)
# generate manpage with help2man from --help option of python script
_mkman = PYTHONPATH=$(python3path) \
help2man $(patsubst %,--name %,$3) --no-info --version-string $(DEB_VERSION_UPSTREAM) --output $2 $1 \
|| { PYTHONPATH=$(python3path) $1 --help; false; }
# generate shell completion scripts
override_dh_auto_build:
dh_auto_build
PATH="$(path_build)" PYTHONPATH="$(python3path_build)" \
_ONTOSPY_COMPLETE=source $(cmd) \
> debian/bash-completion || true
PATH="$(path_build)" PYTHONPATH="$(python3path_build)" \
_ONTOSPY_COMPLETE=source_zsh $(cmd) \
> debian/_$(cmd) || true
# check shell script
override_dh_auto_test:
dh_auto_test $(if $(EXP_RELEASE), || true)
shellcheck --shell bash --exclude=SC2086,SC2206,SC2207,SC2235 \
debian/bash-completion
# generate manpage based on --help option of script itself
override_dh_auto_install:
dh_auto_install
$(call _mkman, $(destdir)/usr/bin/$(cmd), debian/$(cmd).1, \
command-line tool to inspect and visualize RDF models)
find $(destdir)/usr/lib -name '*.pyc' -delete
find $(destdir)/usr/lib -type d -empty -delete
%:
dh $@ --with python3,bash-completion --buildsystem=pybuild
# unset bogus executable bits
override_dh_fixperms:
dh_fixperms
chmod --recursive a-x,a+X -- debian/*/usr/lib
# License is in License-Reference field (see bug#786450)
missing-license-paragraph-in-dep5-copyright cc0-1\.0 *
missing-license-paragraph-in-dep5-copyright gpl-3\+ *
missing-license-text-in-dep5-copyright CC0-1\.0 *
missing-license-text-in-dep5-copyright GPL-3\+ *
# False positives: JSON data strings (not code)
source-is-missing ontospy/ontodocs/misc/html-tests/treeTemplate.html line length is 2476 characters (>512)
source-is-missing ontospy/ontodocs/misc/html-tests/d3tree/_sample.js line length is 4461 characters (>512)
Test-Command: prove debian/tests/*.t
Depends:
libtest-command-simple-perl,
libtest-tempdir-tiny-perl,
perl,
@,
use strict;
use warnings;
use Test::More;
use Test::Command::Simple;
my $CMD = 'ontospy';
run_ok $CMD, qw/--help/;
like stdout, qr/Usage: $CMD/, 'Testing stdout';
cmp_ok stderr, 'eq', '', 'Testing stderr';
run_ok $CMD, qw/scan --help/;
like stdout, qr/Usage: $CMD scan/, 'Testing stdout';
cmp_ok stderr, 'eq', '', 'Testing stderr';
run_ok $CMD, qw/gendocs --help/;
like stdout, qr/Usage: $CMD gendocs/, 'Testing stdout';
cmp_ok stderr, 'eq', '', 'Testing stderr';
run_ok $CMD, qw/lib --help/;
like stdout, qr/Usage: $CMD lib/, 'Testing stdout';
cmp_ok stderr, 'eq', '', 'Testing stderr';
run_ok $CMD, qw/shell --help/;
like stdout, qr/Usage: $CMD shell/, 'Testing stdout';
cmp_ok stderr, 'eq', '', 'Testing stderr';
run_ok $CMD, qw/ser --help/;
like stdout, qr/Usage: $CMD ser/, 'Testing stdout';
cmp_ok stderr, 'eq', '', 'Testing stderr';
run_ok $CMD, qw/utils --help/;
like stdout, qr/Usage: $CMD utils/, 'Testing stdout';
cmp_ok stderr, 'eq', '', 'Testing stderr';
done_testing;
# run "uscan --report" to check or "gbp import-orig --uscan" to update
version=4
opts="mode=git, pgpmode=none, pretty=0~%cd, dversionmangle=s/~dfsg\d*$//, repacksuffix=~dfsg" \
https://github.com/lambdamusic/Ontospy \
HEAD
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment